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 HuaweiCloud metadata, got empty uuid")
ErrBadMetadata is used to indicate a problem parsing data from metadata server
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { UUID string `json:"uuid"` Name string `json:"name"` AvailabilityZone string `json:"availability_zone"` RegionID string `json:"region_id"` }
Metadata has the information fetched from HuaweiCloud metadata service or config drives. Assumes the "latest" meta_data.json format.
Click to show internal directories.
Click to hide internal directories.