blockio

package
v1.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL