This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 674
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Weave build & work with Go 1.5
- Loading branch information
Showing
28 changed files
with
1,928 additions
and
1,264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM gliderlabs/alpine | ||
FROM alpine | ||
|
||
MAINTAINER Weaveworks Inc <[email protected]> | ||
LABEL works.weave.role=system | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package router | ||
|
||
// Interface to packet handling on the local virtual bridge | ||
type Bridge interface { | ||
// Inject a packet to be delivered locally | ||
InjectPacket(PacketKey) FlowOp | ||
|
||
// Start consuming packets from the bridge. Injected packets | ||
// should not be included. | ||
StartConsumingPackets(BridgeConsumer) error | ||
|
||
String() string | ||
Stats() map[string]int | ||
} | ||
|
||
// A function that determines how to handle locally captured packets. | ||
type BridgeConsumer func(PacketKey) FlowOp | ||
|
||
type NullBridge struct{} | ||
|
||
func (NullBridge) InjectPacket(PacketKey) FlowOp { | ||
return nil | ||
} | ||
|
||
func (NullBridge) StartConsumingPackets(BridgeConsumer) error { | ||
return nil | ||
} | ||
|
||
func (NullBridge) String() string { | ||
return "<no bridge networking>" | ||
} | ||
|
||
func (NullBridge) Stats() map[string]int { | ||
return nil | ||
} |
Oops, something went wrong.