helper

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: MPL-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetProviderNameCmd

func NewGetProviderNameCmd(flags *flags.GlobalFlags) *cobra.Command

NewGetProviderNameCmd creates a new command

func NewGetWorkspaceNameCmd

func NewGetWorkspaceNameCmd(flags *flags.GlobalFlags) *cobra.Command

NewGetWorkspaceNameCmd creates a new command

func NewHelperCmd

func NewHelperCmd(flags *flags.GlobalFlags) *cobra.Command

NewHelperCmd returns a new command

func NewSSHClientCmd

func NewSSHClientCmd() *cobra.Command

NewSSHClientCmd creates a new ssh command

func NewSSHServerCmd

func NewSSHServerCmd(flags *flags.GlobalFlags) *cobra.Command

NewSSHServerCmd creates a new ssh command

func NewShellCmd

func NewShellCmd() *cobra.Command

NewShellCmd creates a new command

Types

type GetProviderNameCmd

type GetProviderNameCmd struct {
	*flags.GlobalFlags
}

func (*GetProviderNameCmd) Run

func (cmd *GetProviderNameCmd) Run(ctx context.Context, args []string) error

type GetWorkspaceNameCommand

type GetWorkspaceNameCommand struct {
	*flags.GlobalFlags
}

func (*GetWorkspaceNameCommand) Run

func (cmd *GetWorkspaceNameCommand) Run(ctx context.Context, args []string) error

type SSHClient

type SSHClient struct {
	Address string
	KeyFile string
	User    string
}

func (*SSHClient) Run

func (cmd *SSHClient) Run(ctx context.Context, args []string) error

type SSHServerCmd

type SSHServerCmd struct {
	*flags.GlobalFlags

	Token         string
	Address       string
	Stdio         bool
	TrackActivity bool
}

SSHServerCmd holds the ssh server cmd flags

func (*SSHServerCmd) Run

func (cmd *SSHServerCmd) Run(_ *cobra.Command, _ []string) error

Run runs the command logic

type ShellCommand

type ShellCommand struct {
	Command string
}

func (*ShellCommand) Run

func (cmd *ShellCommand) Run(ctx context.Context, args []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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