Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigDriveID = "configDrive" MetadataID = "metadataService" )
Variables ¶
View Source
var (
ErrBadMetadata = errors.New("invalid OpenStack metadata, got empty uuid")
)
Functions ¶
This section is empty.
Types ¶
type DeviceMetadata ¶
type IMetadata ¶
type IMetadata interface { GetInstanceID() (string, error) GetAvailabilityZone() (string, error) GetProjectID() (string, error) }
func GetMetadataProvider ¶
type Metadata ¶
type Metadata struct { UUID string `json:"uuid"` Name string `json:"name"` AvailabilityZone string `json:"availability_zone"` ProjectID string `json:"project_id"` Devices []DeviceMetadata `json:"devices,omitempty"` }
type Opts ¶
type Opts struct { SearchOrder string `gcfg:"search-order"` // will be configDriver RequestTimeout utils.MyDuration `gcfg:"request-timeout"` // will be 0 }
Click to show internal directories.
Click to hide internal directories.