workspace

package
v1.0.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommand

func AddCommand(cmd *cobra.Command, o *cli.RootOptions)

func CreateCmd added in v0.8.0

func CreateCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command

func DeleteCmd added in v0.8.0

func DeleteCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command

func GetCmd added in v0.8.0

func GetCmd(cmd *cobra.Command, opt *cli.RootOptions) *cobra.Command

func GetNetworkCmd

func GetNetworkCmd(cmd *cobra.Command, opt *cli.RootOptions) *cobra.Command

func GetTemplatesCmd

func GetTemplatesCmd(cmd *cobra.Command, opt *cli.RootOptions) *cobra.Command

func OutputTable

func OutputTable(out io.Writer, username string, workspaces []*dashv1alpha1.Workspace)

func OutputWideTable

func OutputWideTable(out io.Writer, username string, workspaces []*dashv1alpha1.Workspace)

func RemoveNetworkCmd

func RemoveNetworkCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command

func ResumeCmd

func ResumeCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command

func SuspendCmd

func SuspendCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command

func UpdateCmd

func UpdateCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command

func UpsertNetworkCmd

func UpsertNetworkCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command

Types

type CreateOption added in v0.8.0

type CreateOption struct {
	*cli.RootOptions

	WorkspaceName string
	UserName      string
	Template      string
	TemplateVars  []string
	Force         bool
	// contains filtered or unexported fields
}

func (*CreateOption) Complete added in v0.8.0

func (o *CreateOption) Complete(cmd *cobra.Command, args []string) error

func (*CreateOption) CreateWorkspaceWithDashClient

func (o *CreateOption) CreateWorkspaceWithDashClient(ctx context.Context) (*dashv1alpha1.Workspace, error)

func (*CreateOption) CreateWorkspaceWithKubeClient

func (o *CreateOption) CreateWorkspaceWithKubeClient(ctx context.Context) (*dashv1alpha1.Workspace, error)

func (*CreateOption) RunE added in v0.8.0

func (o *CreateOption) RunE(cmd *cobra.Command, args []string) error

func (*CreateOption) Validate added in v0.8.0

func (o *CreateOption) Validate(cmd *cobra.Command, args []string) error

type DeleteOption added in v0.8.0

type DeleteOption struct {
	*cli.RootOptions

	WorkspaceNames []string
	UserName       string
	Force          bool
}

func (*DeleteOption) Complete added in v0.8.0

func (o *DeleteOption) Complete(cmd *cobra.Command, args []string) error

func (*DeleteOption) DeleteWorkspaceWithDashClient

func (o *DeleteOption) DeleteWorkspaceWithDashClient(ctx context.Context, workspaceName string) error

func (*DeleteOption) DeleteWorkspaceWithKubeClient

func (o *DeleteOption) DeleteWorkspaceWithKubeClient(ctx context.Context, workspaceName string) error

func (*DeleteOption) RunE added in v0.8.0

func (o *DeleteOption) RunE(cmd *cobra.Command, args []string) error

func (*DeleteOption) Validate added in v0.8.0

func (o *DeleteOption) Validate(cmd *cobra.Command, args []string) error

type GetNetworkOption

type GetNetworkOption struct {
	*cli.RootOptions

	WorkspaceName string
	UserName      string
}

func (*GetNetworkOption) Complete

func (o *GetNetworkOption) Complete(cmd *cobra.Command, args []string) error

func (*GetNetworkOption) GetWorkspaceByKubeClient

func (o *GetNetworkOption) GetWorkspaceByKubeClient(ctx context.Context) (*dashv1alpha1.Workspace, error)

func (*GetNetworkOption) GetWorkspaceWithDashClient

func (o *GetNetworkOption) GetWorkspaceWithDashClient(ctx context.Context) (*dashv1alpha1.Workspace, error)

func (*GetNetworkOption) OutputTable

func (o *GetNetworkOption) OutputTable(w io.Writer, workspace *dashv1alpha1.Workspace)

func (*GetNetworkOption) RunE

func (o *GetNetworkOption) RunE(cmd *cobra.Command, args []string) error

func (*GetNetworkOption) Validate

func (o *GetNetworkOption) Validate(cmd *cobra.Command, args []string) error

type GetOption added in v0.8.0

type GetOption struct {
	*cli.RootOptions

	WorkspaceNames []string
	Filter         []string
	UserName       string
	AllUsers       bool
	OutputFormat   string
	// contains filtered or unexported fields
}

func (*GetOption) ApplyFilters

func (o *GetOption) ApplyFilters(workspaces []*dashv1alpha1.Workspace) []*dashv1alpha1.Workspace

func (*GetOption) Complete added in v0.8.0

func (o *GetOption) Complete(cmd *cobra.Command, args []string) error

func (*GetOption) ListUsers

func (o *GetOption) ListUsers(ctx context.Context) ([]*dashv1alpha1.User, error)

func (*GetOption) ListWorkspaces

func (o *GetOption) ListWorkspaces(ctx context.Context, userName string, includeShared bool) ([]*dashv1alpha1.Workspace, error)

func (*GetOption) OutputYAML

func (o *GetOption) OutputYAML(w io.Writer, objs []*dashv1alpha1.Workspace)

func (*GetOption) RunE added in v0.8.0

func (o *GetOption) RunE(cmd *cobra.Command, args []string) error

func (*GetOption) Validate added in v0.8.0

func (o *GetOption) Validate(cmd *cobra.Command, args []string) error

type GetTemplatesOption

type GetTemplatesOption struct {
	*cli.RootOptions
	TemplateNames []string
	Filter        []string
	OutputFormat  string
	// contains filtered or unexported fields
}

func (*GetTemplatesOption) ApplyFilters

func (o *GetTemplatesOption) ApplyFilters(tmpls []*dashv1alpha1.Template) []*dashv1alpha1.Template

func (*GetTemplatesOption) Complete

func (o *GetTemplatesOption) Complete(cmd *cobra.Command, args []string) error

func (*GetTemplatesOption) ListWorkspaceTemplatesByKubeClient

func (o *GetTemplatesOption) ListWorkspaceTemplatesByKubeClient(ctx context.Context, withRaw bool) ([]*dashv1alpha1.Template, error)

func (*GetTemplatesOption) ListWorkspaceTemplatesWithDashClient

func (o *GetTemplatesOption) ListWorkspaceTemplatesWithDashClient(ctx context.Context, withRaw bool) ([]*dashv1alpha1.Template, error)

func (*GetTemplatesOption) OutputTable

func (o *GetTemplatesOption) OutputTable(w io.Writer, tmpls []*dashv1alpha1.Template)

func (*GetTemplatesOption) OutputYAML

func (o *GetTemplatesOption) OutputYAML(w io.Writer, tmpls []*dashv1alpha1.Template)

func (*GetTemplatesOption) RunE

func (o *GetTemplatesOption) RunE(cmd *cobra.Command, args []string) error

func (*GetTemplatesOption) Validate

func (o *GetTemplatesOption) Validate(cmd *cobra.Command, args []string) error

type RemoveNetworkOption

type RemoveNetworkOption struct {
	*cli.RootOptions

	WorkspaceName    string
	UserName         string
	CustomHostPrefix string
	PortNumber       int32
	HTTPPath         string
	Public           bool
	// contains filtered or unexported fields
}

func (*RemoveNetworkOption) Complete

func (o *RemoveNetworkOption) Complete(cmd *cobra.Command, args []string) error

func (*RemoveNetworkOption) DeleteNetworkRuleByKubeClient

func (o *RemoveNetworkOption) DeleteNetworkRuleByKubeClient(ctx context.Context) error

func (*RemoveNetworkOption) DeleteNetworkRuleWithDashClient

func (o *RemoveNetworkOption) DeleteNetworkRuleWithDashClient(ctx context.Context) error

func (*RemoveNetworkOption) RunE

func (o *RemoveNetworkOption) RunE(cmd *cobra.Command, args []string) error

func (*RemoveNetworkOption) Validate

func (o *RemoveNetworkOption) Validate(cmd *cobra.Command, args []string) error

type ResumeOption

type ResumeOption struct {
	*cli.RootOptions

	WorkspaceNames []string
	UserName       string
}

func (*ResumeOption) Complete

func (o *ResumeOption) Complete(cmd *cobra.Command, args []string) error

func (*ResumeOption) ResumeWorkspaceWithDashClient

func (o *ResumeOption) ResumeWorkspaceWithDashClient(ctx context.Context, workspaceName string) error

func (*ResumeOption) ResumeWorkspaceWithKubeClient

func (o *ResumeOption) ResumeWorkspaceWithKubeClient(ctx context.Context, workspaceName string) error

func (*ResumeOption) RunE

func (o *ResumeOption) RunE(cmd *cobra.Command, args []string) error

func (*ResumeOption) Validate

func (o *ResumeOption) Validate(cmd *cobra.Command, args []string) error

type SuspendOption

type SuspendOption struct {
	*cli.RootOptions

	WorkspaceNames []string
	UserName       string
}

func (*SuspendOption) Complete

func (o *SuspendOption) Complete(cmd *cobra.Command, args []string) error

func (*SuspendOption) RunE

func (o *SuspendOption) RunE(cmd *cobra.Command, args []string) error

func (*SuspendOption) SuspendWorkspaceWithDashClient

func (o *SuspendOption) SuspendWorkspaceWithDashClient(ctx context.Context, workspaceName string) error

func (*SuspendOption) SuspendWorkspaceWithKubeClient

func (o *SuspendOption) SuspendWorkspaceWithKubeClient(ctx context.Context, workspaceName string) error

func (*SuspendOption) Validate

func (o *SuspendOption) Validate(cmd *cobra.Command, args []string) error

type UpdateOption

type UpdateOption struct {
	*cli.RootOptions

	WorkspaceName string
	UserName      string
	TemplateVars  []string
	Force         bool
	// contains filtered or unexported fields
}

func (*UpdateOption) Complete

func (o *UpdateOption) Complete(cmd *cobra.Command, args []string) error

func (*UpdateOption) GetWorkspaceWithDashClient

func (o *UpdateOption) GetWorkspaceWithDashClient(ctx context.Context) (*dashv1alpha1.Workspace, error)

func (*UpdateOption) GetWorkspaceWithKubeClient

func (o *UpdateOption) GetWorkspaceWithKubeClient(ctx context.Context) (*dashv1alpha1.Workspace, error)

func (*UpdateOption) RunE

func (o *UpdateOption) RunE(cmd *cobra.Command, args []string) error

func (*UpdateOption) UpdateWorkspaceWithDashClient

func (o *UpdateOption) UpdateWorkspaceWithDashClient(ctx context.Context) (*dashv1alpha1.Workspace, error)

func (*UpdateOption) UpdateWorkspaceWithKubeClient

func (o *UpdateOption) UpdateWorkspaceWithKubeClient(ctx context.Context) (*dashv1alpha1.Workspace, error)

func (*UpdateOption) Validate

func (o *UpdateOption) Validate(cmd *cobra.Command, args []string) error

type UpsertNetworkOption

type UpsertNetworkOption struct {
	*cli.RootOptions

	WorkspaceName    string
	UserName         string
	CustomHostPrefix string
	PortNumber       int32
	HTTPPath         string
	Public           bool
	AllowedUsers     []string
	// contains filtered or unexported fields
}

func (*UpsertNetworkOption) Complete

func (o *UpsertNetworkOption) Complete(cmd *cobra.Command, args []string) error

func (*UpsertNetworkOption) OutputTable

func (o *UpsertNetworkOption) OutputTable(w io.Writer, v *dashv1alpha1.NetworkRule)

func (*UpsertNetworkOption) RunE

func (o *UpsertNetworkOption) RunE(cmd *cobra.Command, args []string) error

func (*UpsertNetworkOption) UpsertNetworkRuleByKubeClient

func (o *UpsertNetworkOption) UpsertNetworkRuleByKubeClient(ctx context.Context) (*dashv1alpha1.NetworkRule, error)

func (*UpsertNetworkOption) UpsertNetworkRuleWithDashClient

func (o *UpsertNetworkOption) UpsertNetworkRuleWithDashClient(ctx context.Context) (*dashv1alpha1.NetworkRule, error)

func (*UpsertNetworkOption) Validate

func (o *UpsertNetworkOption) Validate(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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