networkcontainers

package
v1.4.12 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 14 Imported by: 1

Documentation

Index

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

func DeleteLoopbackAdapter(adapterName string) error

DeleteLoopbackAdapter deletes loopback adapter with the specified name

func InterfaceExists

func InterfaceExists(iFaceName string) (bool, error)

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{}

NetworkContainers can be used to perform operations on network containers.

func (*NetworkContainers) Attach

func (cn *NetworkContainers) Attach(podInfo cns.PodInfo, 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.PodInfo, 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