cmd

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package cmd is our cobra/viper cli implementation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSubscriberTopicsRequired = errors.New("change-topics is required and cannot be empty")

	// ErrNATSAuthRequired is returned when a NATS auth method is missing
	ErrNATSAuthRequired = errors.New("env LOADBALANCER_MANAGER_HAPROXY_EVENTS_SUBSCRIBER_NATS_CREDSFILE is required and cannot be empty")

	// ErrHAProxyBaseConfigRequired is returned when the base HAProxy config is missing
	ErrHAProxyBaseConfigRequired = errors.New("base-haproxy-config is required and cannot be empty")

	// ErrLBAPIURLRequired is returned when the LB API url is missing
	ErrLBAPIURLRequired = errors.New("loadbalancer-api-url is required and cannot be empty")

	// ErrLBIDRequired is the loadbalancer id to watch for changes on the msg queue
	ErrLBIDRequired = errors.New("loadbalancer-id is required and cannot be empty")

	// ErrLBIDInvalid is returned when the loadbalancer gidx is invalid
	ErrLBIDInvalid = errors.New("loadbalancer-id (gidx) is invalid")
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

This section is empty.

Jump to

Keyboard shortcuts

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