Help us shape the future of Go! Take the 2026 Go Developer Survey

netmanager

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2018 License: MIT Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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

	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
}

Jump to

Keyboard shortcuts

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