Documentation ¶
Overview ¶
Package api contains all high level types of the kube-volume-freezer API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { // Code corresponds to HTTP error codes. Code int `json:"code"` Message string `json:"message"` Issues IssueList `json:"issues,omitempty"` }
Error contains an API top-level error response.
type FreezeThawRequest ¶
type FreezeThawRequest struct {
Action string `json:"action" enum:"freeze|thaw" required:"true"`
}
FreezeThawRequest describes a request for freezing or thawing a Volume.
type Health ¶
type Health struct {
Status string `json:"status"`
}
Health contains current health status.
type Issue ¶
type Issue struct { Reason string `json:"reason"` Message string `json:"message"` Domain string `json:"domain,omitempty"` Location string `json:"location,omitempty"` LocationType string `json:"locationType,omitempty"` }
Issue can be added to an Error.
type VolumeList ¶
VolumeList contains list of Pod Volumes.
Click to show internal directories.
Click to hide internal directories.