cni

package
v1.15.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

	cell.Config(defaultConfig),
	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
}

type Config

type Config struct {
	WriteCNIConfWhenReady string
	ReadCNIConf           string
	CNIChainingMode       string
	CNILogFile            string
	CNIExclusive          bool
	CNIChainingTarget     string
	CNIExternalRouting    bool
}

func (Config) Flags

func (cfg Config) Flags(flags *pflag.FlagSet)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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