Jon Perritt | 37465a0 | 2015-02-23 14:15:04 -0700 | [diff] [blame^] | 1 | package volumeattach |
| 2 | |
| 3 | import ( |
| 4 | "github.com/rackspace/gophercloud" |
| 5 | os "github.com/rackspace/gophercloud/openstack/compute/v2/extensions/volumeattach" |
| 6 | "github.com/rackspace/gophercloud/pagination" |
| 7 | ) |
| 8 | |
| 9 | // List returns a Pager that allows you to iterate over a collection of VolumeAttachments. |
| 10 | func List(client *gophercloud.ServiceClient, serverID string) pagination.Pager { |
| 11 | return os.List(client, serverID) |
| 12 | } |
| 13 | |
| 14 | // Create requests the creation of a new volume attachment on the server |
| 15 | func Create(client *gophercloud.ServiceClient, serverID string, opts os.CreateOptsBuilder) os.CreateResult { |
| 16 | return os.Create(client, serverID, opts) |
| 17 | } |
| 18 | |
| 19 | // Get returns public data about a previously created VolumeAttachment. |
| 20 | func Get(client *gophercloud.ServiceClient, serverID, aID string) os.GetResult { |
| 21 | return os.Get(client, serverID, aID) |
| 22 | } |
| 23 | |
| 24 | // Delete requests the deletion of a previous stored VolumeAttachment from the server. |
| 25 | func Delete(client *gophercloud.ServiceClient, serverID, aID string) os.DeleteResult { |
| 26 | return os.Delete(client, serverID, aID) |
| 27 | } |