options

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package options contains flags for initializing an autoscaler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WordSepNormalizeFunc

func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName

InitFlags no// WordSepNormalizeFunc changes all flags that contain "_" separators

Types

type AutoScalerConfig

type AutoScalerConfig struct {
	Namespace         string
	Target            string
	DefaultConfig     string
	ConfigFile        string
	PollPeriodSeconds int
	Kubeconfig        string
	PrintVer          bool
	DryRun            bool
}

AutoScalerConfig configures and runs an autoscaler server

func NewAutoScalerConfig

func NewAutoScalerConfig() *AutoScalerConfig

NewAutoScalerConfig returns a Autoscaler config

func (*AutoScalerConfig) AddFlags

func (c *AutoScalerConfig) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags to the specified FlagSet.

func (*AutoScalerConfig) InitFlags

func (c *AutoScalerConfig) InitFlags()

func (*AutoScalerConfig) ValidateFlags

func (c *AutoScalerConfig) ValidateFlags() error

ValidateFlags validates whether flags are set up correctly

Jump to

Keyboard shortcuts

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