Documentation ¶
Index ¶
- func CreateLoopbackAdapter(adapterName string, ipConfig cns.IPConfiguration, setWeakHostOnInterface bool, ...) error
- func DeleteLoopbackAdapter(adapterName string) error
- func InterfaceExists(iFaceName string) (bool, error)
- 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 ¶
func CreateLoopbackAdapter ¶
func CreateLoopbackAdapter( adapterName string, ipConfig cns.IPConfiguration, setWeakHostOnInterface bool, primaryInterfaceIdentifier string) error
CreateLoopbackAdapter creates a loopback adapter with the specified settings
func DeleteLoopbackAdapter ¶
DeleteLoopbackAdapter deletes loopback adapter with the specified name
func InterfaceExists ¶
Types ¶
type NetPluginConfiguration ¶
type NetPluginConfiguration struct {
// contains filtered or unexported fields
}
NetPluginConfiguration represent network plugin configuration that is used during CNI ADD/DELETE/UPDATE operation
func NewNetPluginConfiguration ¶
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 ¶
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 ¶
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.