clustermanager

package
v0.2.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrResourceDeleting is raised when the resource is being deleted.
	ErrResourceDeleting = goerrors.New("resource is being deleted")

	// ErrNamespaceUnset is raised when the namespace hasn't been created
	// yet.
	ErrNamespaceUnset = goerrors.New("resource namespace is unset")

	// ErrApplicationBundle is raised when no suitable application
	// bundle is found.
	ErrApplicationBundle = goerrors.New("no application bundle found")
)

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