package hvsocket

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

Index

Functions

func CreateAddressInfo

func CreateAddressInfo(systemID, vmID, siloID guid.GUID, passthru bool) (resources.ResourceCloser, error)

CreateAddressInfo creates an address info entry in the HvSocket provider to map a compute system GUID to a virtual machine ID or compartment ID.

`systemID` is the compute system GUID to map. `vmID` is the virtual machine ID to which the system GUID maps to. Must be guid.GUID{} to specify that the system GUID maps to a network compartment ID on the hosting system. `siloID` is the silo object ID to which the system GUID maps to. `passthru` when vmID is not guid.GUID{}, specifies whether the systemID maps to the primary compartment of the virtual machine (set to `false`) or to another compartment within the virtual machine (set to `true`)

func CreateContainerAddressInfo

func CreateContainerAddressInfo(containerID, uvmID guid.GUID) (resources.ResourceCloser, error)

CreateContainerAddressInfo creates an address info entry in HvSocket to redirect the calls to the container silo inside UVM.

Source Files

hvsocket.go

Version
v0.13.0 (latest)
Published
Apr 21, 2025
Platform
windows/amd64
Imports
6 packages
Last checked
6 hours ago

Tools for package owners.