package blockio
import "github.com/containerd/containerd/v2/pkg/blockio"
Index ¶
- func ClassNameToLinuxOCI(className string) (*runtimespec.LinuxBlockIO, error)
- func ContainerClassFromAnnotations(containerName string, containerAnnotations, podAnnotations map[string]string) (string, error)
- func IsEnabled() bool
- func SetConfig(configFilePath string) error
Functions ¶
func ClassNameToLinuxOCI ¶
func ClassNameToLinuxOCI(className string) (*runtimespec.LinuxBlockIO, error)
ClassNameToLinuxOCI converts blockio class name into the LinuxBlockIO structure in the OCI runtime spec.
func ContainerClassFromAnnotations ¶
func ContainerClassFromAnnotations(containerName string, containerAnnotations, podAnnotations map[string]string) (string, error)
ContainerClassFromAnnotations examines container and pod annotations of a container and returns its blockio class.
func IsEnabled ¶
func IsEnabled() bool
IsEnabled checks whether blockio is enabled.
func SetConfig ¶
SetConfig updates blockio config with a given config path.
Source Files ¶
- Version
- v2.0.4 (latest)
- Published
- Mar 17, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 month ago –
Tools for package owners.