cni

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"cni-config",
	"CNI configuration manager",

	config.Cell,
	cell.Provide(enableConfigManager),
)

Functions

This section is empty.

Types

type CNIConfigManager

type CNIConfigManager interface {
	// GetMTU provides the MTU from the provided CNI configuration file.
	// This is only useful if ReadCNIConfiguration is set *and* the file specifies an MTU.
	GetMTU() int

	// GetChainingMode returns the configured CNI chaining mode
	GetChainingMode() string

	// Status returns the status of the CNI manager.
	// Cannot return nil.
	Status() *models.Status

	GetCustomNetConf() *cnitypes.NetConf

	// ExternalRoutingEnabled returns true if the chained plugin implements
	// routing for Endpoints (Pods).
	ExternalRoutingEnabled() bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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