entity

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ACTIVE          = "active"
	DISABLED        = "disable"
	STANDBY         = "standby"
	DEGRADED        = "degraded"
	QUEUE           = "queue"
	RUNNING         = "running"
	DONE            = "done"
	DOWN            = "down"
	UP              = "up"
	FAILED          = "failed"
	DeploymentType  = "deployment"
	StatefulsetType = "statefulset"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerRequest

type ControllerRequest struct {
	RequestData
	SwitchoverAnnotation string                 `json:"switchoverAnnotation,omitempty"`
	Status               SwitchoverState        `json:"status"`
	EventType            watch.EventType        `json:"eventType"`
	Object               map[string]interface{} `json:"object"`
}

type ControllerResponse

type ControllerResponse struct {
	SwitchoverState
}

type HealthRequest

type HealthRequest struct {
	Mode       string
	FullHealth bool
}

type HealthResponse

type HealthResponse struct {
	Status  string `json:"status"`
	Comment string `json:"comment,omitempty"`
}

type ModeDataUpdate

type ModeDataUpdate struct {
	Mode       string
	NoWait     bool
	Annotation map[string]string
}

type RequestData

type RequestData struct {
	Mode   string `json:"mode"`
	NoWait *bool  `json:"no-wait,omitempty"`
}

type StatusResponse

type StatusResponse struct {
	Status  string `json:"status"`
	Message string `json:"message,omitempty"`
}

type SwitchoverState

type SwitchoverState struct {
	Mode    string `json:"mode"`
	Status  string `json:"status,omitempty"`
	Comment string `json:"comment,omitempty"`
}

Jump to

Keyboard shortcuts

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