types

package
v0.0.0-...-5cef3e7 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNeedSandbox       = errors.New("Sandbox must be specified")
	ErrNeedSandboxID     = errors.New("Sandbox ID cannot be empty")
	ErrNeedContainerID   = errors.New("Container ID cannot be empty")
	ErrNeedState         = errors.New("State cannot be empty")
	ErrNoSuchContainer   = errors.New("Container does not exist")
	ErrInvalidConfigType = errors.New("Invalid config type")
)

common error objects used for argument checking

Functions

This section is empty.

Types

type IPAddress

type IPAddress struct {
	Family  int
	Address string
	Mask    string
}

IPAddress describes an IP address.

type Interface

type Interface struct {
	Device      string
	Name        string
	IPAddresses []*IPAddress
	Mtu         uint64
	RawFlags    uint32
	HwAddr      string
	// pciAddr is the PCI address in the format  "bridgeAddr/deviceAddr".
	// Here, bridgeAddr is the address at which the bridge is attached on the root bus,
	// while deviceAddr is the address at which the network device is attached on the bridge.
	PciAddr string
	// LinkType defines the type of interface described by this structure.
	// The expected values are the one that are defined by the netlink
	// library, regarding each type of link. Here is a non exhaustive
	// list: "veth", "macvtap", "vlan", "macvlan", "tap", ...
	LinkType string
}

Interface describes a network interface.

type Route

type Route struct {
	Dest    string
	Gateway string
	Device  string
	Source  string
	Scope   uint32
}

Route describes a network route.

Jump to

Keyboard shortcuts

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