carousel

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicUI

type BasicUI struct{}

func (BasicUI) Info

func (b BasicUI) Info(s string)

func (BasicUI) Warn

func (b BasicUI) Warn(s string)
type Carousel struct {
	// contains filtered or unexported fields
}

func NewCarousel

func NewCarousel(logger log.Logger, ui UI, controller controller.Controller, config Config) (Carousel, error)

func (Carousel) Resume

func (c Carousel) Resume(startingColor model.Color, steps []model.Step, goalCluster model.ClusterState) error

func (Carousel) Rollout

func (c Carousel) Rollout(nodeCount int, version semver.Version, stepOptions ...step.StepOptions) error

type Config

type Config struct {
	DryRun   bool
	Validate HostValidator
}

type HostValidator

type HostValidator func(fqdn string) bool

HostValidator is a function that Checks if a Host is bad or good.

func AsHostValidator

func AsHostValidator(f func(fqdn string) bool) HostValidator

type UI

type UI interface {
	// Info is used for any messages that might appear on standard
	// output.
	Info(string)
	// Warn is used for any warning messages that might appear on standard
	// error.
	Warn(string)
}

Jump to

Keyboard shortcuts

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