Documentation
¶
Index ¶
Constants ¶
View Source
const ( // GBToMBConversion is the multiplier to convert GB to MB. GBToMBConversion = 1024 // RegexMatchGroups is the expected number of groups in platform name regex. RegexMatchGroups = 3 // IPv6Version is the version number for IPv6. IPv6Version = 6 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
ID string `json:"id"`
Name string `json:"name"`
Status string `json:"status"`
VMState string `json:"OS-EXT-STS:vm_state"`
Flavor any `json:"flavor"`
Addresses map[string]interface{} `json:"addresses"`
Metadata any `json:"metadata"`
Image any `json:"image"`
ImageMetadata any `json:"image_metadata"`
AttachedVolumes []servers.AttachedVolume `json:"os-extended-volumes:volumes_attached"`
}
type Source ¶
type Source struct {
common.Config
// OpenStack API data
Servers []Server
Flavors []flavors.Flavor
Networks []networks.Network
Volumes []volumes.Volume
Images []images.Image
// Gophercloud clients
ComputeClient *gophercloud.ServiceClient
NetworkClient *gophercloud.ServiceClient
BlockStorageClient *gophercloud.ServiceClient
ImageClient *gophercloud.ServiceClient
}
Click to show internal directories.
Click to hide internal directories.