portforward

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Port string
)

Functions

func GetWorkspaceByIDOrName

func GetWorkspaceByIDOrName(workspaceIDOrName string, pfStore PortforwardStore) (*brevapi.WorkspaceWithMeta, error)

func NewCmdPortForward

func NewCmdPortForward(pfStore PortforwardStore, t *terminal.Terminal) *cobra.Command

Types

type PortforwardStore

type PortforwardStore interface {
	k8s.K8sStore
	completions.CompletionStore
	GetWorkspaceMetaData(workspaceID string) (*brevapi.WorkspaceMetaData, error)
	GetWorkspace(workspaceID string) (*brevapi.Workspace, error)
	GetAllWorkspaces(options *store.GetWorkspacesOptions) ([]brevapi.Workspace, error)
	GetCurrentUser() (*brevapi.User, error)
}

type WorkspaceResolver

type WorkspaceResolver struct{}

Jump to

Keyboard shortcuts

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