Documentation ¶
Index ¶
Constants ¶
View Source
const AttachDetachRequest = `
{
"instance_id": "8dc30d49-bb34-4920-9bbd-03a2587ec0ad"
}
`
View Source
const AttachResponse = `
{
"tasks": [
"50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
]
}
`
View Source
const DetachResponse = `
{
"tasks": [
"50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
]
}
`
Variables ¶
View Source
var ( Volume1 = volumes.Volume{ AvailabilityZone: "nova", CreatedAt: createdTime, UpdatedAt: updatedTime, VolumeType: "standard", ID: "726ecfcc-7fd0-4e30-a86e-7892524aa483", Name: "123", RegionName: "Luxembourg 1", Status: "available", Size: 2, Bootable: false, ProjectID: 1, RegionID: 1, Attachments: []volumes.Attachment{{ ServerID: "8dc30d49-bb34-4920-9bbd-03a2587ec0ad", AttachmentID: "f2ed59d9-8068-400c-be4b-c4501ef6f33c", InstanceName: "123", AttachedAt: attachedTime, VolumeID: "67baa7d1-08ea-4fc5-bef2-6b2465b7d227", Device: "/dev/vda", }, }, Metadata: []metadata.Metadata{ResourceMetadataReadOnly}, CreatorTaskID: "d74c2bb9-cea7-4b23-a009-2f13518ae66d", VolumeImageMetadata: volumes.VolumeImageMetadata{ ContainerFormat: "bare", MinRAM: "0", OwnerSpecifiedOpenstackSHA256: "87ddf8eea6504b5eb849e418a568c4985d3cea59b5a5d069e1dc644de676b4ec", DiskFormat: "raw", ImageName: "cirros-gcloud", ImageID: "723037e2-ec6d-47eb-92de-6276c8907839", OwnerSpecifiedOpenstackObject: "images/cirros-gcloud", OwnerSpecifiedOpenstackMD5: "ba3cd24377dde5dfdd58728894004abb", MinDisk: "1", Checksum: "ba3cd24377dde5dfdd58728894004abb", Size: "46137344", }, } Tasks1 = tasks.TaskResults{ Tasks: []tasks.TaskID{"50f53a35-42ed-40c4-82b2-5a37fb3e00bc"}, } ResourceMetadataReadOnly = metadata.Metadata{ Key: "some_key", Value: "some_val", ReadOnly: false, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.