machine

package
v0.5.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateCmd

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

NewCreateCmd creates a new destroy command

func NewDeleteCmd

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

NewDeleteCmd creates a new destroy command

func NewListCmd

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

NewListCmd creates a new destroy command

func NewMachineCmd

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

NewMachineCmd returns a new root command

func NewSSHCmd

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

NewSSHCmd creates a new destroy command

func NewStartCmd

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

NewStartCmd creates a new destroy command

func NewStatusCmd

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

NewStatusCmd creates a new destroy command

func NewStopCmd

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

NewStopCmd creates a new destroy command

func StartSSHSession

func StartSSHSession(ctx context.Context, user, command string, agentForwarding bool, exec ExecFunc, stderr io.Writer) error

Types

type CreateCmd

type CreateCmd struct {
	*flags.GlobalFlags

	ProviderOptions []string
}

CreateCmd holds the configuration

func (*CreateCmd) Run

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

Run runs the command logic

type DeleteCmd

type DeleteCmd struct {
	*flags.GlobalFlags

	GracePeriod string
	Force       bool
}

DeleteCmd holds the configuration

func (*DeleteCmd) Run

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

Run runs the command logic

type ExecFunc

type ExecFunc func(ctx context.Context, stdin io.Reader, stdout io.Writer, stderr io.Writer) error

type ListCmd

type ListCmd struct {
	*flags.GlobalFlags

	Output string
}

ListCmd holds the configuration

func (*ListCmd) Run

func (cmd *ListCmd) Run(ctx context.Context) error

Run runs the command logic

type SSHCmd

type SSHCmd struct {
	*flags.GlobalFlags

	Command         string
	AgentForwarding bool
}

SSHCmd holds the configuration

func (*SSHCmd) Run

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

Run runs the command logic

type StartCmd

type StartCmd struct {
	*flags.GlobalFlags
}

StartCmd holds the configuration

func (*StartCmd) Run

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

Run runs the command logic

type StatusCmd

type StatusCmd struct {
	*flags.GlobalFlags

	Output string
}

StatusCmd holds the configuration

func (*StatusCmd) Run

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

Run runs the command logic

type StopCmd

type StopCmd struct {
	*flags.GlobalFlags
}

StopCmd holds the configuration

func (*StopCmd) Run

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

Run runs the command logic

Jump to

Keyboard shortcuts

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