types

package
v0.0.0-...-287aef4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sArgs

type K8sArgs struct {
	cnitypes.CommonArgs
	IP                         net.IP
	K8S_POD_NAME               cnitypes.UnmarshallableString
	K8S_POD_NAMESPACE          cnitypes.UnmarshallableString
	K8S_POD_INFRA_CONTAINER_ID cnitypes.UnmarshallableString
	K8S_POD_UID                cnitypes.UnmarshallableString
}

type NetConf

type NetConf struct {
	cnitypes.NetConf

	// Surveyor params
	Network       string `json:"network"`
	SocketEnabled bool   `json:"socket_enabled"`
	SocketPath    string `json:"socket_path"`
	Kubeconfig    string `json:"kubeconfig"`
	CRDNamespace  string `json:"namespace"`

	// Macvlan params
	Master        string `json:"master"`
	Mode          string `json:"mode"`
	MTU           int    `json:"mtu"`
	Mac           string `json:"mac,omitempty"`
	RuntimeConfig struct {
		Mac string `json:"mac,omitempty"`
	} `json:"runtimeConfig,omitempty"`
}

NetConf is our definition for the CNI configuration

func LoadNetConf

func LoadNetConf(bytes []byte) (*NetConf, error)

LoadNetConf parses our cni configuration

Jump to

Keyboard shortcuts

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