1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- package backend
- import (
- "github.com/coreos/flannel/Godeps/_workspace/src/golang.org/x/net/context"
- "github.com/coreos/flannel/subnet"
- )
- type SubnetDef struct {
- Lease *subnet.Lease
- MTU int
- }
- type Backend interface {
-
- RegisterNetwork(ctx context.Context, network string, config *subnet.Config) (*SubnetDef, error)
-
-
- Run(ctx context.Context)
-
- UnregisterNetwork(ctx context.Context, network string)
- }
|