move ListOpts to requests.go
diff --git a/openstack/blockStorage/v1/volumeTypes/requests.go b/openstack/blockStorage/v1/volumeTypes/requests.go
index 3adcb2d..42c4a8b 100644
--- a/openstack/blockStorage/v1/volumeTypes/requests.go
+++ b/openstack/blockStorage/v1/volumeTypes/requests.go
@@ -66,6 +66,10 @@
return gr
}
+// ListOpts holds options for listing volumes. It is passed to the volumes.List function.
+type ListOpts struct {
+}
+
func List(client *gophercloud.ServiceClient, opts ListOpts) pagination.Pager {
createPage := func(r pagination.LastHTTPResponse) pagination.Page {
return ListResult{pagination.SinglePageBase(r)}
diff --git a/openstack/blockStorage/v1/volumeTypes/results.go b/openstack/blockStorage/v1/volumeTypes/results.go
index 1d97a49..83583b8 100644
--- a/openstack/blockStorage/v1/volumeTypes/results.go
+++ b/openstack/blockStorage/v1/volumeTypes/results.go
@@ -10,12 +10,8 @@
type VolumeType struct {
ExtraSpecs map[string]interface{} `json:"extra_specs" mapstructure:"extra_specs"`
- ID string `json:"id" mapstructure:"id"`
- Name string `json:"name" mapstructure:"name"`
-}
-
-// ListOpts holds options for listing volumes. It is passed to the volumes.List function.
-type ListOpts struct {
+ ID string `json:"id" mapstructure:"id"`
+ Name string `json:"name" mapstructure:"name"`
}
// ListResult is a *http.Response that is returned from a call to the List function.