status

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Count          int32
	Message        string
	Node           string
	FirstTimestamp time.Time
	LastTimestamp  time.Time
	Type           string
}

type Reporter

type Reporter interface {
	Status(release terra.Release) (Status, error)
	Statuses(releases []terra.Release) (map[terra.Release]Status, error)
}

func NewReporter

func NewReporter(argocd argocd.ArgoCD, kubeclients k8sclients.Clients) Reporter

type Resource

type Resource struct {
	argocd.Resource
	Events []Event `yaml:",omitempty"`
}

type Status

type Status struct {
	Health             *argocd.HealthStatus `yaml:",omitempty"`
	Sync               *argocd.SyncStatus   `yaml:",omitempty"`
	Error              string               `yaml:",omitempty"`
	UnhealthyResources []Resource           `yaml:"resources,omitempty"`
}

func (*Status) Headline

func (s *Status) Headline() string

func (Status) IsHealthy

func (s Status) IsHealthy() bool

Jump to

Keyboard shortcuts

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