clusters

package
v0.0.0-...-d74374d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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/List operation. Call its appropriate Extract method to interpret it as a Cluster or a slice of Clusters.

func Get

Get retrieves details on a single cluster, by ID.

func (CommonResult) Extract

func (r CommonResult) Extract() (*limesrates.ClusterReport, error)

Extract interprets a CommonResult as a Cluster.

type GetOpts

type GetOpts struct {
	Services []limes.ServiceType `q:"service"`
	Areas    []string            `q:"area"`
}

GetOpts contains parameters for filtering a Get request.

func (GetOpts) ToClusterGetQuery

func (opts GetOpts) ToClusterGetQuery() (string, error)

ToClusterGetQuery formats a GetOpts into a query string.

type GetOptsBuilder

type GetOptsBuilder interface {
	ToClusterGetQuery() (string, error)
}

GetOptsBuilder allows extensions to add additional parameters to the Get request.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL