action

package
v0.0.0-...-bb91830 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	Do(context.Context, client.Client, *runtime.Scheme, ownership.OwnerManager) error
	GetObject() client.Object
	GetOwner() api.NaisObject
}

func Claim

func Claim(obj client.Object, owner api.NaisObject, conditionGetter ConditionGetter, recorder events.Recorder) Action

func Create

func Create(obj client.Object, owner api.NaisObject, conditionGetter ConditionGetter, recorder events.Recorder) Action

func CreateIfNotExists

func CreateIfNotExists(obj client.Object, owner api.NaisObject, conditionGetter ConditionGetter, recorder events.Recorder) Action

func CreateOrUpdate

func CreateOrUpdate(obj client.Object, owner api.NaisObject, conditionGetter ConditionGetter, recorder events.Recorder) Action

func DeleteIfExists

func DeleteIfExists(obj client.Object, owner api.NaisObject, conditionGetter ConditionGetter, recorder events.Recorder) Action

func NoOp

func NoOp(obj client.Object, owner api.NaisObject, conditionGetter ConditionGetter, recorder events.Recorder) Action

func Recreate

func Recreate(obj client.Object, owner api.NaisObject, conditionGetter ConditionGetter, recorder events.Recorder) Action

func Unclaim

func Unclaim(obj client.Object, owner api.NaisObject, conditionGetter ConditionGetter, recorder events.Recorder) Action

func Update

func Update(obj client.Object, owner api.NaisObject, conditionGetter ConditionGetter, recorder events.Recorder) Action

type ConditionGetter

type ConditionGetter func(obj client.Object, scheme *runtime.Scheme) []meta_v1.Condition

Jump to

Keyboard shortcuts

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