plugin

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateContextOptions added in v0.9.0

type CreateContextOptions struct {
	*base.Options

	// Name is the name of the context to create.
	Name string
	// Overwrite indicates the context should be updated if it already exists. This is required to perform the update.
	Overwrite bool
	// contains filtered or unexported fields
}

CreateContextOptions contains options for creating or updating a kubeconfig context.

func NewCreateContextOptions added in v0.9.0

func NewCreateContextOptions(streams genericclioptions.IOStreams) *CreateContextOptions

NewCreateContextOptions returns a new CreateContextOptions.

func (*CreateContextOptions) BindFlags added in v0.9.0

func (o *CreateContextOptions) BindFlags(cmd *cobra.Command)

BindFlags binds fields to cmd's flagset.

func (*CreateContextOptions) Complete added in v0.9.0

func (o *CreateContextOptions) Complete(args []string) error

Complete ensures all dynamically populated fields are initialized.

func (*CreateContextOptions) Run added in v0.9.0

Run creates or updates a kubeconfig context from the current context.

func (*CreateContextOptions) Validate added in v0.9.0

func (o *CreateContextOptions) Validate() error

Validate validates the CreateContextOptions are complete and usable.

type CreateWorkspaceOptions added in v0.9.0

type CreateWorkspaceOptions struct {
	*base.Options

	// Name is the name of the workspace to create.
	Name string
	// Type is the type of the workspace to create.
	Type string
	// EnterAfterCreate enters the newly created workspace if true.
	EnterAfterCreate bool
	// IgnoreExisting ignores errors if the workspace already exists.
	IgnoreExisting bool
	// ReadyWaitTimeout is how long to wait for the workspace to be ready before returning control to the user.
	ReadyWaitTimeout time.Duration
	// LocationSelector is the location selector to use when creating the workspace to select a matching shard.
	LocationSelector string
	// contains filtered or unexported fields
}

CreateWorkspaceOptions contains options for creating a new workspace.

func NewCreateWorkspaceOptions added in v0.9.0

func NewCreateWorkspaceOptions(streams genericclioptions.IOStreams) *CreateWorkspaceOptions

NewCreateWorkspaceOptions returns a new CreateWorkspaceOptions.

func (*CreateWorkspaceOptions) BindFlags added in v0.9.0

func (o *CreateWorkspaceOptions) BindFlags(cmd *cobra.Command)

BindFlags binds fields to cmd's flagset.

func (*CreateWorkspaceOptions) Complete added in v0.9.0

func (o *CreateWorkspaceOptions) Complete(args []string) error

Complete ensures all dynamically populated fields are initialized.

func (*CreateWorkspaceOptions) Run added in v0.9.0

Run creates a workspace.

func (*CreateWorkspaceOptions) Validate added in v0.9.0

func (o *CreateWorkspaceOptions) Validate() error

Validate validates the CreateWorkspaceOptions are complete and usable.

type CurrentWorkspaceOptions added in v0.9.0

type CurrentWorkspaceOptions struct {
	*base.Options

	// ShortWorkspaceOutput indicates only the workspace name should be printed.
	ShortWorkspaceOutput bool
}

CurrentWorkspaceOptions contains options for displaying the current workspace.

func NewCurrentWorkspaceOptions added in v0.9.0

func NewCurrentWorkspaceOptions(streams genericclioptions.IOStreams) *CurrentWorkspaceOptions

NewCurrentWorkspaceOptions returns a new CurrentWorkspaceOptions.

func (*CurrentWorkspaceOptions) BindFlags added in v0.9.0

func (o *CurrentWorkspaceOptions) BindFlags(cmd *cobra.Command)

BindFlags binds fields to cmd's flagset.

func (*CurrentWorkspaceOptions) Run added in v0.9.0

Run outputs the current workspace.

type TreeOptions added in v0.9.0

type TreeOptions struct {
	*base.Options

	Full bool
	// contains filtered or unexported fields
}

TreeOptions contains options for displaying the workspace tree.

func NewTreeOptions added in v0.9.0

func NewTreeOptions(streams genericclioptions.IOStreams) *TreeOptions

NewShowWorkspaceTreeOptions returns a new ShowWorkspaceTreeOptions.

func (*TreeOptions) BindFlags added in v0.9.0

func (o *TreeOptions) BindFlags(cmd *cobra.Command)

BindFlags binds fields to cmd's flagset.

func (*TreeOptions) Complete added in v0.9.0

func (o *TreeOptions) Complete() error

Complete ensures all dynamically populated fields are initialized.

func (*TreeOptions) Run added in v0.9.0

func (o *TreeOptions) Run(ctx context.Context) error

Run outputs the current workspace.

type UseWorkspaceOptions added in v0.9.0

type UseWorkspaceOptions struct {
	*base.Options

	// Name is the name of the workspace to switch to.
	Name string
	// ShortWorkspaceOutput indicates only the workspace name should be printed.
	ShortWorkspaceOutput bool
	// contains filtered or unexported fields
}

UseWorkspaceOptions contains options for manipulating or showing the current workspace.

func NewUseWorkspaceOptions added in v0.9.0

func NewUseWorkspaceOptions(streams genericclioptions.IOStreams) *UseWorkspaceOptions

NewUseWorkspaceOptions returns a new UseWorkspaceOptions.

func (*UseWorkspaceOptions) BindFlags added in v0.9.0

func (o *UseWorkspaceOptions) BindFlags(cmd *cobra.Command)

BindFlags binds fields to cmd's flagset.

func (*UseWorkspaceOptions) Complete added in v0.9.0

func (o *UseWorkspaceOptions) Complete(args []string) error

Complete ensures all dynamically populated fields are initialized.

func (*UseWorkspaceOptions) Run added in v0.9.0

Run executes the "use workspace" logic based on the supplied options.

func (*UseWorkspaceOptions) Validate added in v0.9.0

func (o *UseWorkspaceOptions) Validate() error

Validate validates the UseWorkspaceOptions are complete and usable.

Jump to

Keyboard shortcuts

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