Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(cloudName string) (*gophercloud.ProviderClient, error)
NewProvider returns a new authenticated ProviderClient
Types ¶
type Instance ¶
type Instance struct { Logger hclog.Logger // contains filtered or unexported fields }
Instance represents a OpenStack Compute Service client
type InstanceClient ¶
type InstanceClient interface { // Get retrieves a instance information from Provider Get(uuid string) (*servers.Server, error) }
func NewInstance ¶
func NewInstance(client *gophercloud.ProviderClient, logger hclog.Logger) (InstanceClient, error)
NewInstance returns a new OpenStack Compute Service client with given provider
type Metadata ¶
type Metadata struct { UUID string `json:"uuid"` Name string `json:"name"` AvailabilityZone string `json:"availability_zone"` ProjectID string `json:"project_id"` }
Metadata represents the information fetched from OpenStack metadata service
func GetMetadataFromMetadataService ¶
GetMetadataFromMetadataService gets metadata from OpenStack Metadata service.
Click to show internal directories.
Click to hide internal directories.