Documentation ¶
Index ¶
- Constants
- Variables
- func AddIfaceToResult(epid string, macAddress string, sandBox string, cniResult *current.Result)
- func AddIpToResult(ip string, version string, cniResult *current.Result)
- func CreateDanmClient(kubeConfig string) (danmclientset.Interface, error)
- func CreateInterfaces(args *skel.CmdArgs) error
- func DeleteInterfaces(args *skel.CmdArgs) error
- func GetInterfaces(args *skel.CmdArgs) error
- type K8sArgs
Constants ¶
View Source
const (
DefaultCniDir = "/etc/cni/net.d"
)
Variables ¶
View Source
var (
DanmConfig *datastructs.NetConf
)
Functions ¶
func AddIfaceToResult ¶
func CreateDanmClient ¶
func CreateDanmClient(kubeConfig string) (danmclientset.Interface, error)
func CreateInterfaces ¶
func DeleteInterfaces ¶
func GetInterfaces ¶
Types ¶
type K8sArgs ¶
type K8sArgs struct { types.CommonArgs IP net.IP K8S_POD_NAME types.UnmarshallableString K8S_POD_NAMESPACE types.UnmarshallableString K8S_POD_INFRA_CONTAINER_ID types.UnmarshallableString }
K8sArgs is the valid CNI_ARGS type used to parse K8s CNI event calls (thanks Multus)
Click to show internal directories.
Click to hide internal directories.