composed

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Overview

Package composed contains an unstructured composed resource.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListOption

type ListOption func(*UnstructuredList)

An ListOption modifies an unstructured list of composed resource.

func FromReferenceToList

func FromReferenceToList(ref corev1.ObjectReference) ListOption

FromReferenceToList returns a ListOption that propagates the metadata in the supplied reference to an unstructured list composed resource.

type Option

type Option func(resource *Unstructured)

An Option modifies an unstructured composed resource.

func FromReference

func FromReference(ref corev1.ObjectReference) Option

FromReference returns an Option that propagates the metadata in the supplied reference to an unstructured composed resource.

func WithConditions

func WithConditions(c ...xpv1.Condition) Option

WithConditions returns an Option that sets the supplied conditions on an unstructured composed resource.

type Unstructured

type Unstructured struct {
	unstructured.Unstructured
}

An Unstructured composed resource.

func New

func New(opts ...Option) *Unstructured

New returns a new unstructured composed resource.

func (*Unstructured) DeepCopy

func (in *Unstructured) DeepCopy() *Unstructured

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Unstructured.

func (*Unstructured) DeepCopyInto

func (in *Unstructured) DeepCopyInto(out *Unstructured)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Unstructured) DeepCopyObject

func (in *Unstructured) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Unstructured) GetCondition

func (cr *Unstructured) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Composed resource.

func (*Unstructured) GetObservedGeneration

func (cr *Unstructured) GetObservedGeneration() int64

GetObservedGeneration of this composite resource claim.

func (*Unstructured) GetUnstructured

func (cr *Unstructured) GetUnstructured() *unstructured.Unstructured

GetUnstructured returns the underlying *unstructured.Unstructured.

func (*Unstructured) GetWriteConnectionSecretToReference

func (cr *Unstructured) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Composed resource.

func (*Unstructured) OwnedBy

func (cr *Unstructured) OwnedBy(u types.UID) bool

OwnedBy returns true if the supplied UID is an owner of the composed.

func (*Unstructured) RemoveOwnerRef

func (cr *Unstructured) RemoveOwnerRef(u types.UID)

RemoveOwnerRef removes the supplied UID from the composed resource's owner.

func (*Unstructured) SetConditions

func (cr *Unstructured) SetConditions(c ...xpv1.Condition)

SetConditions of this Composed resource.

func (*Unstructured) SetObservedGeneration

func (cr *Unstructured) SetObservedGeneration(generation int64)

SetObservedGeneration of this composite resource claim.

func (*Unstructured) SetWriteConnectionSecretToReference

func (cr *Unstructured) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Composed resource.

type UnstructuredList

type UnstructuredList struct {
	unstructured.UnstructuredList
}

An UnstructuredList of composed resources.

func NewList

func NewList(opts ...ListOption) *UnstructuredList

NewList returns a new unstructured list of composed resources.

func (*UnstructuredList) GetUnstructuredList

func (cr *UnstructuredList) GetUnstructuredList() *unstructured.UnstructuredList

GetUnstructuredList returns the underlying *unstructured.Unstructured.

Jump to

Keyboard shortcuts

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