ownerutil

package
v3.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 4 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNonBlockingOwner

func AddNonBlockingOwner(object metav1.Object, owner Owner)

AddNonBlockingOwner adds a nonblocking owner to the ownerref list.

func GetOwnerByKind

func GetOwnerByKind(object metav1.Object, ownerKind string) metav1.OwnerReference

func IsOwnedBy

func IsOwnedBy(object metav1.Object, owner Owner) bool

func IsOwnedByKind

func IsOwnedByKind(object metav1.Object, ownerKind string) bool

Types

type Owner

type Owner interface {
	metav1.Object
	schema.ObjectKind
}

Owner is used to build an OwnerReference, and we need type and object metadata

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳