networkmanager

package
v0.0.0-...-893bab6 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeControllerManager

type FakeControllerManager struct{}

func (*FakeControllerManager) CleanupStaleNetworks

func (fcm *FakeControllerManager) CleanupStaleNetworks(validNetworks ...util.NetInfo) error

func (*FakeControllerManager) GetDefaultNetworkController

func (fcm *FakeControllerManager) GetDefaultNetworkController() networkmanager.ReconcilableNetworkController

func (*FakeControllerManager) NewNetworkController

func (fcm *FakeControllerManager) NewNetworkController(netInfo util.NetInfo) (networkmanager.NetworkController, error)

type FakeNetworkController

type FakeNetworkController struct {
	util.NetInfo
}

func (*FakeNetworkController) Cleanup

func (fnc *FakeNetworkController) Cleanup() error

func (*FakeNetworkController) Reconcile

func (nc *FakeNetworkController) Reconcile(util.NetInfo) error

func (*FakeNetworkController) Start

func (fnc *FakeNetworkController) Start(ctx context.Context) error

func (*FakeNetworkController) Stop

func (fnc *FakeNetworkController) Stop()

type FakeNetworkManager

type FakeNetworkManager struct {
	// namespace -> netInfo
	PrimaryNetworks map[string]util.NetInfo
}

func (*FakeNetworkManager) DoWithLock

func (nc *FakeNetworkManager) DoWithLock(f func(network util.NetInfo) error) error

func (*FakeNetworkManager) GetActiveNetworkForNamespace

func (fnm *FakeNetworkManager) GetActiveNetworkForNamespace(namespace string) (util.NetInfo, error)

func (*FakeNetworkManager) GetActiveNetworkNamespaces

func (nc *FakeNetworkManager) GetActiveNetworkNamespaces(networkName string) ([]string, error)

func (*FakeNetworkManager) GetNetwork

func (nc *FakeNetworkManager) GetNetwork(networkName string) util.NetInfo

func (*FakeNetworkManager) Start

func (fnm *FakeNetworkManager) Start() error

func (*FakeNetworkManager) Stop

func (fnm *FakeNetworkManager) Stop()

Jump to

Keyboard shortcuts

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