workspace

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertWorkspaceNameIntoID

func ConvertWorkspaceNameIntoID(ctx context.Context, workspaceClient factory.WorkspaceClient, name string) (id string, err error)

ConvertWorkspaceNameIntoID convert workspace name into id

func NewCmdCreate

func NewCmdCreate(opt *clioptions.GlobalOptions) *cobra.Command

func NewCmdDelete

func NewCmdDelete(opt *clioptions.GlobalOptions) *cobra.Command

NewCmdDelete new a delete workspace cmd.

func NewCmdImport

func NewCmdImport(opt *clioptions.GlobalOptions) *cobra.Command

func NewCmdList

func NewCmdList(opt *clioptions.GlobalOptions) *cobra.Command

NewCmdList new a list workspace cmd.

func NewCmdUpdate

func NewCmdUpdate(opt *clioptions.GlobalOptions) *cobra.Command

NewCmdUpdate new a update workspace cmd.

func NewCmdWorkspace

func NewCmdWorkspace(opt *clioptions.GlobalOptions) *cobra.Command

Types

type CreateOptions

type CreateOptions struct {
	Description string
	MountType   string
	MountPath   string
	// contains filtered or unexported fields
}

CreateOptions is an options to create a workspace.

func NewCreateOptions

func NewCreateOptions(opt *clioptions.GlobalOptions) *CreateOptions

NewCreateOptions returns a reference to a CreateOptions

func (*CreateOptions) Complete

func (o *CreateOptions) Complete() error

Complete completes all the required options.

func (*CreateOptions) GetDefaultFormat

func (o *CreateOptions) GetDefaultFormat() formatter.Format

func (*CreateOptions) GetPromptArgs

func (o *CreateOptions) GetPromptArgs() ([]string, error)

func (*CreateOptions) GetPromptOptions

func (o *CreateOptions) GetPromptOptions() error

func (*CreateOptions) Run

func (o *CreateOptions) Run(args []string) error

Run run the create workspace command

func (*CreateOptions) Validate

func (o *CreateOptions) Validate() error

Validate validate the create options

type DeleteOptions

type DeleteOptions struct {
	// contains filtered or unexported fields
}

DeleteOptions is an options to delete a workspace.

func NewDeleteOptions

func NewDeleteOptions(opt *clioptions.GlobalOptions) *DeleteOptions

NewDeleteOptions returns a reference to a DeleteOptions.

func (*DeleteOptions) Complete

func (o *DeleteOptions) Complete() error

Complete completes all the required options.

func (*DeleteOptions) GetDefaultFormat

func (o *DeleteOptions) GetDefaultFormat() formatter.Format

func (*DeleteOptions) GetPromptArgs

func (o *DeleteOptions) GetPromptArgs() ([]string, error)

func (*DeleteOptions) GetPromptOptions

func (o *DeleteOptions) GetPromptOptions() error

func (*DeleteOptions) Run

func (o *DeleteOptions) Run(args []string) error

Run run the create workspace command

func (*DeleteOptions) Validate

func (o *DeleteOptions) Validate() error

Validate validate the delete options

type ImportOptions

type ImportOptions struct {
	YamlPath  string
	MountType string
	MountPath string
	// contains filtered or unexported fields
}

func NewImportOptions

func NewImportOptions(opt *clioptions.GlobalOptions) *ImportOptions

NewImportOptions returns a reference to a ImportOptions

func (*ImportOptions) Complete

func (o *ImportOptions) Complete() error

Complete completes all the required options.

func (*ImportOptions) GetDefaultFormat

func (o *ImportOptions) GetDefaultFormat() formatter.Format

func (*ImportOptions) GetPromptArgs

func (o *ImportOptions) GetPromptArgs() ([]string, error)

func (*ImportOptions) GetPromptOptions

func (o *ImportOptions) GetPromptOptions() error

func (*ImportOptions) Run

func (o *ImportOptions) Run(args []string) error

Run run the import workspace command

func (*ImportOptions) Validate

func (o *ImportOptions) Validate() error

Validate validate the import options

type ListOptions

type ListOptions struct {
	Page        int32
	Size        int32
	OrderBy     string
	SearchWords []string
	Ids         []string
	// contains filtered or unexported fields
}

ListOptions is an options to list workspaces.

func NewListOptions

func NewListOptions(opt *clioptions.GlobalOptions) *ListOptions

NewListOptions returns a reference to a ListOptions.

func (*ListOptions) Complete

func (o *ListOptions) Complete() error

Complete completes all the required options.

func (*ListOptions) GetDefaultFormat

func (o *ListOptions) GetDefaultFormat() formatter.Format

func (*ListOptions) GetPromptArgs

func (o *ListOptions) GetPromptArgs() ([]string, error)

func (*ListOptions) GetPromptOptions

func (o *ListOptions) GetPromptOptions() error

func (*ListOptions) Run

func (o *ListOptions) Run(_ []string) error

Run run the create workspace command

func (*ListOptions) Validate

func (o *ListOptions) Validate() error

Validate validate the list options

type UpdateOptions

type UpdateOptions struct {
	Name        string
	Description string
	// contains filtered or unexported fields
}

UpdateOptions is an options to update workspaces.

func NewUpdateOptions

func NewUpdateOptions(opt *clioptions.GlobalOptions) *UpdateOptions

NewUpdateOptions returns a reference to a UpdateOptions.

func (*UpdateOptions) Complete

func (o *UpdateOptions) Complete() error

Complete completes all the required options.

func (*UpdateOptions) GetDefaultFormat

func (o *UpdateOptions) GetDefaultFormat() formatter.Format

func (*UpdateOptions) GetPromptArgs

func (o *UpdateOptions) GetPromptArgs() ([]string, error)

func (*UpdateOptions) GetPromptOptions

func (o *UpdateOptions) GetPromptOptions() error

func (*UpdateOptions) Run

func (o *UpdateOptions) Run(args []string) error

Run run the update workspace command

func (*UpdateOptions) Validate

func (o *UpdateOptions) Validate() error

Validate validate the list options

Jump to

Keyboard shortcuts

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