Documentation ¶
Index ¶
- Variables
- func AddFinalizer(obj runtime.Object, value string) error
- func DeletionTimestampExists(obj runtime.Object) (bool, error)
- func GetAccessor() meta.MetadataAccessor
- func GetDeletionTimestamp(obj runtime.Object) (*metav1.Time, error)
- func GetFinalizers(obj runtime.Object) ([]string, error)
- func GetNamespace(obj runtime.Object) (string, error)
- func RemoveFinalizer(obj runtime.Object, value string) ([]string, error)
- func SetDeletionTimestamp(obj runtime.Object, t time.Time) error
Constants ¶
This section is empty.
Variables ¶
var ( // ErrNoDeletionTimestamp is the error returned by GetDeletionTimestamp when there is no // deletion timestamp set on the object ErrNoDeletionTimestamp = errors.New("no deletion timestamp set") )
Functions ¶
func AddFinalizer ¶
AddFinalizer adds value to the list of finalizers on obj
func DeletionTimestampExists ¶
DeletionTimestampExists returns true if a deletion timestamp exists on obj, or a non-nil error if that couldn't be reliably determined
func GetAccessor ¶
func GetAccessor() meta.MetadataAccessor
GetAccessor returns a MetadataAccessor to fetch general information on metadata of runtime.Object types
func GetDeletionTimestamp ¶
GetDeletionTimestamp returns the deletion timestamp on obj, or a non-nil error if there was an error getting it or it isn't set. Returns ErrNoDeletionTimestamp if there was none set
func GetFinalizers ¶
GetFinalizers gets the list of finalizers on obj
func GetNamespace ¶
GetNamespace returns the namespace for the given object, if there is one. If not, returns the empty string and a non-nil error
func RemoveFinalizer ¶
RemoveFinalizer removes the given value from the list of finalizers in obj, then returns the list of finalizers after value has been removed. The returned slice will have the same ordering as the list of finalizers that was in obj.
If value doesn't exist in the finalizers in obj, the returned slice is the same as the finalizers that were in obj.
All of the finalizers that match value will be removed from the list in obj.
Types ¶
This section is empty.