networkcontainers

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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