initialize

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 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 {
	AllowInsecure bool                  `noattribute:"true"`
	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)"`
	MaxSize       int                   `long:"max-size" short:"M" usage:"The maximum size of the configuration" default:"10"`
	Metro         string                `noattribute:"true"`
	MinSize       string                `long:"min-size" short:"m" usage:"The minimum size of the configuration"`
	Template      string                `long:"template" short:"t" usage:"The UUID or Name of the instance template"`
	Token         string                `noattribute:"true"`
	WarmupTime    time.Duration         `long:"warmup-time" short:"w" usage:"The warmup time of the config (ms/s/m/h)"`
}

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