Documentation
¶
Index ¶
- func AddCommand(cmd *cobra.Command, o *cli.RootOptions)
- func CreateCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command
- func DeleteCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command
- func GetCmd(cmd *cobra.Command, opt *cli.RootOptions) *cobra.Command
- func GetNetworkCmd(cmd *cobra.Command, opt *cli.RootOptions) *cobra.Command
- func GetTemplatesCmd(cmd *cobra.Command, opt *cli.RootOptions) *cobra.Command
- func OutputTable(out io.Writer, workspaces []*dashv1alpha1.Workspace)
- func OutputWideTable(out io.Writer, workspaces []*dashv1alpha1.Workspace)
- func RemoveNetworkCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command
- func ResumeCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command
- func SuspendCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command
- func UpdateCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command
- func UpsertNetworkCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command
- type CreateOption
- func (o *CreateOption) Complete(cmd *cobra.Command, args []string) error
- func (o *CreateOption) CreateWorkspaceWithDashClient(ctx context.Context) (*dashv1alpha1.Workspace, error)
- func (o *CreateOption) CreateWorkspaceWithKubeClient(ctx context.Context) (*dashv1alpha1.Workspace, error)
- func (o *CreateOption) RunE(cmd *cobra.Command, args []string) error
- func (o *CreateOption) Validate(cmd *cobra.Command, args []string) error
- type DeleteOption
- func (o *DeleteOption) Complete(cmd *cobra.Command, args []string) error
- func (o *DeleteOption) DeleteWorkspaceWithDashClient(ctx context.Context, workspaceName string) error
- func (o *DeleteOption) DeleteWorkspaceWithKubeClient(ctx context.Context, workspaceName string) error
- func (o *DeleteOption) RunE(cmd *cobra.Command, args []string) error
- func (o *DeleteOption) Validate(cmd *cobra.Command, args []string) error
- type GetNetworkOption
- func (o *GetNetworkOption) Complete(cmd *cobra.Command, args []string) error
- func (o *GetNetworkOption) GetWorkspaceByKubeClient(ctx context.Context) (*dashv1alpha1.Workspace, error)
- func (o *GetNetworkOption) GetWorkspaceWithDashClient(ctx context.Context) (*dashv1alpha1.Workspace, error)
- func (o *GetNetworkOption) OutputTable(w io.Writer, workspace *dashv1alpha1.Workspace)
- func (o *GetNetworkOption) RunE(cmd *cobra.Command, args []string) error
- func (o *GetNetworkOption) Validate(cmd *cobra.Command, args []string) error
- type GetOption
- func (o *GetOption) ApplyFilters(workspaces []*dashv1alpha1.Workspace) []*dashv1alpha1.Workspace
- func (o *GetOption) Complete(cmd *cobra.Command, args []string) error
- func (o *GetOption) ListUsers(ctx context.Context) ([]*dashv1alpha1.User, error)
- func (o *GetOption) ListWorkspaces(ctx context.Context, userName string) ([]*dashv1alpha1.Workspace, error)
- func (o *GetOption) OutputYAML(w io.Writer, objs []*dashv1alpha1.Workspace)
- func (o *GetOption) RunE(cmd *cobra.Command, args []string) error
- func (o *GetOption) Validate(cmd *cobra.Command, args []string) error
- type GetTemplatesOption
- func (o *GetTemplatesOption) ApplyFilters(tmpls []*dashv1alpha1.Template) []*dashv1alpha1.Template
- func (o *GetTemplatesOption) Complete(cmd *cobra.Command, args []string) error
- func (o *GetTemplatesOption) ListWorkspaceTemplatesByKubeClient(ctx context.Context, withRaw bool) ([]*dashv1alpha1.Template, error)
- func (o *GetTemplatesOption) ListWorkspaceTemplatesWithDashClient(ctx context.Context, withRaw bool) ([]*dashv1alpha1.Template, error)
- func (o *GetTemplatesOption) OutputTable(w io.Writer, tmpls []*dashv1alpha1.Template)
- func (o *GetTemplatesOption) OutputYAML(w io.Writer, tmpls []*dashv1alpha1.Template)
- func (o *GetTemplatesOption) RunE(cmd *cobra.Command, args []string) error
- func (o *GetTemplatesOption) Validate(cmd *cobra.Command, args []string) error
- type RemoveNetworkOption
- func (o *RemoveNetworkOption) Complete(cmd *cobra.Command, args []string) error
- func (o *RemoveNetworkOption) DeleteNetworkRuleByKubeClient(ctx context.Context) error
- func (o *RemoveNetworkOption) DeleteNetworkRuleWithDashClient(ctx context.Context) error
- func (o *RemoveNetworkOption) RunE(cmd *cobra.Command, args []string) error
- func (o *RemoveNetworkOption) Validate(cmd *cobra.Command, args []string) error
- type ResumeOption
- func (o *ResumeOption) Complete(cmd *cobra.Command, args []string) error
- func (o *ResumeOption) ResumeWorkspaceWithDashClient(ctx context.Context, workspaceName string) error
- func (o *ResumeOption) ResumeWorkspaceWithKubeClient(ctx context.Context, workspaceName string) error
- func (o *ResumeOption) RunE(cmd *cobra.Command, args []string) error
- func (o *ResumeOption) Validate(cmd *cobra.Command, args []string) error
- type SuspendOption
- func (o *SuspendOption) Complete(cmd *cobra.Command, args []string) error
- func (o *SuspendOption) RunE(cmd *cobra.Command, args []string) error
- func (o *SuspendOption) SuspendWorkspaceWithDashClient(ctx context.Context, workspaceName string) error
- func (o *SuspendOption) SuspendWorkspaceWithKubeClient(ctx context.Context, workspaceName string) error
- func (o *SuspendOption) Validate(cmd *cobra.Command, args []string) error
- type UpdateOption
- func (o *UpdateOption) Complete(cmd *cobra.Command, args []string) error
- func (o *UpdateOption) GetWorkspaceWithDashClient(ctx context.Context) (*dashv1alpha1.Workspace, error)
- func (o *UpdateOption) GetWorkspaceWithKubeClient(ctx context.Context) (*dashv1alpha1.Workspace, error)
- func (o *UpdateOption) RunE(cmd *cobra.Command, args []string) error
- func (o *UpdateOption) UpdateWorkspaceWithDashClient(ctx context.Context) (*dashv1alpha1.Workspace, error)
- func (o *UpdateOption) UpdateWorkspaceWithKubeClient(ctx context.Context) (*dashv1alpha1.Workspace, error)
- func (o *UpdateOption) Validate(cmd *cobra.Command, args []string) error
- type UpsertNetworkOption
- func (o *UpsertNetworkOption) Complete(cmd *cobra.Command, args []string) error
- func (o *UpsertNetworkOption) OutputTable(w io.Writer, v *dashv1alpha1.NetworkRule)
- func (o *UpsertNetworkOption) RunE(cmd *cobra.Command, args []string) error
- func (o *UpsertNetworkOption) UpsertNetworkRuleByKubeClient(ctx context.Context) (*dashv1alpha1.NetworkRule, error)
- func (o *UpsertNetworkOption) UpsertNetworkRuleWithDashClient(ctx context.Context) (*dashv1alpha1.NetworkRule, error)
- func (o *UpsertNetworkOption) Validate(cmd *cobra.Command, args []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommand ¶
func AddCommand(cmd *cobra.Command, o *cli.RootOptions)
func GetNetworkCmd ¶
func GetTemplatesCmd ¶
func OutputTable ¶
func OutputTable(out io.Writer, workspaces []*dashv1alpha1.Workspace)
func OutputWideTable ¶
func OutputWideTable(out io.Writer, workspaces []*dashv1alpha1.Workspace)
func RemoveNetworkCmd ¶
func SuspendCmd ¶
func UpsertNetworkCmd ¶
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)
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
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)
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) ListWorkspaces ¶
func (*GetOption) OutputYAML ¶
func (o *GetOption) OutputYAML(w io.Writer, objs []*dashv1alpha1.Workspace)
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)
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
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
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) SuspendWorkspaceWithDashClient ¶
func (o *SuspendOption) SuspendWorkspaceWithDashClient(ctx context.Context, workspaceName string) error
func (*SuspendOption) SuspendWorkspaceWithKubeClient ¶
func (o *SuspendOption) SuspendWorkspaceWithKubeClient(ctx context.Context, workspaceName 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) UpdateWorkspaceWithDashClient ¶
func (o *UpdateOption) UpdateWorkspaceWithDashClient(ctx context.Context) (*dashv1alpha1.Workspace, error)
func (*UpdateOption) UpdateWorkspaceWithKubeClient ¶
func (o *UpdateOption) UpdateWorkspaceWithKubeClient(ctx context.Context) (*dashv1alpha1.Workspace, error)
type UpsertNetworkOption ¶
type UpsertNetworkOption struct {
*cli.RootOptions
WorkspaceName string
UserName string
CustomHostPrefix string
PortNumber int32
HTTPPath string
Public bool
// 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)
Click to show internal directories.
Click to hide internal directories.