Documentation
¶
Overview ¶
Package clusters provides interaction with Limes at the cluster hierarchical level.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonResult ¶
type CommonResult struct {
gophercloud.Result
}
CommonResult is the result of a Get operation. Call its appropriate Extract method to interpret it as a Cluster.
func Get ¶
func Get(c *gophercloud.ServiceClient, opts GetOptsBuilder) (r CommonResult)
Get retrieves details on a single cluster, by ID.
func (CommonResult) Extract ¶
func (r CommonResult) Extract() (*limesresources.ClusterReport, error)
Extract interprets a CommonResult as a Cluster.
type GetOpts ¶
type GetOpts struct { Detail bool `q:"detail"` Areas []string `q:"area"` Services []limes.ServiceType `q:"service"` Resources []limesresources.ResourceName `q:"resource"` }
GetOpts contains parameters for filtering a Get request.
func (GetOpts) ToClusterGetQuery ¶
ToClusterGetQuery formats a GetOpts into a query string.
type GetOptsBuilder ¶
GetOptsBuilder allows extensions to add additional parameters to the Get request.
Click to show internal directories.
Click to hide internal directories.