helper

package
v0.5.7-alpha.13 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MPL-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCheckProviderUpdateCmd added in v0.1.10

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

NewCheckProviderUpdateCmd creates a new command

func NewFleetServerCmd added in v0.5.1

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

NewFleetServerCmd creates a new fleet command

func NewGetProviderNameCmd

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

NewGetProviderNameCmd creates a new command

func NewGetWorkspaceConfigCommand added in v0.2.0

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

NewGetWorkspaceConfigCommand creates a new command

func NewGetWorkspaceNameCmd

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

NewGetWorkspaceNameCmd creates a new command

func NewHelperCmd

func NewHelperCmd(globalFlags *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 CheckProviderUpdateCmd added in v0.1.10

type CheckProviderUpdateCmd struct {
	*flags.GlobalFlags
	// contains filtered or unexported fields
}

func (*CheckProviderUpdateCmd) Run added in v0.1.10

func (cmd *CheckProviderUpdateCmd) Run(ctx context.Context, devPodConfig *config.Config, args []string) error

type FleetServerCmd added in v0.5.1

type FleetServerCmd struct {
	*flags.GlobalFlags

	WorkspaceID string
}

FleetServerCmd holds the fleet server cmd flags

func (*FleetServerCmd) Run added in v0.5.1

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

Run runs the command logic

type GetProviderNameCmd

type GetProviderNameCmd struct {
	*flags.GlobalFlags
}

func (*GetProviderNameCmd) Run

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

type GetWorkspaceConfigCommand added in v0.2.0

type GetWorkspaceConfigCommand struct {
	*flags.GlobalFlags
	// contains filtered or unexported fields
}

func (*GetWorkspaceConfigCommand) Run added in v0.2.0

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

type GetWorkspaceConfigCommandResult added in v0.2.0

type GetWorkspaceConfigCommandResult struct {
	IsImage         bool     `json:"isImage"`
	IsGitRepository bool     `json:"isGitRepository"`
	IsLocal         bool     `json:"isLocal"`
	ConfigPaths     []string `json:"configPaths"`
}

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
	Workdir       string
}

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
	Login   bool
}

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