types

package
v1.107.5 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppStatus

type AppStatus struct {
	AppID          string         `json:"appId"`
	ResourceStates ResourceStates `json:"resourceStates" hash:"set"`
	UpdatedAt      time.Time      `json:"updatedAt" hash:"ignore"`
	State          State          `json:"state"`
	Sequence       int64          `json:"sequence"`
}

type ResourceState

type ResourceState struct {
	Kind      string `json:"kind"`
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	State     State  `json:"state"`
}

type ResourceStates

type ResourceStates []ResourceState

func (ResourceStates) Len

func (a ResourceStates) Len() int

func (ResourceStates) Less

func (a ResourceStates) Less(i, j int) bool

func (ResourceStates) Swap

func (a ResourceStates) Swap(i, j int)

type State

type State string
var (
	StateReady       State = "ready"
	StateUpdating    State = "updating"
	StateDegraded    State = "degraded"
	StateUnavailable State = "unavailable"
	StateMissing     State = "missing"

	StatusInformerRegexp = regexp.MustCompile(`^(?:([^\/]+)\/)?([^\/]+)\/([^\/]+)$`)
)

func GetState

func GetState(resourceStates []ResourceState) State

func MinState

func MinState(ss ...State) (min State)

type StatusInformer

type StatusInformer struct {
	Kind      string
	Name      string
	Namespace string
}

type StatusInformerString

type StatusInformerString string

func (StatusInformerString) Parse

func (s StatusInformerString) Parse() (i StatusInformer, err error)

Jump to

Keyboard shortcuts

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