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
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 Ls) ShowAllWorkspaces(org *entity.Organization, otherOrgs []entity.Organization, user *entity.User, allWorkspaces []entity.Workspace)
func (Ls) ShowUserWorkspaces ¶ added in v0.6.60
func (ls Ls) ShowUserWorkspaces(org *entity.Organization, otherOrgs []entity.Organization, user *entity.User, allWorkspaces []entity.Workspace)
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) }
Click to show internal directories.
Click to hide internal directories.