v1

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 0 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockDeviceInfo

type BlockDeviceInfo struct {
	Blockdevices []Blockdevice `json:"blockdevices"`
}

BlockDeviceInfo exposes the json output of lsblk:"blockdevices"

type Blockdevice

type Blockdevice struct {
	Name       string        `json:"name"`               //block device name
	Majmin     string        `json:"maj:min"`            //major and minor block device number
	Rm         string        `json:"rm"`                 //is device removable
	Size       string        `json:"size"`               //size of device
	Ro         string        `json:"ro"`                 //is device read-only
	Type       string        `json:"type"`               //is device disk or partition
	Mountpoint string        `json:"mountpoint"`         //block device mountpoint
	Children   []Blockdevice `json:"children,omitempty"` //Blockdevice ...
}

Blockdevice has block disk fields

type HostDirSBA

type HostDirSBA struct {
	StorageBackendAdaptor
	HostDir string `json:"hostDir"`
}

HostDirSBA contains the generic options that apply to all the HostDirStorageBackendAdaptors (K8s CRD yaml)

type OsCommand

type OsCommand struct {
	Command string
	Flag    string
}

OsCommand is for operating system related commands for block devices

type StorageBackendAdaptor

type StorageBackendAdaptor struct {
	NodeFilter        string `json:"nodeFilter"`
	MaxAllocationSize string `json:"maxAllocationSize"`
}

StorageBackendAdaptor contains the generic options that apply to all the StorageBackendAdaptors (K8s CRD yaml)

Jump to

Keyboard shortcuts

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