Documentation
¶
Index ¶
- func IsClusterCreationError(err error) bool
- func IsClusterDeletionError(err error) bool
- func IsClusterNotFoundError(err error) bool
- type Client
- func (c *Client) CreateCluster(ctx context.Context, releaseVersion string) (string, error)
- func (c *Client) CreateKubeconfig(ctx context.Context, clusterID, kubeconfigPath string) error
- func (c *Client) DeleteCluster(ctx context.Context, clusterID string) error
- func (c *Client) GetClusterReleaseVersion(ctx context.Context, clusterID string) (string, error)
- func (c *Client) ListClusters(ctx context.Context) ([]ClusterEntry, error)
- type ClusterEntry
- type Config
- type CreationResponse
- type DeletionResponse
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsClusterCreationError ¶
IsClusterCreationError asserts clusterCreationError.
func IsClusterDeletionError ¶
IsClusterDeletionError asserts clusterDeletionError.
func IsClusterNotFoundError ¶
IsClusterNotFoundError asserts clusterNotFoundError.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateCluster ¶
func (*Client) CreateKubeconfig ¶
func (*Client) DeleteCluster ¶
func (*Client) GetClusterReleaseVersion ¶
func (*Client) ListClusters ¶
func (c *Client) ListClusters(ctx context.Context) ([]ClusterEntry, error)
type ClusterEntry ¶
type CreationResponse ¶
TODO: Use the gsctl type directly
type DeletionResponse ¶
type DeletionResponse struct {
ClusterID string `json:"id"`
Result string `json:"result"`
Error Error `json:"error,omitempty"`
}
TODO: Use the gsctl type directly
Click to show internal directories.
Click to hide internal directories.