12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- package backend
- import (
- "net"
- "golang.org/x/net/context"
- "github.com/coreos/flannel/subnet"
- )
- type ExternalInterface struct {
- Iface *net.Interface
- IfaceAddr net.IP
- ExtAddr net.IP
- }
- type Backend interface {
-
- RegisterNetwork(ctx context.Context, config *subnet.Config) (Network, error)
- }
- type Network interface {
- Lease() *subnet.Lease
- MTU() int
- Run(ctx context.Context)
- }
- type BackendCtor func(sm subnet.Manager, ei *ExternalInterface) (Backend, error)
|