Documentation ¶
Index ¶
- type NetPluginConfiguration
- type NetworkContainers
- func (cn *NetworkContainers) Attach(podInfo cns.KubernetesPodInfo, dockerContainerid string, ...) error
- func (cn *NetworkContainers) Create(createNetworkContainerRequest cns.CreateNetworkContainerRequest) error
- func (cn *NetworkContainers) Delete(networkContainerID string) error
- func (cn *NetworkContainers) Detach(podInfo cns.KubernetesPodInfo, dockerContainerid string, ...) error
- func (cn *NetworkContainers) Update(createNetworkContainerRequest cns.CreateNetworkContainerRequest, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetPluginConfiguration ¶ added in v1.0.18
type NetPluginConfiguration struct {
// contains filtered or unexported fields
}
NetPluginConfiguration represent network plugin configuration that is used during CNI ADD/DELETE/UPDATE operation
func NewNetPluginConfiguration ¶ added in v1.0.18
func NewNetPluginConfiguration(binPath, configPath string) *NetPluginConfiguration
NewNetPluginConfiguration create a new netplugin configuration.
type NetworkContainers ¶
type NetworkContainers struct {
// contains filtered or unexported fields
}
NetworkContainers can be used to perform operations on network containers.
func (*NetworkContainers) Attach ¶ added in v1.0.18
func (cn *NetworkContainers) Attach(podInfo cns.KubernetesPodInfo, dockerContainerid string, netPluginConfig *NetPluginConfiguration) error
Attach - attaches network container to network.
func (*NetworkContainers) Create ¶
func (cn *NetworkContainers) Create(createNetworkContainerRequest cns.CreateNetworkContainerRequest) error
Create creates a network container.
func (*NetworkContainers) Delete ¶
func (cn *NetworkContainers) Delete(networkContainerID string) error
Delete deletes a network container.
func (*NetworkContainers) Detach ¶ added in v1.0.18
func (cn *NetworkContainers) Detach(podInfo cns.KubernetesPodInfo, dockerContainerid string, netPluginConfig *NetPluginConfiguration) error
Detach - detaches network container from network.
func (*NetworkContainers) Update ¶
func (cn *NetworkContainers) Update(createNetworkContainerRequest cns.CreateNetworkContainerRequest, netpluginConfig *NetPluginConfiguration) error
Update updates a network container.
Click to show internal directories.
Click to hide internal directories.