initialize

package
v0.8.5-33-gdc59dbf2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: BSD-3-Clause Imports: 12 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"`
	CooldownTime time.Duration         `long:"cooldown-time" short:"c" usage:"The cooldown time of the config (ms/s/m/h)" default:"1000000000"`
	Master       string                `long:"master" short:"i" usage:"The UUID or Name of the master instance"`
	MaxSize      int                   `long:"max-size" short:"M" usage:"The maximum size of the configuration" default:"10"`
	Metro        string                `noattribute:"true"`
	MinSize      int                   `long:"min-size" short:"m" usage:"The minimum size of the configuration"`
	Token        string                `noattribute:"true"`
	WarmupTime   time.Duration         `long:"warmup-time" short:"w" usage:"The warmup time of the config (ms/s/m/h)" default:"1000000000"`
}

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