Documentation ¶
Index ¶
- type CNIConfig
- type CNIServer
- func (s *CNIServer) CmdAdd(ctx context.Context, request *cnipb.CniCmdRequest) (*cnipb.CniCmdResponse, error)
- func (s *CNIServer) CmdCheck(ctx context.Context, request *cnipb.CniCmdRequest) (*cnipb.CniCmdResponse, error)
- func (s *CNIServer) CmdDel(ctx context.Context, request *cnipb.CniCmdRequest) (*cnipb.CniCmdResponse, error)
- func (s *CNIServer) Initialize() error
- func (s *CNIServer) Run(stopCh <-chan struct{})
- type NetworkConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CNIConfig ¶
type CNIConfig struct { *NetworkConfig *cnipb.CniCmdArgs // contains filtered or unexported fields }
type CNIServer ¶
type CNIServer struct {
// contains filtered or unexported fields
}
func New ¶
func New( cniSocket, hostProcPathPrefix string, defaultMTU int, nodeConfig *agent.NodeConfig, ovsBridgeClient ovsconfig.OVSBridgeClient, ofClient openflow.Client, ifaceStore agent.InterfaceStore, kubeClient clientset.Interface, ) *CNIServer
func (*CNIServer) CmdAdd ¶
func (s *CNIServer) CmdAdd(ctx context.Context, request *cnipb.CniCmdRequest) ( *cnipb.CniCmdResponse, error)
func (*CNIServer) CmdCheck ¶
func (s *CNIServer) CmdCheck(ctx context.Context, request *cnipb.CniCmdRequest) ( *cnipb.CniCmdResponse, error)
func (*CNIServer) CmdDel ¶
func (s *CNIServer) CmdDel(ctx context.Context, request *cnipb.CniCmdRequest) ( *cnipb.CniCmdResponse, error)
func (*CNIServer) Initialize ¶
type NetworkConfig ¶
type NetworkConfig struct { CNIVersion string `json:"cniVersion,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` MTU int `json:"mtu,omitempty"` DNS types.DNS `json:"dns"` IPAM ipam.IPAMConfig `json:"ipam,omitempty"` RawPrevResult map[string]interface{} `json:"prevResult,omitempty"` PrevResult types.Result `json:"-"` }
Click to show internal directories.
Click to hide internal directories.