Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsControlledBy ¶
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
Click to show internal directories.
Click to hide internal directories.