stop

package
v0.9.2-69-g4847d177 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

Types

type StopOptions

type StopOptions struct {
	Auth         *config.AuthConfig    `noattribute:"true"`
	Client       kraftcloud.KraftCloud `noattribute:"true"`
	Composefile  string                `noattribute:"true"`
	DrainTimeout time.Duration         `long:"drain-timeout" short:"d" usage:"Timeout for the instance to stop (ms/s/m/h)"`
	Force        bool                  `long:"force" short:"f" usage:"Force stop the instance(s)"`
	Metro        string                `noattribute:"true"`
	Project      *compose.Project      `noattribute:"true"`
	Token        string                `noattribute:"true"`
	Wait         time.Duration         `long:"wait" short:"w" usage:"Time to wait for the instance to drain all connections before it is stopped (ms/s/m/h)"`
}

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