config

package
v0.0.0-...-746c951 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIPPort

func CheckIPPort(b string) (net.IP, int32, error)

CheckIPPort takes a host:port string and splits it out and verifies it.

Types

type Config

type Config struct {
	// Concurrency is the number of servers that can be upgraded at a time.
	Concurrency int32
	// CanaryNum is the number of canaries to do before proceeding with a general rollout.
	// Any canary failure fails the workflow. Canaries execute one at a time.
	CanaryNum int32
	// MaxFailures is the maximum number of failures to tolerate before stopping.
	// You can have more failures than MaxFailures due to concurrency settings.
	MaxFailures int32
	// Src is the path on disk to the binary to push.
	Src string
	// LB is the host:port of the load balancer.
	LB string
	// Pattern is the load balancer's Pool pattern.
	Pattern string
	// Backends are the backends that need to be updated, simply the host in IP:Port form.
	Backends []string
}

Config represents the configuration file that details the work to be done.

func (Config) Validate

func (s Config) Validate() error

Validate does basic validation of the config.

Jump to

Keyboard shortcuts

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