cnimgr

package
v1.30.4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CNIManager

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

func New

func New(defaultNetwork, networkDir string, pluginDirs ...string) (*CNIManager, error)

func (*CNIManager) AddWatcher

func (c *CNIManager) AddWatcher() chan bool

Add watcher creates a new watcher for the CNI manager said watcher will send a `true` value if the CNI plugin was successfully ready or `false` if the server shutdown first

func (*CNIManager) Plugin

func (c *CNIManager) Plugin() ocicni.CNIPlugin

Plugin returns the CNI plugin

func (*CNIManager) ReadyOrError

func (c *CNIManager) ReadyOrError() error

ReadyOrError returns nil if the plugin is ready, or the last error that was received in checking.

func (*CNIManager) Shutdown added in v1.22.2

func (c *CNIManager) Shutdown()

Shutdown shuts down the CNI manager, and notifies the watcher that the CNI manager is not ready

Jump to

Keyboard shortcuts

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