controlplane

package
v0.1.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 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 AttachCmd

type AttachCmd struct {
	Name string `arg:"" required:"" help:"Name of control plane."`

	Description   string    `short:"d" help:"Description for control plane."`
	KubeClusterID uuid.UUID `help:"ID for self-hosted Kubernetes cluster."`
	Kubeconfig    string    `env:"KUBECONFIG" type:"existingfile" help:"Override default kubeconfig path."`
	ViewOnly      bool      `help:"Create control plane with view only permissions."`
	// contains filtered or unexported fields
}

AttachCmd adds a user or token profile with session token to the up config file.

func (*AttachCmd) AfterApply

func (c *AttachCmd) AfterApply() error

AfterApply sets default values in command after assignment and validation.

func (*AttachCmd) Run

func (c *AttachCmd) Run(kong *kong.Context, client *cp.Client, token *tokens.Client, cloudCtx *cloud.Context) error

Run executes the attach command.

type CreateCmd

type CreateCmd struct {
	Name string `arg:"" required:"" help:"Name of control plane."`

	Description string `short:"d" help:"Description for control plane."`
}

CreateCmd creates a hosted control plane on Upbound Cloud.

func (*CreateCmd) Run

func (c *CreateCmd) Run(client *cp.Client, cloudCtx *cloud.Context) error

Run executes the create command.

type DeleteCmd

type DeleteCmd struct {
	// TODO(hasheddan): consider using name instead of ID
	ID uuid.UUID `arg:"" required:"" help:"ID of control plane."`
}

DeleteCmd deletes a control plane on Upbound Cloud.

func (*DeleteCmd) Run

func (c *DeleteCmd) Run(client *cp.Client) error

Run executes the delete command.

type ListCmd

type ListCmd struct{}

ListCmd list control planes in an account on Upbound Cloud.

func (*ListCmd) Run

func (c *ListCmd) Run(kong *kong.Context, client *accounts.Client, cloudCtx *cloud.Context) error

Run executes the list command.

Jump to

Keyboard shortcuts

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