Documentation
¶
Index ¶
- Variables
- func ConvertNametoSSHName(store PortforwardStore, workspaceNameOrID string) (string, error)
- func NewCmdPortForward(pfStore PortforwardStore, t *terminal.Terminal) *cobra.Command
- func NewCmdPortForwardSSH(pfStore PortforwardStore, t *terminal.Terminal) *cobra.Command
- func RunSSHPortForward(forwardType string, localPort string, remotePort string, sshName string) (*os.Process, error)
- type PortforwardStore
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Port string
)
Functions ¶
func ConvertNametoSSHName ¶ added in v0.6.63
func ConvertNametoSSHName(store PortforwardStore, workspaceNameOrID string) (string, error)
func NewCmdPortForward ¶
func NewCmdPortForward(pfStore PortforwardStore, t *terminal.Terminal) *cobra.Command
func NewCmdPortForwardSSH ¶ added in v0.6.60
func NewCmdPortForwardSSH(pfStore PortforwardStore, t *terminal.Terminal) *cobra.Command
Types ¶
type PortforwardStore ¶
type PortforwardStore interface {
k8s.K8sStore
completions.CompletionStore
GetWorkspaceMetaData(workspaceID string) (*entity.WorkspaceMetaData, error)
GetWorkspace(workspaceID string) (*entity.Workspace, error)
GetAllWorkspaces(options *store.GetWorkspacesOptions) ([]entity.Workspace, error)
GetCurrentUser() (*entity.User, error)
GetActiveOrganizationOrDefault() (*entity.Organization, error)
GetWorkspaceByNameOrID(orgID string, nameOrID string) ([]entity.Workspace, error)
}
Click to show internal directories.
Click to hide internal directories.