meta

package
v0.0.0-...-48ff17a Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsControlledBy

func IsControlledBy(clusterName string, brokerOwner, childControlled metav1.Object) bool

func SetOwnerReferences

func SetOwnerReferences(obj metav1.Object, refs []OwnerReference)

Types

type ObjectMeta

type ObjectMeta struct {
	OwnerReferences []OwnerReference `json:"ownerReferences,omitempty"`
}

type OwnerReference

type OwnerReference struct {
	ClusterName string    `json:"clusterName"`
	APIVersion  string    `json:"apiVersion"`
	Kind        string    `json:"kind"`
	Namespace   string    `json:"namespace,omitempty"`
	Name        string    `json:"name"`
	UID         types.UID `json:"uid"`
	Controller  *bool     `json:"controller,omitempty"`
}

func GetControllerOf

func GetControllerOf(childControllee metav1.Object) *OwnerReference

func GetOwnerReferences

func GetOwnerReferences(obj metav1.Object) []OwnerReference

Jump to

Keyboard shortcuts

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