types

package
v0.0.0-...-8a22b0b Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 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:"app_id"`
	ResourceStates ResourceStates `json:"resource_states" hash:"set"`
	UpdatedAt      time.Time      `json:"updated_at" hash:"ignore"`
}

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"
	StateDegraded    State = "degraded"
	StateUnavailable State = "unavailable"
	StateMissing     State = "missing"

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

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