types

package
v0.0.0-...-389ea72 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {
	ApiVersion string       `json:"api_version"`
	Error      ErrorMessage `json:"error"`
}

func NewApiResponse

func NewApiResponse(version string) *APIResponse

type ClusterInfo

type ClusterInfo struct {
	Cluster   *clusters.Cluster `json:"Cluster"`
	ExpiresOn time.Time         `json:"ExpiresOn"`
	*APIResponse
}

func NewClusterInfo

func NewClusterInfo(version string) *ClusterInfo

func NewEmptyClusterInfo

func NewEmptyClusterInfo() *ClusterInfo

type Clusters

type Clusters struct {
	Clusters *clusters.ClusterList
	*APIResponse
}

func NewClusters

func NewClusters(version string) *Clusters

func NewEmptyClusters

func NewEmptyClusters() *Clusters

type ErrorMessage

type ErrorMessage string

func NewContextError

func NewContextError(err error) ErrorMessage

func NewFormattedErrorMsg

func NewFormattedErrorMsg(err error, format string, args ...interface{}) ErrorMessage

func NewMissingParameterError

func NewMissingParameterError(parameter string) ErrorMessage

func NewUnmarshallError

func NewUnmarshallError(err error) ErrorMessage

type PoolLongDescription

type PoolLongDescription struct {
	CurrentCount int         `json:"current_count"`
	Pool         *pools.Pool `json:"pool"`
	*APIResponse
}

func NewEmptyPoolLongDescription

func NewEmptyPoolLongDescription() *PoolLongDescription

func NewPoolLongDescription

func NewPoolLongDescription(version string) *PoolLongDescription

type PoolNameList

type PoolNameList struct {
	Data []string `json:"data"`
	*APIResponse
}

func NewEmptyPoolNameList

func NewEmptyPoolNameList() *PoolNameList

func NewPoolNameList

func NewPoolNameList(version string) *PoolNameList

type PoolShortDescription

type PoolShortDescription struct {
	Description  string `json:"description"`
	CurrentCount int    `json:"current_count"`
	*APIResponse
}

func NewEmptyPoolShortDescription

func NewEmptyPoolShortDescription() *PoolShortDescription

func NewPoolShortDescription

func NewPoolShortDescription(version string) *PoolShortDescription

type StringResponse

type StringResponse struct {
	Data string `json:"data"`
	*APIResponse
}

func NewEmptyStringResponse

func NewEmptyStringResponse() *StringResponse

func NewStringResponse

func NewStringResponse(version string) *StringResponse

Jump to

Keyboard shortcuts

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