utils

package
v0.48.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DriverStatusPoolName      = "Pool Name"
	DriverStatusMetadataFile  = "Metadata file"
	DriverStatusParentDataset = "Parent Dataset"
)

Variables

This section is empty.

Functions

func ContainerNameToId added in v0.48.0

func ContainerNameToId(name string) string

Returns the ID from the full container name.

func DockerMetadataDevice

func DockerMetadataDevice(info dockertypes.Info) (string, error)

func DockerThinPoolName

func DockerThinPoolName(info dockertypes.Info) (string, error)

func DockerZfsFilesystem

func DockerZfsFilesystem(info dockertypes.Info) (string, error)

func DriverStatusValue

func DriverStatusValue(status [][2]string, target string) string

func IsContainerName added in v0.48.0

func IsContainerName(name string) bool

IsContainerName returns true if the cgroup with associated name corresponds to a container.

func SummariesToImages added in v0.48.0

func SummariesToImages(summaries []dockertypes.ImageSummary) ([]v1.DockerImage, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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