package
0.0.0-20210113074727-2393a1140d65
Repository: https://github.com/kikichuang/hcsshim.git
Documentation: pkg.go.dev
# Functions
GetSandboxTypeAndID parses `specAnnotations` searching for the `KubernetesContainerTypeAnnotation` and `KubernetesSandboxIDAnnotation` annotations and if found validates the set before returning.
IsIsolated checks if `s` is hypervisor isolated.
IsLCOW checks if `s` is a LCOW config.
IsWCOW checks if `s` is a WCOW config (argon OR isolated).
ParseAnnotationsCPUCount searches `s.Annotations` for the CPU annotation.
ParseAnnotationsCPULimit searches `s.Annotations` for the CPU annotation.
ParseAnnotationsCPUWeight searches `s.Annotations` for the CPU annotation.
ParseAnnotationsMemory searches `s.Annotations` for the memory annotation.
ParseAnnotationsStorageBps searches `s.Annotations` for the `Bps` annotation.
ParseAnnotationsStorageIops searches `s.Annotations` for the `Iops` annotation.
SpecToUVMCreateOpts parses `s` and returns either `*uvm.OptionsLCOW` or `*uvm.OptionsWCOW`.
UpdateSpecFromOptions sets extra annotations on the OCI spec based on the `opts` struct.
# Constants
AnnotationAssignedDeviceKernelDrivers indicates what drivers to install in the pod during device assignment.
AnnotationContainerMemorySizeInMB overrides the container memory size set via the OCI spec.
AnnotationContainerProcessorCount overrides the container processor count set via the OCI spec.
AnnotationContainerProcessorLimit overrides the container processor limit set via the OCI spec.
AnnotationContainerProcessorWeight overrides the container processor weight set via the OCI spec.
AnnotationContainerStorageQoSBandwidthMaximum overrides the container storage bandwidth per second set via the OCI spec.
AnnotationContainerStorageQoSIopsMaximum overrides the container storage maximum iops set via the OCI spec.
AnnotationGPUVHDPath overrides the default path to search for the gpu vhd.
KubernetesContainerTypeAnnotation is the annotation used by CRI to define the `ContainerType`.
KubernetesContainerTypeContainer is valid when `KubernetesContainerTypeAnnotation == "container"`.
KubernetesContainerTypeNone is only valid when `KubernetesContainerTypeAnnotation` is not set.
KubernetesContainerTypeSandbox is valid when `KubernetesContainerTypeAnnotation == "sandbox"`.
KubernetesSandboxIDAnnotation is the annotation used by CRI to define the KubernetesContainerTypeAnnotation == "sandbox"` ID.
# Type aliases
KubernetesContainerType defines the valid types of the `KubernetesContainerTypeAnnotation` annotation.