package blockio

import "github.com/containerd/containerd/pkg/blockio"

Index

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

func SetConfig(configFilePath string) error

SetConfig updates blockio config with a given config path.

Source Files

blockio_linux.go

Version
v1.7.24
Published
Nov 21, 2024
Platform
linux/amd64
Imports
5 packages
Last checked
1 minute ago

Tools for package owners.