controlplane

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 12 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."`
	ViewOnly    bool   `help:"Create control plane with view only permissions."`
}

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

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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