stackstate

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusRunning   = "running"
	StatusPartial   = "partial"
	StatusStopped   = "stopped"
	StatusDown      = "down"
	StatusUnhealthy = "unhealthy"
)

Variables

This section is empty.

Functions

func HealthFromStatus

func HealthFromStatus(status string) string

Types

type ContainerFacts

type ContainerFacts struct {
	Service string
	State   string
	Health  string
}

type State

type State struct {
	Status                 string
	Healthy                bool
	ServicesWithContainers int
	TotalContainers        int
	RunningContainers      int
	StoppedContainers      int
	HealthyContainers      int
	UnhealthyContainers    int
	Percentage             int
	Reasons                []string
}

func Evaluate

func Evaluate(expectedServices []string, containers []ContainerFacts) State

Jump to

Keyboard shortcuts

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