netmanager

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointAlreadyDisabledErr = errors.New("endpoint already disabled")

Functions

This section is empty.

Types

type ManagerMap

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

func NewManagerMap

func NewManagerMap() ManagerMap

func (*ManagerMap) Get

func (*ManagerMap) Set

func (m *ManagerMap) Set(t types.NetworkType, nm NetManager)

type NetManager

type NetManager interface {
	Ensure(context.Context, types.Network) error
	Deactivate(context.Context, types.Network) error

	EnsureEndpoint(context.Context, types.Network, types.Endpoint, params.EndpointActivate) (types.Endpoint, error)
	DeleteEndpoint(context.Context, types.Network, types.Endpoint) error

	EnsureEndpointsNeigh(context.Context, types.Network, []types.Endpoint) error
	AddEndpointNeigh(context.Context, types.Network, types.Endpoint) error
	RemoveEndpointNeigh(context.Context, types.Network, types.Endpoint) error

	ListenNetworkChange(context.Context, types.Network) error
	StopListenNetworkChange(context.Context, types.Network) error
}

Jump to

Keyboard shortcuts

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