cloud

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 14 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 is the client used for interacting with the ControlPlanes API in Upbound Cloud.

func New

func New(ctp ctpClient, cfg cfgGetter, account string, opts ...Option) *Client

New instantiates a new Client.

func (*Client) Create

Create a new ControlPlane with the given name and the supplied Options.

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, ctp types.NamespacedName) error

Delete the ControlPlane corresponding to the given ControlPlane name.

func (*Client) Get

Get the ControlPlane corresponding to the given ControlPlane name.

func (*Client) GetKubeConfig

func (c *Client) GetKubeConfig(ctx context.Context, ctp types.NamespacedName) (*api.Config, error)

GetKubeConfig for the given Control Plane.

func (*Client) List

func (c *Client) List(ctx context.Context, namespace string) ([]*controlplane.Response, error)

List all ControlPlanes within the Upbound Cloud account.

type Option

type Option func(*Client)

func WithProxyEndpoint

func WithProxyEndpoint(p *url.URL) Option

func WithToken

func WithToken(t string) Option

Jump to

Keyboard shortcuts

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