initialize

package
v0.7.4-6-g73e96827 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

Types

type InitOptions

type InitOptions struct {
	Auth           *config.AuthConfig    `noattribute:"true"`
	Client         kraftcloud.KraftCloud `noattribute:"true"`
	CooldownTimeMs uint                  `long:"cooldown-time-ms" short:"c" usage:"The cooldown time of the configuration" default:"1000"`
	Master         string                `long:"master" short:"i" usage:"The UUID or Name of the master instance"`
	MaxSize        uint                  `long:"max-size" short:"M" usage:"The maximum size of the configuration" default:"10"`
	Metro          string                `noattribute:"true"`
	MinSize        uint                  `long:"min-size" short:"m" usage:"The minimum size of the configuration"`
	WarmupTimeMs   uint                  `long:"warmup-time-ms" short:"w" usage:"The warmup time of the configuration" default:"1000"`
}

func (*InitOptions) Pre

func (opts *InitOptions) Pre(cmd *cobra.Command, args []string) error

func (*InitOptions) Run

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