reference

package
v0.0.0-...-25f5b1c Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRequests

func GetRequests(a client.Object, migrationNamespace string, source interface{}) []reconcile.Request

func RefEquals

func RefEquals(refA, refB *kapi.ObjectReference) bool

func RefSet

func RefSet(ref *kapi.ObjectReference) bool

func ToKind

func ToKind(resource interface{}) string

Types

type MigrationNamespacePredicate

type MigrationNamespacePredicate struct {
	predicate.Funcs
	Namespace string
}

func (MigrationNamespacePredicate) Create

func (MigrationNamespacePredicate) Delete

func (MigrationNamespacePredicate) Update

type RefMap

type RefMap struct {
	Content map[RefTarget][]RefOwner
	// contains filtered or unexported fields
}

A 1-n mapping of RefTarget => [RefOwner, ...].

func GetMap

func GetMap() *RefMap

Get the singleton.

func (*RefMap) Add

func (r *RefMap) Add(refOwner RefOwner, refTarget RefTarget)

Add mapping of a ref-owner to a ref-target.

func (*RefMap) Delete

func (r *RefMap) Delete(refOwner RefOwner, refTarget RefTarget)

Delete mapping of a ref-owner to a ref-target.

func (*RefMap) Find

func (r *RefMap) Find(refTarget RefTarget, refOwner RefOwner) []RefOwner

Find all refOwners for a refTarget.

type RefOwner

type RefOwner kapi.ObjectReference

A resource that contains an ObjectReference.

type RefTarget

type RefTarget kapi.ObjectReference

The resource that is the target of an ObjectReference.

Jump to

Keyboard shortcuts

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