package spec
import "github.com/Microsoft/hcsshim/internal/guest/spec"
Package spec encapsulates a number of GCS specific oci spec modifications, e.g., networking mounts, sandbox path substitutions in guest etc.
Index ¶
- func GenerateWorkloadContainerNetworkMounts(sandboxID string, spec *oci.Spec) []oci.Mount
- func HugePagesMountSource(sandboxID, path string) string
- func HugePagesMountsDir(sandboxID string) string
- func MountPresent(mountPath string, specMounts []oci.Mount) bool
- func SandboxMountSource(sandboxID, path string) string
- func SandboxMountsDir(sandboxID string) string
- func SandboxRootDir(sandboxID string) string
Functions ¶
func GenerateWorkloadContainerNetworkMounts ¶
GenerateWorkloadContainerNetworkMounts generates an array of specs.Mount required for container networking. Original spec is left untouched and it's the responsibility of a caller to update it.
func HugePagesMountSource ¶
HugePagesMountSource returns hugepages mount path inside UVM
func HugePagesMountsDir ¶
HugePagesMountsDir returns hugepages mounts directory inside UVM.
func MountPresent ¶
MountPresent checks if mountPath is present in the specMounts array.
func SandboxMountSource ¶
SandboxMountSource returns sandbox mount path inside UVM
func SandboxMountsDir ¶
SandboxMountsDir returns sandbox mounts directory inside UVM/host.
func SandboxRootDir ¶
SandboxRootDir returns the sandbox container root directory inside UVM/host.
Source Files ¶
- Version
- v0.12.9 (latest)
- Published
- Oct 30, 2024
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 14 hours ago –
Tools for package owners.