machine

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MPL-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TermModeAuto     = "auto"
	TermModeStrict   = "strict"
	TermModeFallback = "fallback"
)

Variables

This section is empty.

Functions

func NewCreateCmd

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

NewCreateCmd creates a new create command.

func NewDeleteCmd

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

NewDeleteCmd creates a new destroy command.

func NewInspectCmd

func NewInspectCmd(flags *flags.GlobalFlags) *cobra.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 RunSSHSession

func RunSSHSession(ctx context.Context, sshClient *ssh.Client, options RunSSHSessionOptions) error

func StartSSHSession

func StartSSHSession(ctx context.Context, options StartSSHSessionOptions) 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 InspectCmd

type InspectCmd struct {
	*flags.GlobalFlags
}

func (*InspectCmd) Run

func (cmd *InspectCmd) Run(ctx context.Context, args []string) 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 RunSSHSessionOptions added in v0.13.0

type RunSSHSessionOptions struct {
	Command         string
	AgentForwarding bool
	SessionOptions  SSHSessionOptions
	Stderr          io.Writer
}

type SSHCmd

type SSHCmd struct {
	*flags.GlobalFlags

	Command         string
	AgentForwarding bool
	TermMode        string
	InstallTerminfo bool
}

SSHCmd holds the configuration.

func (*SSHCmd) Run

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

Run runs the command logic.

type SSHSessionOptions added in v0.13.0

type SSHSessionOptions struct {
	TermMode        string
	InstallTerminfo bool
}

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 StartSSHSessionOptions added in v0.13.0

type StartSSHSessionOptions struct {
	User            string
	Command         string
	AgentForwarding bool
	SessionOptions  SSHSessionOptions
	Exec            ExecFunc
	Stderr          io.Writer
}

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