finalizers

package
v0.1.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFinalizer

func AddFinalizer(obj Finalizer, finalizer string) []string

AddFinalizer is a helper function to add a finalizer

func HasFinalizer

func HasFinalizer(obj Finalizer, finalizer string) bool

HasFinalizer is a helper function to check if a finalizer is present

func RemoveFinalizer

func RemoveFinalizer(obj Finalizer, finalizer string) []string

RemoveFinalizer is a helper function to remove a finalizer

Types

type Finalizer

type Finalizer interface {
	GetFinalizers() []string
}

Finalizer is an interface that can be used to add, remove and check for

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL