Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MetadataID is used as an identifier on the metadata search order configuration. MetadataID = "metadataService" // configDriveID is used as an identifier on the metadata search order configuration. ConfigDriveID = "configDrive" )
Variables ¶
View Source
var ErrBadMetadata = errors.New("invalid OpenStack metadata, got empty uuid")
ErrBadMetadata is used to indicate a problem parsing data from metadata server
Functions ¶
func GetDevicePath ¶
Types ¶
type DeviceMetadata ¶
type DeviceMetadata struct { Type string `json:"type"` Bus string `json:"bus,omitempty"` Serial string `json:"serial,omitempty"` Address string `json:"address,omitempty"` }
DeviceMetadata is a single/simplified data structure for all kinds of device metadata types.
type Metadata ¶
type Metadata struct { UUID string `json:"uuid"` Name string `json:"name"` AvailabilityZone string `json:"availability_zone"` Devices []DeviceMetadata `json:"devices,omitempty"` }
Metadata has the information fetched from OpenStack metadata service or config drives. Assumes the "2012-08-10" meta_data.json format. See http://docs.openstack.org/user-guide/cli_config_drive.html
func GetFromConfigDrive ¶
func GetFromMetadataService ¶
Click to show internal directories.
Click to hide internal directories.