ls

package
v0.6.322 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 26 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ls lists workspaces in the current org

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdLs

func NewCmdLs(t *terminal.Terminal, loginLsStore LsStore, noLoginLsStore LsStore) *cobra.Command

func RunLs added in v0.4.0

func RunLs(t *terminal.Terminal, lsStore LsStore, args []string, orgflag string, showAll bool, jsonOutput bool) error

Types

type Ls added in v0.4.0

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

func NewLs added in v0.4.0

func NewLs(lsStore LsStore, terminal *terminal.Terminal, jsonOutput bool) *Ls

func (Ls) RunHosts added in v0.6.46

func (ls Ls) RunHosts(org *entity.Organization) error

func (Ls) RunInstances added in v0.6.321

func (ls Ls) RunInstances(org *entity.Organization, user *entity.User, showAll bool) error

func (Ls) RunNodes added in v0.6.318

func (ls Ls) RunNodes(org *entity.Organization) error

RunNodes lists external nodes for the given org.

func (Ls) RunOrgs added in v0.4.0

func (ls Ls) RunOrgs() error

func (Ls) RunUser added in v0.5.0

func (ls Ls) RunUser(_ bool) error

func (Ls) RunWorkspaces added in v0.4.0

func (ls Ls) RunWorkspaces(org *entity.Organization, user *entity.User, showAll bool) error

func (Ls) ShowAllWorkspaces added in v0.6.60

func (ls Ls) ShowAllWorkspaces(org *entity.Organization, otherOrgs []entity.Organization, user *entity.User, allWorkspaces []entity.Workspace, gpuLookup map[string]string)

func (Ls) ShowUserWorkspaces added in v0.6.60

func (ls Ls) ShowUserWorkspaces(org *entity.Organization, otherOrgs []entity.Organization, user *entity.User, allWorkspaces []entity.Workspace, gpuLookup map[string]string)

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)
	GetAccessToken() (string, error)
	GetInstanceTypes(includeCPU bool) (*gpusearch.InstanceTypesResponse, error)
	hello.HelloStore
}

type NodeInfo added in v0.6.318

type NodeInfo struct {
	Name           string `json:"name"`
	ExternalNodeID string `json:"external_node_id"`
	OrgID          string `json:"org_id"`
	Status         string `json:"status"`
}

NodeInfo represents external node data for JSON output.

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

Jump to

Keyboard shortcuts

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