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)
Click to show internal directories.
Click to hide internal directories.