Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndpointInfo ¶
type EndpointInfo struct { Id string ContainerID string NetNsPath string IfName string IPAddresses []net.IPNet Routes []RouteInfo DNS DNSInfo Data map[string]interface{} }
EndpointInfo contains read-only information about an endpoint.
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
Namespace represents a network namespace.
func GetCurrentThreadNamespace ¶ added in v1.0.0
GetCurrentThreadNamespace returns the caller thread's current namespace.
func OpenNamespace ¶ added in v1.0.0
OpenNamespace creates a new namespace object for the given netns path.
type NetworkInfo ¶
type NetworkInfo struct { Id string Mode string Subnets []SubnetInfo DNS DNSInfo BridgeName string Options map[string]interface{} }
NetworkInfo contains read-only information about a container network.
type NetworkManager ¶
type NetworkManager interface { Initialize(config *common.PluginConfig) error Uninitialize() AddExternalInterface(ifName string, subnet string) error CreateNetwork(nwInfo *NetworkInfo) error DeleteNetwork(networkId string) error GetNetworkInfo(networkId string) (*NetworkInfo, error) CreateEndpoint(networkId string, epInfo *EndpointInfo) error DeleteEndpoint(networkId string, endpointId string) error GetEndpointInfo(networkId string, endpointId string) (*EndpointInfo, error) AttachEndpoint(networkId string, endpointId string, sandboxKey string) (*endpoint, error) DetachEndpoint(networkId string, endpointId string) error }
NetworkManager API.
func NewNetworkManager ¶
func NewNetworkManager() (NetworkManager, error)
Creates a new network manager.
type SubnetInfo ¶
SubnetInfo contains subnet information for a container network.
Click to show internal directories.
Click to hide internal directories.