Documentation
¶
Overview ¶
Package ls lists workspaces in the current org
Index ¶
- func NewCmdLs(t *terminal.Terminal, loginLsStore LsStore, noLoginLsStore LsStore) *cobra.Command
- func RunLs(t *terminal.Terminal, lsStore LsStore, args []string, orgflag string, ...) error
- type Ls
- func (ls Ls) RunHosts(org *entity.Organization) error
- func (ls Ls) RunOrgs() error
- func (ls Ls) RunUser(_ bool) error
- func (ls Ls) RunWorkspaces(org *entity.Organization, user *entity.User, showAll bool) error
- func (ls Ls) ShowAllWorkspaces(org *entity.Organization, otherOrgs []entity.Organization, user *entity.User, ...)
- func (ls Ls) ShowUserWorkspaces(org *entity.Organization, otherOrgs []entity.Organization, user *entity.User, ...)
- type LsStore
- type OrgInfo
- type WorkspaceInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ls ¶ added in v0.4.0
type Ls struct {
// contains filtered or unexported fields
}
func (Ls) RunWorkspaces ¶ added in v0.4.0
func (Ls) ShowAllWorkspaces ¶ added in v0.6.60
func (Ls) ShowUserWorkspaces ¶ added in v0.6.60
type LsStore ¶ added in v0.4.0
type LsStore interface {
GetWorkspaces(organizationID string, options *store.GetWorkspacesOptions) ([]entity.Workspace, error)
GetActiveOrganizationOrDefault() (*entity.Organization, error)
GetCurrentUser() (*entity.User, error)
GetUsers(queryParams map[string]string) ([]entity.User, error)
GetWorkspace(workspaceID string) (*entity.Workspace, error)
GetOrganizations(options *store.GetOrganizationsOptions) ([]entity.Organization, error)
GetInstanceTypes(includeCPU bool) (*gpusearch.InstanceTypesResponse, error)
hello.HelloStore
}
type OrgInfo ¶ added in v0.6.317
type OrgInfo struct {
Name string `json:"name"`
ID string `json:"id"`
IsActive bool `json:"is_active"`
}
OrgInfo represents organization data for JSON output
type WorkspaceInfo ¶ added in v0.6.317
type WorkspaceInfo struct {
Name string `json:"name"`
ID string `json:"id"`
Status string `json:"status"`
BuildStatus string `json:"build_status"`
ShellStatus string `json:"shell_status"`
HealthStatus string `json:"health_status"`
InstanceType string `json:"instance_type"`
InstanceKind string `json:"instance_kind"`
GPU string `json:"gpu"`
}
WorkspaceInfo represents workspace data for JSON output
Click to show internal directories.
Click to hide internal directories.