stop

package
v0.8.1-78-gd72294ac Latest Latest
Warning

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

Go to latest
Published: Apr 5, 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 a KraftCloud instance.

Types

type StopOptions

type StopOptions struct {
	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)"`
	Output       string        `long:"output" short:"o" usage:"Set output format. Options: table,yaml,json,list" default:"table"`
	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