cniapi

package
v0.0.0-01-26-2016.15-4... Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const ContivCniSocket = "/run/contiv/contiv-cni.sock"

ContivCniSocket is the full path to the listen socket for netplugin

View Source
const EPAddURL = "/ContivCNI.AddPod"

EPAddURL is the rest point for adding an endpoint

View Source
const EPDelURL = "/ContivCNI.DelPod"

EPDelURL is the rest point for deleting an endpoint

View Source
const PluginPath = "/run/contiv"

PluginPath is the path to the listen socket directory for netplugin

Variables

This section is empty.

Functions

This section is empty.

Types

type CNIPodAttr

type CNIPodAttr struct {
	Name             string `json:"K8S_POD_NAME,omitempty"`
	K8sNameSpace     string `json:"K8S_POD_NAMESPACE,omitempty"`
	InfraContainerID string `json:"K8S_POD_INFRA_CONTAINER_ID,omitempty"`
	NwNameSpace      string `json:"CNI_NETNS,omitempty"`
	IntfName         string `json:"CNI_IFNAME,omitempty"`
}

CNIPodAttr holds attributes of the pod to be attached or detached

type RspAddPod

type RspAddPod struct {
	EndpointID string `json:"endpointid,omitempty"`
	IPAddress  string `json:"ipaddress,omitempty"`
}

RspAddPod contains the response to the AddPod

Jump to

Keyboard shortcuts

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