mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Capitalize Status.Status
This commit is contained in:
parent
1c02af3d16
commit
523731c509
@ -455,12 +455,12 @@ func (*Binding) IsAnAPIObject() {}
|
|||||||
// import both.
|
// import both.
|
||||||
type Status struct {
|
type Status struct {
|
||||||
JSONBase `json:",inline" yaml:",inline"`
|
JSONBase `json:",inline" yaml:",inline"`
|
||||||
// One of: "success", "failure", "working" (for operations not yet completed)
|
// One of: "Success", "Failure", "Working" (for operations not yet completed)
|
||||||
Status string `json:"status,omitempty" yaml:"status,omitempty"`
|
Status string `json:"status,omitempty" yaml:"status,omitempty"`
|
||||||
// A human-readable description of the status of this operation.
|
// A human-readable description of the status of this operation.
|
||||||
Message string `json:"message,omitempty" yaml:"message,omitempty"`
|
Message string `json:"message,omitempty" yaml:"message,omitempty"`
|
||||||
// A machine-readable description of why this operation is in the
|
// A machine-readable description of why this operation is in the
|
||||||
// "failure" or "working" status. If this value is empty there
|
// "Failure" or "Working" status. If this value is empty there
|
||||||
// is no information available. A Reason clarifies an HTTP status
|
// is no information available. A Reason clarifies an HTTP status
|
||||||
// code but does not override it.
|
// code but does not override it.
|
||||||
Reason StatusReason `json:"reason,omitempty" yaml:"reason,omitempty"`
|
Reason StatusReason `json:"reason,omitempty" yaml:"reason,omitempty"`
|
||||||
@ -495,9 +495,9 @@ type StatusDetails struct {
|
|||||||
|
|
||||||
// Values of Status.Status
|
// Values of Status.Status
|
||||||
const (
|
const (
|
||||||
StatusSuccess = "success"
|
StatusSuccess = "Success"
|
||||||
StatusFailure = "failure"
|
StatusFailure = "Failure"
|
||||||
StatusWorking = "working"
|
StatusWorking = "Working"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StatusReason is an enumeration of possible failure causes. Each StatusReason
|
// StatusReason is an enumeration of possible failure causes. Each StatusReason
|
||||||
@ -585,7 +585,7 @@ type StatusCause struct {
|
|||||||
|
|
||||||
// CauseType is a machine readable value providing more detail about what
|
// CauseType is a machine readable value providing more detail about what
|
||||||
// occured in a status response. An operation may have multiple causes for a
|
// occured in a status response. An operation may have multiple causes for a
|
||||||
// status (whether failure, success, or working).
|
// status (whether Failure, Success, or Working).
|
||||||
type CauseType string
|
type CauseType string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -471,12 +471,12 @@ func (*Binding) IsAnAPIObject() {}
|
|||||||
// import both.
|
// import both.
|
||||||
type Status struct {
|
type Status struct {
|
||||||
JSONBase `json:",inline" yaml:",inline"`
|
JSONBase `json:",inline" yaml:",inline"`
|
||||||
// One of: "success", "failure", "working" (for operations not yet completed)
|
// One of: "Success", "Failure", "Working" (for operations not yet completed)
|
||||||
Status string `json:"status,omitempty" yaml:"status,omitempty"`
|
Status string `json:"status,omitempty" yaml:"status,omitempty"`
|
||||||
// A human-readable description of the status of this operation.
|
// A human-readable description of the status of this operation.
|
||||||
Message string `json:"message,omitempty" yaml:"message,omitempty"`
|
Message string `json:"message,omitempty" yaml:"message,omitempty"`
|
||||||
// A machine-readable description of why this operation is in the
|
// A machine-readable description of why this operation is in the
|
||||||
// "failure" or "working" status. If this value is empty there
|
// "Failure" or "Working" status. If this value is empty there
|
||||||
// is no information available. A Reason clarifies an HTTP status
|
// is no information available. A Reason clarifies an HTTP status
|
||||||
// code but does not override it.
|
// code but does not override it.
|
||||||
Reason StatusReason `json:"reason,omitempty" yaml:"reason,omitempty"`
|
Reason StatusReason `json:"reason,omitempty" yaml:"reason,omitempty"`
|
||||||
@ -511,9 +511,9 @@ type StatusDetails struct {
|
|||||||
|
|
||||||
// Values of Status.Status
|
// Values of Status.Status
|
||||||
const (
|
const (
|
||||||
StatusSuccess = "success"
|
StatusSuccess = "Success"
|
||||||
StatusFailure = "failure"
|
StatusFailure = "Failure"
|
||||||
StatusWorking = "working"
|
StatusWorking = "Working"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StatusReason is an enumeration of possible failure causes. Each StatusReason
|
// StatusReason is an enumeration of possible failure causes. Each StatusReason
|
||||||
@ -588,7 +588,7 @@ type StatusCause struct {
|
|||||||
|
|
||||||
// CauseType is a machine readable value providing more detail about what
|
// CauseType is a machine readable value providing more detail about what
|
||||||
// occured in a status response. An operation may have multiple causes for a
|
// occured in a status response. An operation may have multiple causes for a
|
||||||
// status (whether failure, success, or working).
|
// status (whether Failure, Success, or Working).
|
||||||
type CauseType string
|
type CauseType string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -468,12 +468,12 @@ func (*Binding) IsAnAPIObject() {}
|
|||||||
// import both.
|
// import both.
|
||||||
type Status struct {
|
type Status struct {
|
||||||
JSONBase `json:",inline" yaml:",inline"`
|
JSONBase `json:",inline" yaml:",inline"`
|
||||||
// One of: "success", "failure", "working" (for operations not yet completed)
|
// One of: "Success", "Failure", "Working" (for operations not yet completed)
|
||||||
Status string `json:"status,omitempty" yaml:"status,omitempty"`
|
Status string `json:"status,omitempty" yaml:"status,omitempty"`
|
||||||
// A human-readable description of the status of this operation.
|
// A human-readable description of the status of this operation.
|
||||||
Message string `json:"message,omitempty" yaml:"message,omitempty"`
|
Message string `json:"message,omitempty" yaml:"message,omitempty"`
|
||||||
// A machine-readable description of why this operation is in the
|
// A machine-readable description of why this operation is in the
|
||||||
// "failure" or "working" status. If this value is empty there
|
// "Failure" or "Working" status. If this value is empty there
|
||||||
// is no information available. A Reason clarifies an HTTP status
|
// is no information available. A Reason clarifies an HTTP status
|
||||||
// code but does not override it.
|
// code but does not override it.
|
||||||
Reason StatusReason `json:"reason,omitempty" yaml:"reason,omitempty"`
|
Reason StatusReason `json:"reason,omitempty" yaml:"reason,omitempty"`
|
||||||
@ -508,9 +508,9 @@ type StatusDetails struct {
|
|||||||
|
|
||||||
// Values of Status.Status
|
// Values of Status.Status
|
||||||
const (
|
const (
|
||||||
StatusSuccess = "success"
|
StatusSuccess = "Success"
|
||||||
StatusFailure = "failure"
|
StatusFailure = "Failure"
|
||||||
StatusWorking = "working"
|
StatusWorking = "Working"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StatusReason is an enumeration of possible failure causes. Each StatusReason
|
// StatusReason is an enumeration of possible failure causes. Each StatusReason
|
||||||
@ -598,7 +598,7 @@ type StatusCause struct {
|
|||||||
|
|
||||||
// CauseType is a machine readable value providing more detail about what
|
// CauseType is a machine readable value providing more detail about what
|
||||||
// occured in a status response. An operation may have multiple causes for a
|
// occured in a status response. An operation may have multiple causes for a
|
||||||
// status (whether failure, success, or working).
|
// status (whether Failure, Success, or Working).
|
||||||
type CauseType string
|
type CauseType string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -464,12 +464,12 @@ func (*Binding) IsAnAPIObject() {}
|
|||||||
// import both.
|
// import both.
|
||||||
type Status struct {
|
type Status struct {
|
||||||
JSONBase `json:",inline" yaml:",inline"`
|
JSONBase `json:",inline" yaml:",inline"`
|
||||||
// One of: "success", "failure", "working" (for operations not yet completed)
|
// One of: "Success", "Failure", "Working" (for operations not yet completed)
|
||||||
Status string `json:"status,omitempty" yaml:"status,omitempty"`
|
Status string `json:"status,omitempty" yaml:"status,omitempty"`
|
||||||
// A human-readable description of the status of this operation.
|
// A human-readable description of the status of this operation.
|
||||||
Message string `json:"message,omitempty" yaml:"message,omitempty"`
|
Message string `json:"message,omitempty" yaml:"message,omitempty"`
|
||||||
// A machine-readable description of why this operation is in the
|
// A machine-readable description of why this operation is in the
|
||||||
// "failure" or "working" status. If this value is empty there
|
// "Failure" or "Working" status. If this value is empty there
|
||||||
// is no information available. A Reason clarifies an HTTP status
|
// is no information available. A Reason clarifies an HTTP status
|
||||||
// code but does not override it.
|
// code but does not override it.
|
||||||
Reason StatusReason `json:"reason,omitempty" yaml:"reason,omitempty"`
|
Reason StatusReason `json:"reason,omitempty" yaml:"reason,omitempty"`
|
||||||
@ -504,9 +504,9 @@ type StatusDetails struct {
|
|||||||
|
|
||||||
// Values of Status.Status
|
// Values of Status.Status
|
||||||
const (
|
const (
|
||||||
StatusSuccess = "success"
|
StatusSuccess = "Success"
|
||||||
StatusFailure = "failure"
|
StatusFailure = "Failure"
|
||||||
StatusWorking = "working"
|
StatusWorking = "Working"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StatusReason is an enumeration of possible failure causes. Each StatusReason
|
// StatusReason is an enumeration of possible failure causes. Each StatusReason
|
||||||
@ -594,7 +594,7 @@ type StatusCause struct {
|
|||||||
|
|
||||||
// CauseType is a machine readable value providing more detail about what
|
// CauseType is a machine readable value providing more detail about what
|
||||||
// occured in a status response. An operation may have multiple causes for a
|
// occured in a status response. An operation may have multiple causes for a
|
||||||
// status (whether failure, success, or working).
|
// status (whether Failure, Success, or Working).
|
||||||
type CauseType string
|
type CauseType string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
Loading…
Reference in New Issue
Block a user