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 ¶
func (o *CreateContextOptions) Run(ctx context.Context) error
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 ¶
func (o *CreateWorkspaceOptions) Run(ctx context.Context) error
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.
type TreeOptions ¶
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.
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.