owners

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoSuchOwner = errors.New("no such owner")
)

Functions

This section is empty.

Types

type OwnerManager

type OwnerManager struct {
	// contains filtered or unexported fields
}

func NewOwnerManager

func NewOwnerManager(scheme *runtime.Scheme) *OwnerManager

func (*OwnerManager) CountOwnersOfType added in v0.1.0

func (mgr *OwnerManager) CountOwnersOfType(owner client.Object, obj metav1.Object) (int, error)

func (*OwnerManager) GetScheme added in v0.1.0

func (mgr *OwnerManager) GetScheme() *runtime.Scheme

func (*OwnerManager) HasAnyOwnerOfType added in v0.0.4

func (mgr *OwnerManager) HasAnyOwnerOfType(owner client.Object, obj metav1.Object) (bool, error)

func (*OwnerManager) HasOwner

func (mgr *OwnerManager) HasOwner(owner client.Object, obj metav1.Object) (bool, error)

func (*OwnerManager) OwnersOfType added in v0.1.0

func (mgr *OwnerManager) OwnersOfType(owner client.Object, obj metav1.Object) ([]metav1.OwnerReference, error)

func (*OwnerManager) RemoveOwner added in v0.1.0

func (mgr *OwnerManager) RemoveOwner(owner client.Object, obj metav1.Object) error

func (*OwnerManager) SetOwner

func (mgr *OwnerManager) SetOwner(
	owner client.Object,
	obj metav1.Object,
	options OwnerOptions,
) error

type OwnerOptions

type OwnerOptions int
const (
	BlockOwnerDeletion OwnerOptions = 1 << iota
	Controller
	DefaultOptions OwnerOptions = 0
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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