Documentation ¶
Overview ¶
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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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.
Types ¶
This section is empty.