blob: c6003e0e5b94906fa3cca7b1c3054554aecc17e4 [file] [log] [blame]
Jon Perritt37465a02015-02-23 14:15:04 -07001package volumeattach
2
3import (
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.
10func 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
15func 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.
20func 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.
25func Delete(client *gophercloud.ServiceClient, serverID, aID string) os.DeleteResult {
26 return os.Delete(client, serverID, aID)
27}