stop

package
v0.7.7-22-g731a963c Latest Latest
Warning

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

Go to latest
Published: Feb 26, 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 {
	TimeoutMS int64  `local:"true" long:"timeout-ms" short:"w" usage:"Timeout for the instance to stop"`
	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"`
	Metro     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