stop

package
v0.7.0-142-g3285c00 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 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" 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