Versions in this module Expand all Collapse all v0 v0.3.11 Aug 20, 2018 Changes in this version + const CNIAdd + const CNIDel + const CNIUpdate + func HandleCNIRequest(request *PodRequest) ([]byte, error) + type Plugin struct + func NewCNIPlugin(socketPath string) *Plugin + func (p *Plugin) CmdAdd(args *skel.CmdArgs) error + func (p *Plugin) CmdDel(args *skel.CmdArgs) error + type PodRequest struct + CNIConf *types.NetConf + Command command + IfName string + Netns string + PodName string + PodNamespace string + Result chan *PodResult + SandboxID string + func (pr *PodRequest) ConfigureInterface(namespace string, podName string, macAddress string, ipAddress string, ...) ([]*current.Interface, error) + func (pr *PodRequest) PlatformSpecificCleanup() error + type PodResult struct + Err error + Response []byte + type Request struct + Config []byte + Env map[string]string + type Server struct + func NewCNIServer(rundir string) *Server + func (s *Server) Start(requestFunc cniRequestFunc) error