finalizer

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client = client.Client

type Context

type Context = context.Context

type Finalizer

type Finalizer interface {
	Execute(Context, Client, Object) (bool, error)
}

Finalizer possibly executes a finalier on a resource.

func New

func New(n string, e ...func() error) Finalizer

New configures a finalizer given a name and a cleanup function.

If there are many on a specific resource it may be useful to have them be a list/queue instead of a single one.

type Object

type Object = client.Object

Jump to

Keyboard shortcuts

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