add

package
v0.9.2-40-gb1ac9e0a Latest Latest
Warning

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

Go to latest
Published: Sep 2, 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

Types

type AddOptions

type AddOptions struct {
	Adjustment string                `` /* 129-byte string literal not displayed */
	Auth       *config.AuthConfig    `noattribute:"true"`
	Client     kraftcloud.KraftCloud `noattribute:"true"`
	Metric     string                `long:"metric" short:"m" usage:"The metric of the policy. Valid options: 'cpu'" default:"cpu"`
	Metro      string                `noattribute:"true"`
	Name       string                `long:"name" short:"n" usage:"The name of the policy"`
	Step       []string              `long:"step" short:"s" usage:"The step of the policy in the format 'LOWER_BOUND:UPPER_BOUND/ADJUSTMENT'"`
	Token      string                `noattribute:"true"`
}

func (*AddOptions) Pre

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

func (*AddOptions) Run

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