Expand description
OCI runtime spec types and definitions.
Structs§
- Box specifies dimensions of a rectangle. Used for specifying the size of a console.
- Builder for
Box
. - ExecCPUAffinity specifies CPU affinity used to execute the process. This setting is not applicable to the container’s init process.
- Builder for
ExecCPUAffinity
. - Hook specifies a command that is run at a particular event in the lifecycle of a container.
- Builder for
Hook
. - Hooks specifies a command that is run in the container at a particular event in the lifecycle (setup and teardown) of a container.
- Builder for
Hooks
. - Linux contains platform-specific configuration for Linux based containers.
- LinuxBlockIO for Linux cgroup ‘blkio’ resource management.
- Builder for
LinuxBlockIo
. - Builder for
Linux
. - LinuxCapabilities specifies the list of allowed capabilities that are kept for a process. http://man7.org/linux/man-pages/man7/capabilities.7.html
- Builder for
LinuxCapabilities
. - LinuxCPU for Linux cgroup ‘cpu’ resource management.
- Builder for
LinuxCpu
. - LinuxDevice represents the mknod information for a Linux special device file.
- Builder for
LinuxDevice
. - Represents a device rule for the devices specified to the device controller
- Builder for
LinuxDeviceCgroup
. - LinuxHugepageLimit structure corresponds to limiting kernel hugepages. Default to reservation limits if supported. Otherwise fallback to page fault limits.
- Builder for
LinuxHugepageLimit
. - RLimit types and restrictions.
- Builder for
LinuxIOPriority
. - LinuxIDMapping specifies UID/GID mappings.
- Builder for
LinuxIdMapping
. - LinuxIntelRdt has container runtime resource constraints for Intel RDT CAT and MBA features and flags enabling Intel RDT CMT and MBM features. Intel RDT features are available in Linux 4.14 and newer kernel versions.
- Builder for
LinuxIntelRdt
. - LinuxInterfacePriority for network interfaces.
- Builder for
LinuxInterfacePriority
. - LinuxMemory for Linux cgroup ‘memory’ resource management.
- Builder for
LinuxMemory
. - LinuxNamespace is the configuration for a Linux namespace.
- Builder for
LinuxNamespace
. - LinuxNetwork identification and priority configuration.
- Builder for
LinuxNetwork
. - LinuxPersonality represents the Linux personality syscall input.
- Builder for
LinuxPersonality
. - LinuxPids for Linux cgroup ‘pids’ resource management (Linux 4.3).
- Builder for
LinuxPids
. - LinuxRdma for Linux cgroup ‘rdma’ resource management (Linux 4.11).
- Builder for
LinuxRdma
. - Resource constraints for container
- Builder for
LinuxResources
. - LinuxSeccomp represents syscall restrictions.
- LinuxSeccompArg used for matching specific syscall arguments in seccomp.
- Builder for
LinuxSeccompArg
. - Builder for
LinuxSeccomp
. - LinuxSyscall is used to match a syscall in seccomp.
- Builder for
LinuxSyscall
. - LinuxThrottleDevice struct holds a
major:minor rate_per_second
pair. - Builder for
LinuxThrottleDevice
. - LinuxWeightDevice struct holds a
major:minor weight
pair for weightDevice. - Builder for
LinuxWeightDevice
. - Mount specifies a mount for a container.
- Builder for
Mount
. - RLimit types and restrictions.
- Builder for
PosixRlimit
. - Process contains information to start a specific application inside the container.
- Builder for
Process
. - Root contains information about the container’s root filesystem on the host.
- Builder for
Root
. - Scheduler represents the scheduling attributes for a process. It is based on the Linux sched_setattr(2) syscall.
- Builder for
Scheduler
. - Solaris contains platform-specific configuration for Solaris application containers.
- SolarisAnet provides the specification for automatic creation of network resources for this container.
- Builder for
SolarisAnet
. - Builder for
Solaris
. - SolarisCappedCPU allows users to set limit on the amount of CPU time that can be used by container.
- Builder for
SolarisCappedCPU
. - SolarisCappedMemory allows users to set the physical and swap caps on the memory that can be used by this container.
- Builder for
SolarisCappedMemory
. - Base configuration for the container.
- Builder for
Spec
. - User id (uid) and group id (gid) tracks file permssions.
- Builder for
User
. - VM contains information for virtual-machine-based containers.
- Builder for
VM
. - VMHypervisor contains information about the hypervisor to use for a virtual machine.
- Builder for
VMHypervisor
. - VMImage contains information about the virtual machine root image.
- Builder for
VMImage
. - VMKernel contains information about the kernel to use for a virtual machine.
- Builder for
VMKernel
. - Windows defines the runtime configuration for Windows based containers, including Hyper-V containers.
- Builder for
Windows
. - WindowsCPUResources contains CPU resource management settings.
- Builder for
WindowsCPUResources
. - WindowsDevice represents information about a host device to be mapped into the container.
- Builder for
WindowsDevice
. - WindowsHyperV contains information for configuring a container to run with Hyper-V isolation.
- Builder for
WindowsHyperV
. - WindowsMemoryResources contains memory resource management settings.
- Builder for
WindowsMemoryResources
. - WindowsNetwork contains network settings for Windows containers.
- Builder for
WindowsNetwork
. - Available windows resources.
- Builder for
WindowsResources
. - WindowsStorageResources contains storage resource management settings.
- Builder for
WindowsStorageResources
.
Enums§
- Available seccomp architectures.
- All available capabilities.
- IOPriorityClass represents an I/O scheduling class.
- Device types
- Available Linux namespaces.
- Define domain and flags for LinuxPersonality.
- LinuxSchedulerFlag represents the flags used by the Linux Scheduler.
- LinuxSchedulerPolicy represents different scheduling policies used with the Linux Scheduler
- Available seccomp actions.
- Available seccomp filter flags.
- The seccomp operator to be used for args.
- Available rlimit types (see https://man7.org/linux/man-pages/man2/getrlimit.2.html)
Constants§
- Indicates development branch. Releases will be empty string.
- API incompatible changes.
- Changing functionality in a backwards-compatible manner
- Backwards-compatible bug fixes.
Functions§
- Default masks paths, cannot read these host files.
- utility function to generate default config for mounts.
- Utility function to get default namespaces.
- Default readonly paths, for example most containers shouldn’t have permission to write to
/proc/sys
. - utility function to generate default rootless config for mounts.
- Retrieve the version as string representation.
Type Aliases§
- Capabilities is a unique set of Capability values.