sshall

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdSSHAll

func NewCmdSSHAll() *cobra.Command

Types

type RandomSSHResolver

type RandomSSHResolver struct {
	WorkspaceResolver WorkspaceResolver
}

func NewRandomPortSSHResolver

func NewRandomPortSSHResolver(workspaceResolver WorkspaceResolver) *RandomSSHResolver

func (RandomSSHResolver) GetConfiguredWorkspacePort

func (r RandomSSHResolver) GetConfiguredWorkspacePort(workspace brev_api.Workspace) (string, error)

func (RandomSSHResolver) GetWorkspaces

func (r RandomSSHResolver) GetWorkspaces() ([]brev_api.WorkspaceWithMeta, error)

type SSHAll

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

func NewSSHAll

func NewSSHAll(
	workspaceGroupClientMapper k8s.WorkspaceGroupClientMapper,
	sshResolver SSHResolver,

) *SSHAll

func (SSHAll) Run

func (s SSHAll) Run() error

type SSHResolver

type SSHResolver interface {
	GetWorkspaces() ([]brev_api.WorkspaceWithMeta, error)
	GetConfiguredWorkspacePort(workspace brev_api.Workspace) (string, error)
}

type WorkspaceResolver

type WorkspaceResolver interface {
	GetMyWorkspaces(orgID string) ([]brev_api.Workspace, error)
	GetWorkspaceMetaData(wsID string) (*brev_api.WorkspaceMetaData, error)
}

Jump to

Keyboard shortcuts

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