instance

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 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 int32  `json:"currentReplicas"`
	DesiredReplicas int32  `json:"desiredReplicas"`
	Status          string `json:"status"`
	Message         string `json:"message,omitempty"`
}

func ErrorInstanceState

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

func NotReadyInstanceState

func NotReadyInstanceState(name string, currentReplicas int32, desiredReplicas int32) State

func ReadyInstanceState

func ReadyInstanceState(name string, replicas int32) State

func UnrecoverableInstanceState

func UnrecoverableInstanceState(name string, message string, desiredReplicas int32) State

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