status

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerHealthStatus

type ContainerHealthStatus int32

ContainerHealthStatus is an enumeration of container health check status

const (
	// ContainerHealthUnknown is the initial status of container health
	ContainerHealthUnknown ContainerHealthStatus = iota
	// ContainerHealthy represents the status of container health check when returned healthy
	ContainerHealthy
	// ContainerUnhealthy represents the status of container health check when returned unhealthy
	ContainerUnhealthy
)

func (ContainerHealthStatus) BackendStatus added in v0.6.0

func (healthStatus ContainerHealthStatus) BackendStatus() string

BackendStatus returns the container health status recognized by backend

func (*ContainerHealthStatus) MarshalJSON added in v0.6.0

func (healthStatus *ContainerHealthStatus) MarshalJSON() ([]byte, error)

MarshalJSON overrides the logic for JSON-encoding the ContainerHealthStatus type

func (ContainerHealthStatus) String added in v0.6.0

func (healthStatus ContainerHealthStatus) String() string

String returns the readable description of the container health status

func (*ContainerHealthStatus) UnmarshalJSON added in v0.6.0

func (healthStatus *ContainerHealthStatus) UnmarshalJSON(b []byte) error

UnmarshalJSON overrides the logic for parsing the JSON-encoded container health data

Jump to

Keyboard shortcuts

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