blob: 7c3de2418f88576699389549f6fe5b01e8b01970 [file] [log] [blame]
package quotas
import (
"github.com/rackspace/gophercloud"
"github.com/rackspace/gophercloud/pagination"
)
func List(client *gophercloud.ServiceClient) pagination.Pager {
return pagination.NewPager(client, listURL(client), func(r pagination.PageResult) pagination.Page {
return QuotaPage{pagination.SinglePageBase(r)}
})
}
// Get returns public data about a previously created Quota.
func Get(client *gophercloud.ServiceClient, name string) GetResult {
var res GetResult
_, res.Err = client.Get(getURL(client, name), &res.Body, nil)
return res
}