requirement

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package requirement contains an unstructured resource requirement.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Unstructured)

An Option modifies an unstructured resource requirement.

func WithConditions

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

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

func WithGroupVersionKind

func WithGroupVersionKind(gvk schema.GroupVersionKind) Option

WithGroupVersionKind sets the GroupVersionKind of the unstructured resource requirement.

type Unstructured

type Unstructured struct {
	unstructured.Unstructured
}

An Unstructured resource requirement.

func New

func New(opts ...Option) *Unstructured

New returns a new unstructured resource requirement.

func (*Unstructured) GetCompositionReference

func (c *Unstructured) GetCompositionReference() *corev1.ObjectReference

GetCompositionReference of this resource Requirement.

func (*Unstructured) GetCompositionSelector

func (c *Unstructured) GetCompositionSelector() *metav1.LabelSelector

GetCompositionSelector of this resource Requirement.

func (*Unstructured) GetCondition

GetCondition of this Requirement.

func (*Unstructured) GetResourceReference

func (c *Unstructured) GetResourceReference() *corev1.ObjectReference

GetResourceReference of this resource Requirement.

func (*Unstructured) GetUnstructured

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

GetUnstructured returns the underlying *unstructured.Unstructured.

func (*Unstructured) GetWriteConnectionSecretToReference

func (c *Unstructured) GetWriteConnectionSecretToReference() *v1alpha1.LocalSecretReference

GetWriteConnectionSecretToReference of this resource Requirement.

func (*Unstructured) SetCompositionReference

func (c *Unstructured) SetCompositionReference(ref *corev1.ObjectReference)

SetCompositionReference of this resource Requirement.

func (*Unstructured) SetCompositionSelector

func (c *Unstructured) SetCompositionSelector(sel *metav1.LabelSelector)

SetCompositionSelector of this resource Requirement.

func (*Unstructured) SetConditions

func (c *Unstructured) SetConditions(conditions ...v1alpha1.Condition)

SetConditions of this Requirement.

func (*Unstructured) SetResourceReference

func (c *Unstructured) SetResourceReference(ref *corev1.ObjectReference)

SetResourceReference of this resource Requirement.

func (*Unstructured) SetWriteConnectionSecretToReference

func (c *Unstructured) SetWriteConnectionSecretToReference(ref *v1alpha1.LocalSecretReference)

SetWriteConnectionSecretToReference of this resource Requirement.

Jump to

Keyboard shortcuts

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