instance

package
v1.4.1-beta.9 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotReady = "not-ready"
View Source
var Ready = "ready"
View Source
var Unrecoverable = "unrecoverable"

Functions

This section is empty.

Types

type State

type State struct {
	Name            string `json:"name"`
	CurrentReplicas int    `json:"currentReplicas"`
	DesiredReplicas int    `json:"desiredReplicas"`
	Status          string `json:"status"`
	Message         string `json:"message,omitempty"`
}

func ErrorInstanceState

func ErrorInstanceState(name string, err error, desiredReplicas int) (State, error)

func NotReadyInstanceState

func NotReadyInstanceState(name string, currentReplicas int, desiredReplicas int) (State, error)

func ReadyInstanceState

func ReadyInstanceState(name string, replicas int) (State, error)

func UnrecoverableInstanceState

func UnrecoverableInstanceState(name string, message string, desiredReplicas int) (State, error)

func (State) IsReady

func (instance State) IsReady() bool

Jump to

Keyboard shortcuts

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