composed

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 4

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 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) GetCondition

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

GetCondition of this Composed resource.

func (*Unstructured) GetPublishConnectionDetailsTo added in v0.16.0

func (cr *Unstructured) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Composed resource.

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) SetConditions

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

SetConditions of this Composed resource.

func (*Unstructured) SetPublishConnectionDetailsTo added in v0.16.0

func (cr *Unstructured) SetPublishConnectionDetailsTo(ref *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Composed resource.

func (*Unstructured) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Composed resource.

Jump to

Keyboard shortcuts

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