machine

package
v0.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	BsUnknown   string = "unknown"
	BsSCSI      string = "scsi"
	BsVirtioBlk string = "virtio_blk"
)

Block Storage type enum

View Source
const (
	ProviderUnknown   string = "Unknown"
	ProviderOpenstack string = "OpenStack Foundation"
)

Provider Enum

Variables

This section is empty.

Functions

This section is empty.

Types

type MachineInfos

type MachineInfos struct {
	Uuid             uuid.UUID `json:"uuid"`
	Hostname         string    `json:"hostname"`
	SysVendor        string    `json:"sys_vendor"`
	ChassisVendor    string    `json:"chassis_vendor"`
	BlockStorageType string    `json:"block_storage_type"`
	KubeNodeName     string    `json:"node_name"`
}

func ReadFsInfos

func ReadFsInfos() (*MachineInfos, error)

ReadFsInfos reads machine infos directly from its pseudo-fs and return it in MachineInfos struct.

func ReadOpenstackInfos

func ReadOpenstackInfos() (*MachineInfos, error)

Jump to

Keyboard shortcuts

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