args

package
v0.0.0-...-370a180 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateArgs

func ValidateArgs() error

ValidateArgs validates all of the command line arguments

Types

type Args

type Args struct {
	Min  int32
	Max  int32
	Rate time.Duration

	ScaleDown  ScaleDownArgs
	Logging    LoggingArgs
	Kubernetes KubernetesArgs
	AZD        AzureDevopsArgs
	Health     HealthArgs
}

Args holds all of the program arguments

func ArgsFromFlags

func ArgsFromFlags() Args

ArgsFromFlags returns an Args parsed from the program flags

type AzureDevopsArgs

type AzureDevopsArgs struct {
	Token string
	URL   string
}

AzureDevopsArgs holds all of the Azure Devops related args

type HealthArgs

type HealthArgs struct {
	Port int
}

HealthArgs holds all of the healthcheck related args

type KubernetesArgs

type KubernetesArgs struct {
	Type      string
	Name      string
	Namespace string
}

KubernetesArgs holds all of the Kubernetes related args

func (KubernetesArgs) FriendlyName

func (a KubernetesArgs) FriendlyName() string

FriendlyName returns the name used to reference the resource in the CLI, ex: deployment/myapp

type LoggingArgs

type LoggingArgs struct {
	Level log.Level
}

LoggingArgs holds all of the logging related args

type ScaleDownArgs

type ScaleDownArgs struct {
	Delay time.Duration
	Max   int32
}

ScaleDownArgs holds all of the scale-down related args

Jump to

Keyboard shortcuts

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