Versions in this module Expand all Collapse all v0 v0.0.8 Sep 21, 2021 Changes in this version + const DefaultLastTransitionTimeField + const DefaultLastUpdateTimeField + const DefaultMessageField + const DefaultObservedGenerationField + const DefaultReasonField + const DefaultStatusField + const DefaultTypeField + var DefaultAccessor = NewAccessor(AccessorOptions{}) + var FindSlice = DefaultAccessor.FindSlice + var FindSliceStatus = DefaultAccessor.FindSliceStatus + var MustFindSlice = DefaultAccessor.MustFindSlice + var MustFindSliceStatus = DefaultAccessor.MustFindSliceStatus + var MustUpdate = DefaultAccessor.MustUpdate + var MustUpdateSlice = DefaultAccessor.MustUpdateSlice + var Update = DefaultAccessor.Update + var UpdateSlice = DefaultAccessor.UpdateSlice + type Accessor struct + func NewAccessor(opts AccessorOptions) *Accessor + func (a *Accessor) FindSlice(condSlice interface{}, typ string, intoPtr interface{}) (ok bool, err error) + func (a *Accessor) FindSliceStatus(condSlice interface{}, typ string) (corev1.ConditionStatus, error) + func (a *Accessor) HasLastTransitionTime(cond interface{}) (bool, error) + func (a *Accessor) HasLastUpdateTime(cond interface{}) (bool, error) + func (a *Accessor) HasObservedGeneration(cond interface{}) (bool, error) + func (a *Accessor) LastTransitionTime(cond interface{}) (metav1.Time, error) + func (a *Accessor) LastUpdateTime(cond interface{}) (metav1.Time, error) + func (a *Accessor) Message(cond interface{}) (string, error) + func (a *Accessor) MustFindSlice(condSlice interface{}, typ string, intoPtr interface{}) bool + func (a *Accessor) MustFindSliceStatus(condSlice interface{}, typ string) corev1.ConditionStatus + func (a *Accessor) MustHasLastTransitionTime(cond interface{}) bool + func (a *Accessor) MustHasLastUpdateTime(cond interface{}) bool + func (a *Accessor) MustHasObservedGeneration(cond interface{}) bool + func (a *Accessor) MustLastTransitionTime(cond interface{}) metav1.Time + func (a *Accessor) MustLastUpdateTime(cond interface{}) metav1.Time + func (a *Accessor) MustMessage(cond interface{}) string + func (a *Accessor) MustObservedGeneration(cond interface{}) int64 + func (a *Accessor) MustReason(cond interface{}) string + func (a *Accessor) MustSetLastTransitionTime(condPtr interface{}, lastTransitionTime metav1.Time) + func (a *Accessor) MustSetLastTransitionTimeIfExists(condPtr interface{}, lastTransitionTime metav1.Time) + func (a *Accessor) MustSetLastUpdateTime(condPtr interface{}, lastUpdateTime metav1.Time) + func (a *Accessor) MustSetLastUpdateTimeIfExists(condPtr interface{}, lastUpdateTime metav1.Time) + func (a *Accessor) MustSetMessage(condPtr interface{}, message string) + func (a *Accessor) MustSetObservedGeneration(condPtr interface{}, gen int64) + func (a *Accessor) MustSetReason(condPtr interface{}, reason string) + func (a *Accessor) MustSetStatus(condPtr interface{}, status corev1.ConditionStatus) + func (a *Accessor) MustSetType(condPtr interface{}, typ string) + func (a *Accessor) MustStatus(cond interface{}) corev1.ConditionStatus + func (a *Accessor) MustType(cond interface{}) string + func (a *Accessor) MustUpdate(condPtr interface{}, opts ...UpdateOption) + func (a *Accessor) MustUpdateSlice(condSlicePtr interface{}, typ string, opts ...UpdateOption) + func (a *Accessor) ObservedGeneration(cond interface{}) (int64, error) + func (a *Accessor) Reason(cond interface{}) (string, error) + func (a *Accessor) SetLastTransitionTime(condPtr interface{}, lastTransitionTime metav1.Time) error + func (a *Accessor) SetLastTransitionTimeIfExists(condPtr interface{}, lastTransitionTime metav1.Time) error + func (a *Accessor) SetLastUpdateTime(condPtr interface{}, lastUpdateTime metav1.Time) error + func (a *Accessor) SetLastUpdateTimeIfExists(condPtr interface{}, lastUpdateTime metav1.Time) error + func (a *Accessor) SetMessage(condPtr interface{}, message string) error + func (a *Accessor) SetObservedGeneration(condPtr interface{}, gen int64) error + func (a *Accessor) SetReason(condPtr interface{}, reason string) error + func (a *Accessor) SetStatus(condPtr interface{}, status corev1.ConditionStatus) error + func (a *Accessor) SetType(condPtr interface{}, typ string) error + func (a *Accessor) Status(cond interface{}) (corev1.ConditionStatus, error) + func (a *Accessor) Type(cond interface{}) (string, error) + func (a *Accessor) Update(condPtr interface{}, opts ...UpdateOption) error + func (a *Accessor) UpdateSlice(condSlicePtr interface{}, typ string, opts ...UpdateOption) error + type AccessorOptions struct + Clock clock.Clock + LastTransitionTimeField string + LastUpdateTimeField string + MessageField string + ObservedGenerationField string + ReasonField string + StatusField string + TypeField string + func (o *AccessorOptions) SetDefaults() + type UpdateMessage string + func (u UpdateMessage) ApplyUpdate(a *Accessor, condPtr interface{}) error + type UpdateObservedGeneration int64 + func UpdateObserved(obj metav1.Object) UpdateObservedGeneration + func (u UpdateObservedGeneration) ApplyUpdate(a *Accessor, condPtr interface{}) error + type UpdateOption interface + ApplyUpdate func(a *Accessor, condPtr interface{}) error + type UpdateReason string + func (u UpdateReason) ApplyUpdate(a *Accessor, condPtr interface{}) error + type UpdateStatus corev1.ConditionStatus + func (u UpdateStatus) ApplyUpdate(a *Accessor, condPtr interface{}) error