types

package
v0.0.0-...-f7a5b1a Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 2 Imported by: 30

Documentation

Index

Constants

View Source
const (
	BinaryCryptsetup = "cryptsetup"
	BinaryFstrim     = "fstrim"
)
View Source
const (
	ExecuteNoTimeout      = time.Duration(-1)
	ExecuteDefaultTimeout = time.Minute
)
View Source
const (
	DiskDriverNone          = DiskDriver("")
	DiskDriverAuto          = DiskDriver("auto")
	DiskDriverAio           = DiskDriver("aio")
	DiskDriverNvme          = DiskDriver("nvme")
	DiskDriverVirtioScsi    = DiskDriver("virtio-scsi")
	DiskDriverVirtioBlk     = DiskDriver("virtio-blk")
	DiskDriverVirtioPci     = DiskDriver("virtio-pci")
	DiskDriverUioPciGeneric = DiskDriver("uio_pci_generic")
)
View Source
const (
	HostProcDirectory = "/host/proc"
	ProcDirectory     = "/proc"
)
View Source
const (
	ErrNamespaceCastResultFmt = "failed casting result to %T: %v"
	ErrNamespaceFuncFmt       = "failed function: %v"
)
View Source
const (
	NamespaceIpc = Namespace("ipc")
	NamespaceMnt = Namespace("mnt")
	NamespaceNet = Namespace("net")
)
View Source
const (
	ProcessContainerd     = "containerd"
	ProcessContainerdShim = "containerd-shim"
	ProcessDockerd        = "dockerd"
	ProcessNone           = ""
	ProcessSelf           = "self"

	// ProcessKubelet is not a standard process name for Kubelet, used by Talos Linux only.
	ProcessKubelet = "kubelet"
)
View Source
const LuksTimeout = time.Minute
View Source
const NsBinary = "nsenter"
View Source
const OSDistroTalosLinux = "talos"
View Source
const OsReleaseFilePath = "/etc/os-release"
View Source
const RandomIDDefaultLength = 8
View Source
const SysClassBlockDirectory = "/sys/class/block/"

Variables

View Source
var FileLockDefaultTimeout = 24 * time.Hour
View Source
var NsJoinerDefaultTimeout = 24 * time.Hour

Functions

This section is empty.

Types

type BlockDeviceInfo

type BlockDeviceInfo struct {
	Name  string // Name of the block device (e.g. sda, sdb, sdc, etc.).
	Major int    // Major number of the block device.
	Minor int    // Minor number of the block device.
}

BlockDeviceInfo is a struct that contains the block device info.

type DiskDriver

type DiskDriver string

type DiskStat

type DiskStat struct {
	DiskID           string
	Name             string
	Path             string
	Type             string
	Driver           DiskDriver
	FreeBlocks       int64
	TotalBlocks      int64
	BlockSize        int64
	StorageMaximum   int64
	StorageAvailable int64
}

type Namespace

type Namespace string

func (Namespace) Flag

func (ns Namespace) Flag() uintptr

func (Namespace) String

func (ns Namespace) String() string

Jump to

Keyboard shortcuts

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