start

package
v0.8.7-109-g9b047b16 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 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 Start

func Start(ctx context.Context, opts *StartOptions, args ...string) error

Start KraftCloud instance(s).

Types

type StartOptions

type StartOptions struct {
	All    bool                  `long:"all" usage:"Start all instances"`
	Auth   *config.AuthConfig    `noattribute:"true"`
	Client kraftcloud.KraftCloud `noattribute:"true"`
	Metro  string                `noattribute:"true"`
	Token  string                `noattribute:"true"`
	Wait   time.Duration         `local:"true" long:"wait" short:"w" usage:"Timeout to wait for the instance to start (ms/s/m/h)"`
}

func (*StartOptions) Pre

func (opts *StartOptions) Pre(cmd *cobra.Command, _ []string) error

func (*StartOptions) Run

func (opts *StartOptions) 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