cmd

package
v0.4.18 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRoot

func BuildRoot() *cobra.Command

BuildRoot creates a new root command from the

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewCommandCmd

func NewCommandCmd() *cobra.Command

NewCommandCmd defines a command

func NewCreateCmd

func NewCreateCmd() *cobra.Command

NewCreateCmd defines a command

func NewDeleteCmd

func NewDeleteCmd() *cobra.Command

NewDeleteCmd defines a command

func NewInitCmd

func NewInitCmd() *cobra.Command

NewInitCmd defines a init

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd returns a new root command

func NewSSHClient added in v0.4.12

func NewSSHClient(user, addr string, keyBytes []byte, proxyAddr string) (*ssh.Client, error)

func NewStartCmd

func NewStartCmd() *cobra.Command

NewStartCmd defines a command

func NewStatusCmd

func NewStatusCmd() *cobra.Command

NewStatusCmd defines a command

func NewStopCmd

func NewStopCmd() *cobra.Command

NewStopCmd defines a command

Types

type CommandCmd

type CommandCmd struct{}

CommandCmd holds the cmd flags

func (*CommandCmd) Run

func (cmd *CommandCmd) Run(
	ctx context.Context,
	opentelekomcloudProvider *opentelekomcloud.OpenTelekomCloudProvider,
	logs log.Logger,
) error

Run runs the command logic

type CreateCmd

type CreateCmd struct{}

CreateCmd holds the cmd flags

func (*CreateCmd) Run

func (cmd *CreateCmd) Run(
	ctx context.Context,
	opentelekomcloudProvider *opentelekomcloud.OpenTelekomCloudProvider,
	logs log.Logger,
) error

Run runs the command logic

type DeleteCmd

type DeleteCmd struct{}

DeleteCmd holds the cmd flags

func (*DeleteCmd) Run

func (cmd *DeleteCmd) Run(
	ctx context.Context,
	opentelekomcloudProvider *opentelekomcloud.OpenTelekomCloudProvider,
	logs log.Logger,
) error

Run runs the command logic

type InitCmd

type InitCmd struct{}

InitCmd holds the cmd flags

func (*InitCmd) Run

func (cmd *InitCmd) Run(
	ctx context.Context,
	opentelekomcloudProvider *opentelekomcloud.OpenTelekomCloudProvider,
	logs log.Logger,
) error

Run runs the init logic

type StartCmd

type StartCmd struct{}

StartCmd holds the cmd flags

func (*StartCmd) Run

func (cmd *StartCmd) Run(
	ctx context.Context,
	opentelekomcloudProvider *opentelekomcloud.OpenTelekomCloudProvider,
	logs log.Logger,
) error

Run runs the command logic

type StatusCmd

type StatusCmd struct{}

StatusCmd holds the cmd flags

func (*StatusCmd) Run

func (cmd *StatusCmd) Run(
	ctx context.Context,
	opentelekomcloudProvider *opentelekomcloud.OpenTelekomCloudProvider,
	logs log.Logger,
) error

Run runs the command logic

type StopCmd

type StopCmd struct{}

StopCmd holds the cmd flags

func (*StopCmd) Run

func (cmd *StopCmd) Run(
	ctx context.Context,
	opentelekomcloudProvider *opentelekomcloud.OpenTelekomCloudProvider,
	logs log.Logger,
) error

Run runs the command logic

Jump to

Keyboard shortcuts

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