Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Create(ctx context.Context, organizationID, projectID string, ...) (*openapi.KubernetesClusterRead, error)
- func (c *Client) Delete(ctx context.Context, organizationID, projectID, clusterID string) error
- func (c *Client) GetKubeconfig(ctx context.Context, organizationID, projectID, clusterID string) ([]byte, error)
- func (c *Client) List(ctx context.Context, organizationID string) (openapi.KubernetesClusters, error)
- func (c *Client) Update(ctx context.Context, organizationID, projectID, clusterID string, ...) error
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrResourceLookup = goerrors.New("could not find the requested resource")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps up cluster related management handling.
func NewClient ¶
func NewClient(client client.Client, namespace string, options *Options, region regionapi.ClientWithResponsesInterface) *Client
NewClient returns a new client with required parameters.
func (*Client) Create ¶
func (c *Client) Create(ctx context.Context, organizationID, projectID string, request *openapi.KubernetesClusterWrite) (*openapi.KubernetesClusterRead, error)
Create creates the implicit cluster indentified by the JTW claims.
func (*Client) GetKubeconfig ¶
func (c *Client) GetKubeconfig(ctx context.Context, organizationID, projectID, clusterID string) ([]byte, error)
GetKubeconfig returns the kubernetes configuation associated with a cluster.
Click to show internal directories.
Click to hide internal directories.