Documentation ¶
Index ¶
- Constants
- type Network
- func (n *Network) Create(ctx context.Context, network *types.SubnetManifest) (*types.NetworkState, error)
- func (n *Network) Destroy(ctx context.Context, network *types.NetworkState) error
- func (n *Network) Info(ctx context.Context) *types.NetworkState
- func (n *Network) Replace(ctx context.Context, state *types.NetworkState, manifest *types.SubnetManifest) (*types.NetworkState, error)
- func (n *Network) Subnets(ctx context.Context) (map[string]*types.NetworkState, error)
- type NetworkInterface
Constants ¶
View Source
const DefaultContainerDevice = "docker0"
View Source
const NetworkType = "local"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Network ¶
type Network struct { cni.CNI ExtIface *NetworkInterface Network *net.IPNet CIDR *net.IPNet IP net.IP }
func (*Network) Create ¶
func (n *Network) Create(ctx context.Context, network *types.SubnetManifest) (*types.NetworkState, error)
func (*Network) Replace ¶
func (n *Network) Replace(ctx context.Context, state *types.NetworkState, manifest *types.SubnetManifest) (*types.NetworkState, error)
Click to show internal directories.
Click to hide internal directories.