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 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
Click to show internal directories.
Click to hide internal directories.