up

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetActiveWorkspaces

func GetActiveWorkspaces(upStore UpStore) ([]entity.WorkspaceWithMeta, error)

func NewCmdUp

func NewCmdUp(upStore UpStore, t *terminal.Terminal) *cobra.Command

Types

type SSHConfigurer

type SSHConfigurer interface {
	Config() error
	GetConfiguredWorkspacePort(workspace entity.Workspace) (string, error)
}

type Up

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

func NewUp

func NewUp(workspaces []entity.WorkspaceWithMeta, sshConfigurer SSHConfigurer, workspaceGroupClientMapper k8s.WorkspaceGroupClientMapper) *Up

func (Up) Run

func (o Up) Run() error

type UpStore

type UpStore interface {
	brevssh.SSHStore
	k8s.K8sStore
	GetActiveOrganizationOrDefault() (*entity.Organization, error)
	GetWorkspaces(organizationID string, options *store.GetWorkspacesOptions) ([]entity.Workspace, error)
	GetWorkspaceMetaData(workspaceID string) (*entity.WorkspaceMetaData, error)
	GetCurrentUser() (*entity.User, error)
}

Jump to

Keyboard shortcuts

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