package hcsoci

import "github.com/Microsoft/hcsshim/internal/hcsoci"

Index

Functions

func GetNamespaceEndpoints

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

GetNamespaceEndpoints gets all endpoints in `netNS`

func SetupNetworkNamespace

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).

Source Files

devices.go network.go

Version
v0.8.15
Published
Mar 2, 2021
Platform
js/wasm
Imports
16 packages
Last checked
7 minutes ago

Tools for package owners.