common

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Out     io.Writer
	Err     io.Writer
	Cmd     *cobra.Command
	Args    []string
	Verbose bool
}

Options contains common options and helper methods

type ScalerOptions

type ScalerOptions struct {
	Options
	ScalerName string
	Provider   string
	RoleArn    string
	Region     string
	Max        int64
	Min        int64
	Desired    int64
}

ScalerOptions saves values of flags

func (*ScalerOptions) AddFlags

func (scalerOptions *ScalerOptions) AddFlags(cmd *cobra.Command)

AddFlags - adds required flags to command

func (*ScalerOptions) ValidateArgs

func (scalerOptions *ScalerOptions) ValidateArgs() error

ValidateArgs - Validates the arguments

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL