| "github.com/gophercloud/gophercloud" |
| // GetOptsBuilder allows extensions to add additional parameters to the |
| type GetOptsBuilder interface { |
| ToLimitsQuery() (string, error) |
| // GetOpts enables retrieving limits by a specific tenant. |
| // The tenant ID to retrieve limits for |
| TenantID string `q:"tenant_id"` |
| // ToLimitsQuery formats a GetOpts into a query string. |
| func (opts GetOpts) ToLimitsQuery() (string, error) { |
| q, err := gophercloud.BuildQueryString(opts) |
| // Get returns the limits about the currently scoped tenant. |
| func Get(client *gophercloud.ServiceClient, opts GetOptsBuilder) (r GetResult) { |
| query, err := opts.ToLimitsQuery() |
| _, r.Err = client.Get(url, &r.Body, nil) |