sensor

package
v2.0.0-...-d99f062 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDeployFailed = errors.New("Failed to deploy app")
)

Functions

This section is empty.

Types

type DeploySensor

type DeploySensor interface {
	WaitForCanaryWithContext(ctx context.Context, canary string, namespace string) <-chan error
	WaitForCanary(canary string, namespace string) <-chan error
}

func NewDeploySensor

func NewDeploySensor(config *rest.Config, logger *slog.Logger) (DeploySensor, error)

type FSM

type FSM[T comparable, K any] interface {
	Transition(K) FSM[T, K]
	IsDone() bool
	CurrentState() *T
}

func NewFSM

func NewFSM[T comparable, K any](initial T, final []T, transitions map[T]func(T, K) (T, error)) (FSM[T, K], error)

Jump to

Keyboard shortcuts

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