Help us shape the future of Go! Take the 2026 Go Developer Survey

cluster

package
v0.3.61 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 26 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 cluster related management handling.

func NewClient

func NewClient(client client.Client, request *http.Request, authenticator *authorization.Authenticator, openstack *openstack.Openstack) *Client

NewClient returns a new client with required parameters.

func (*Client) Create

func (c *Client) Create(ctx context.Context, controlPlaneName generated.ControlPlaneNameParameter, options *generated.KubernetesCluster) error

Create creates the implicit cluster indentified by the JTW claims.

func (*Client) Delete

Delete deletes the implicit cluster indentified by the JTW claims.

func (*Client) Get

Get returns the cluster.

func (*Client) GetKubeconfig

func (c *Client) GetKubeconfig(ctx context.Context, controlPlaneName generated.ControlPlaneNameParameter, name generated.ClusterNameParameter) ([]byte, error)

GetKubeconfig returns the kubernetes configuation associated with a cluster.

func (*Client) List

List returns all clusters owned by the implicit control plane.

func (*Client) Update

Update implements read/modify/write for the cluster.

Jump to

Keyboard shortcuts

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