stop

package
v0.8.5-25-g53dbc680 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

func Stop

func Stop(ctx context.Context, opts *StopOptions, args ...string) error

Stop KraftCloud instance(s).

Types

type StopOptions

type StopOptions struct {
	Auth         *config.AuthConfig    `noattribute:"true"`
	Client       kraftcloud.KraftCloud `noattribute:"true"`
	Wait         time.Duration         `` /* 129-byte string literal not displayed */
	DrainTimeout time.Duration         `local:"true" long:"drain-timeout" short:"d" usage:"Timeout for the instance to stop (ms/s/m/h)"`
	All          bool                  `long:"all" usage:"Stop all instances"`
	Force        bool                  `long:"force" short:"f" usage:"Force stop the instance(s)"`
	Metro        string                `noattribute:"true"`
	Token        string                `noattribute:"true"`
}

func (*StopOptions) Pre

func (opts *StopOptions) Pre(cmd *cobra.Command, args []string) error

func (*StopOptions) Run

func (opts *StopOptions) Run(ctx context.Context, args []string) error

Jump to

Keyboard shortcuts

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