Documentation ¶
Index ¶
- func AddFinalizer(obj metav1.Object, name string)
- func GetObservedGeneration(obj map[string]interface{}) int64
- func HasFinalizer(obj metav1.Object, name string) bool
- func RemoveFinalizer(obj metav1.Object, name string)
- func SetCondition(status map[string]interface{}, condition *StatusCondition)
- func SetStatusCondition(obj map[string]interface{}, condition *StatusCondition)
- type StatusCondition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFinalizer ¶ added in v0.3.0
AddFinalizer adds the named finalizer to obj, if it isn't already present.
func GetObservedGeneration ¶
func HasFinalizer ¶ added in v0.3.0
HasFinalizer returns true if obj has the named finalizer.
func RemoveFinalizer ¶ added in v0.3.0
RemoveFinalizer removes the named finalizer from obj, if it's present.
func SetCondition ¶
func SetCondition(status map[string]interface{}, condition *StatusCondition)
func SetStatusCondition ¶
func SetStatusCondition(obj map[string]interface{}, condition *StatusCondition)
Types ¶
type StatusCondition ¶
type StatusCondition struct { Type string `json:"type"` Status string `json:"status"` Reason string `json:"reason,omitempty"` Message string `json:"message,omitempty"` }
func GetStatusCondition ¶
func GetStatusCondition(obj map[string]interface{}, conditionType string) *StatusCondition
func NewStatusCondition ¶
func NewStatusCondition(obj map[string]interface{}) *StatusCondition
func (*StatusCondition) Object ¶
func (c *StatusCondition) Object() map[string]interface{}
Click to show internal directories.
Click to hide internal directories.