plugin

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 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

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

func NewCreateContextOptions(streams genericclioptions.IOStreams) *CreateContextOptions

NewCreateContextOptions returns a new CreateContextOptions.

func (*CreateContextOptions) BindFlags

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

BindFlags binds fields to cmd's flagset.

func (*CreateContextOptions) Complete

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

Complete ensures all dynamically populated fields are initialized.

func (*CreateContextOptions) Run

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

func (*CreateContextOptions) Validate

func (o *CreateContextOptions) Validate() error

Validate validates the CreateContextOptions are complete and usable.

type CreateWorkspaceOptions

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

func NewCreateWorkspaceOptions(streams genericclioptions.IOStreams) *CreateWorkspaceOptions

NewCreateWorkspaceOptions returns a new CreateWorkspaceOptions.

func (*CreateWorkspaceOptions) BindFlags

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

BindFlags binds fields to cmd's flagset.

func (*CreateWorkspaceOptions) Complete

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

Complete ensures all dynamically populated fields are initialized.

func (*CreateWorkspaceOptions) Run

Run creates a workspace.

func (*CreateWorkspaceOptions) Validate

func (o *CreateWorkspaceOptions) Validate() error

Validate validates the CreateWorkspaceOptions are complete and usable.

type CurrentWorkspaceOptions

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

func NewCurrentWorkspaceOptions(streams genericclioptions.IOStreams) *CurrentWorkspaceOptions

NewCurrentWorkspaceOptions returns a new CurrentWorkspaceOptions.

func (*CurrentWorkspaceOptions) BindFlags

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

BindFlags binds fields to cmd's flagset.

func (*CurrentWorkspaceOptions) Run

Run outputs the current workspace.

type TreeOptions

type TreeOptions struct {
	*base.Options

	Full bool
	// contains filtered or unexported fields
}

TreeOptions contains options for displaying the workspace tree.

func NewTreeOptions

func NewTreeOptions(streams genericclioptions.IOStreams) *TreeOptions

NewTreeOptions returns a new TreeOptions.

func (*TreeOptions) BindFlags

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

BindFlags binds fields to cmd's flagset.

func (*TreeOptions) Complete

func (o *TreeOptions) Complete() error

Complete ensures all dynamically populated fields are initialized.

func (*TreeOptions) Run

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

Run outputs the current workspace.

type UseWorkspaceOptions

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

func NewUseWorkspaceOptions(streams genericclioptions.IOStreams) *UseWorkspaceOptions

NewUseWorkspaceOptions returns a new UseWorkspaceOptions.

func (*UseWorkspaceOptions) BindFlags

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

BindFlags binds fields to cmd's flagset.

func (*UseWorkspaceOptions) Complete

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

Complete ensures all dynamically populated fields are initialized.

func (*UseWorkspaceOptions) Run

func (o *UseWorkspaceOptions) Run(ctx context.Context) (err error)

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

func (*UseWorkspaceOptions) Validate

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