cniconfig

package
v0.0.0-...-1d215ed Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CniConfig

type CniConfig struct {
	VlanIds          []uint16
	VlanType         string
	PodInterfaceType string
	CniOpts          map[string]interface{}
	Log              logr.Logger
}

CniConfig contains data required for cni's

func NewCniConfig

func NewCniConfig(vlans []uint16, typeOfVlan string, typeOfPodInterface string, cniOptions map[string]interface{}, logger logr.Logger) *CniConfig

NewCniConfig - creates an instance of CniConfig struct

type IpamConfig

type IpamConfig struct {
	Subnets []*enov1alpha1.Subnet
	Routes  map[string][]*enov1alpha1.Route
	Log     logr.Logger
}

IpamConfig contains data required by Ipam cni

func NewIpamConfig

func NewIpamConfig(subnets []*enov1alpha1.Subnet, routes map[string][]*enov1alpha1.Route, logger logr.Logger) *IpamConfig

NewIpamConfig - creates an instance of IpamCniConfig struct

Jump to

Keyboard shortcuts

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