instance

package
v1.0.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.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"`
	Status          string `json:"status"`
	Message         string `json:"message,omitempty"`
}

func ErrorInstanceState

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

func NotReadyInstanceState

func NotReadyInstanceState(name string) (State, error)

func NotReadyInstanceStateOfReplicas

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

func ReadyInstanceState

func ReadyInstanceState(name string) (State, error)

func ReadyInstanceStateOfReplicas

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

func UnrecoverableInstanceState

func UnrecoverableInstanceState(name string, message string) (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