Documentation ¶
Index ¶
- func Error(reason string, err error) error
- type Cond
- func (c Cond) CreateUnknownIfNotExists(obj runtime.Object)
- func (c Cond) Do(obj runtime.Object, f func() (runtime.Object, error)) (runtime.Object, error)
- func (c Cond) DoUntilTrue(obj runtime.Object, f func() (runtime.Object, error)) (runtime.Object, error)
- func (c Cond) False(obj runtime.Object)
- func (c Cond) GetLastUpdated(obj runtime.Object) string
- func (c Cond) GetMessage(obj runtime.Object) string
- func (c Cond) GetReason(obj runtime.Object) string
- func (c Cond) GetStatus(obj runtime.Object) string
- func (c Cond) IsFalse(obj runtime.Object) bool
- func (c Cond) IsTrue(obj runtime.Object) bool
- func (c Cond) IsUnknown(obj runtime.Object) bool
- func (c Cond) LastUpdated(obj runtime.Object, ts string)
- func (c Cond) Message(obj runtime.Object, message string)
- func (c Cond) Once(obj runtime.Object, f func() (runtime.Object, error)) (runtime.Object, error)
- func (c Cond) Reason(obj runtime.Object, reason string)
- func (c Cond) ReasonAndMessageFromError(obj runtime.Object, err error)
- func (c Cond) SetMessageIfBlank(obj runtime.Object, message string)
- func (c Cond) SetStatus(obj runtime.Object, status string)
- func (c Cond) Track(obj runtime.Object, client ObjectClientGetter, ...) (runtime.Object, error)
- func (c Cond) True(obj runtime.Object)
- func (c Cond) Unknown(obj runtime.Object)
- type GenericCondition
- type ObjectClientGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cond ¶
type Cond string
func (Cond) CreateUnknownIfNotExists ¶
func (Cond) DoUntilTrue ¶
func (Cond) ReasonAndMessageFromError ¶
type GenericCondition ¶
type GenericCondition struct { // Type of cluster condition. Type string `json:"type"` // Status of the condition, one of True, False, Unknown. Status v1.ConditionStatus `json:"status"` // The last time this condition was updated. LastUpdateTime string `json:"lastUpdateTime,omitempty"` // Last time the condition transitioned from one status to another. LastTransitionTime string `json:"lastTransitionTime,omitempty"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty"` // Human-readable message indicating details about last transition Message string `json:"message,omitempty"` }
type ObjectClientGetter ¶
type ObjectClientGetter interface {
ObjectClient() *objectclient.ObjectClient
}
Click to show internal directories.
Click to hide internal directories.