clustermanager

package
v0.2.28 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client wraps up control plane related management handling.

func NewClient

func NewClient(client client.Client) *Client

NewClient returns a new client with required parameters.

func (*Client) Create

func (c *Client) Create(ctx context.Context, organizationID, projectID string, request *openapi.ClusterManagerWrite) (*unikornv1.ClusterManager, error)

Create creates a control plane.

func (*Client) CreateImplicit

func (c *Client) CreateImplicit(ctx context.Context, organizationID, projectID string) (*unikornv1.ClusterManager, error)

CreateImplicit is called when a cluster creation call is made and a control plane is not specified.

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, organizationID, projectID, clusterManagerID string) error

Delete deletes the control plane.

func (*Client) List

func (c *Client) List(ctx context.Context, organizationID string) (openapi.ClusterManagers, error)

List returns all control planes.

func (*Client) Update

func (c *Client) Update(ctx context.Context, organizationID, projectID, clusterManagerID string, request *openapi.ClusterManagerWrite) error

Update implements read/modify/write for the control plane.

Jump to

Keyboard shortcuts

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