types

package
v0.0.0-...-ec79818 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 3 Imported by: 28

Documentation

Index

Constants

View Source
const (
	CryptoKeyProvider = "CRYPTO_KEY_PROVIDER"
	CryptoKeyValue    = "CRYPTO_KEY_VALUE"
	CryptoKeyCipher   = "CRYPTO_KEY_CIPHER"
	CryptoKeyHash     = "CRYPTO_KEY_HASH"
	CryptoKeySize     = "CRYPTO_KEY_SIZE"
	CryptoPBKDF       = "CRYPTO_PBKDF"
)
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")
	DiskDriverVfioPci       = DiskDriver("vfio_pci")
)
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 NFSMountFileName = "nfsmount.conf"
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 SysBootDirectory = "/boot/"
View Source
const SysClassBlockDirectory = "/sys/class/block/"
View Source
const SysEtcDirectory = "/etc/"
View Source
const SysKernelConfigGz = "config.gz"
View Source
const SysProcDirectory = "/proc/"

Variables

View Source
var (
	ErrNotConfigured = errors.New("is not configured")
)
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