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 ¶
LoadNetConf parses our cni configuration
Click to show internal directories.
Click to hide internal directories.