network

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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultResolverIP = "172.17.0.1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network struct {
	// contains filtered or unexported fields
}

func New

func New() (*Network, error)

func (*Network) EndpointCreate

func (n *Network) EndpointCreate(ctx context.Context, key string, manifest *types.EndpointManifest) (*types.EndpointState, error)

func (*Network) EndpointDestroy

func (n *Network) EndpointDestroy(ctx context.Context, endpoint string, state *types.EndpointState) error

func (*Network) EndpointManage

func (n *Network) EndpointManage(ctx context.Context, key string, manifest *types.EndpointManifest) error

func (*Network) EndpointRestore

func (n *Network) EndpointRestore(ctx context.Context) error

func (*Network) EndpointUpdate

func (n *Network) EndpointUpdate(ctx context.Context, endpoint string, state *types.EndpointState, manifest *types.EndpointManifest) (*types.EndpointState, error)

func (*Network) Endpoints

func (n *Network) Endpoints() *state.EndpointState

func (*Network) GetExternalDNS

func (n *Network) GetExternalDNS() []string

func (*Network) GetResolverEndpointKey

func (n *Network) GetResolverEndpointKey() string

func (*Network) GetResolverIP

func (n *Network) GetResolverIP() string

func (*Network) Info

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

func (*Network) ResolverManage

func (n *Network) ResolverManage(ctx context.Context) error

func (*Network) Resolvers

func (n *Network) Resolvers() *state.ResolverState

func (*Network) SubnetDestroy

func (n *Network) SubnetDestroy(ctx context.Context, cidr string) error

func (*Network) SubnetManage

func (n *Network) SubnetManage(ctx context.Context, cidr string, sn *types.SubnetManifest) error

func (*Network) SubnetRestore

func (n *Network) SubnetRestore(ctx context.Context) error

func (*Network) Subnets

func (n *Network) Subnets() *state.SubnetState

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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