Documentation ¶
Index ¶
- func BuildRoot() *cobra.Command
- func Execute()
- func NewCommandCmd() *cobra.Command
- func NewCreateCmd() *cobra.Command
- func NewDeleteCmd() *cobra.Command
- func NewInitCmd() *cobra.Command
- func NewRootCmd() *cobra.Command
- func NewSSHClient(user, addr string, keyBytes []byte, proxyAddr string) (*ssh.Client, error)
- func NewStartCmd() *cobra.Command
- func NewStatusCmd() *cobra.Command
- func NewStopCmd() *cobra.Command
- type CommandCmd
- type CreateCmd
- type DeleteCmd
- type InitCmd
- type StartCmd
- type StatusCmd
- type StopCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 NewSSHClient ¶ added in v0.4.12
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.