hcsoci

package
v0.8.15 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNamespaceEndpoints added in v0.8.7

func GetNamespaceEndpoints(ctx context.Context, netNS string) ([]*hns.HNSEndpoint, error)

GetNamespaceEndpoints gets all endpoints in `netNS`

func SetupNetworkNamespace added in v0.8.15

func SetupNetworkNamespace(ctx context.Context, hostingSystem *uvm.UtilityVM, nsid string) error

Network namespace setup is a bit different for templates and clones. For templates and clones we use a special network namespace ID. Details about this can be found in the Networking section of the late-clone wiki page.

In this function we take the namespace ID of the namespace that was created for this UVM. We hot add the namespace (with the default ID if this is a template). We get the endpoints associated with this namespace and then hot add those endpoints (by changing their namespace IDs by the deafult IDs if it is a template).

Types

This section is empty.

Jump to

Keyboard shortcuts

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