local

package
v0.1.0-beta1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

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 New

func New() (*Network, error)

func (*Network) Create

func (n *Network) Create(ctx context.Context, network *types.SubnetManifest) (*types.NetworkState, error)

func (*Network) Destroy

func (n *Network) Destroy(ctx context.Context, network *types.NetworkState) error

func (*Network) Info

func (n *Network) Info(ctx context.Context) *types.NetworkState

func (*Network) Replace

func (n *Network) Replace(ctx context.Context, state *types.NetworkState, manifest *types.SubnetManifest) (*types.NetworkState, error)

func (*Network) Subnets

func (n *Network) Subnets(ctx context.Context) (map[string]*types.NetworkState, error)

type NetworkInterface

type NetworkInterface struct {
	Iface     *net.Interface
	IfaceAddr net.IP
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL