v1beta1

package
v0.0.0-...-ca35168 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1beta1 contains the input type for this Function +kubebuilder:object:generate=true +groupName=template.fn.crossplane.io +versionName=v1beta1

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// +optional
	TagFilters []TagFilter `json:"tagFilters,omitempty"`
}

Input can be used to provide input to this Function. +kubebuilder:object:root=true +kubebuilder:storageversion +kubebuilder:resource:categories=crossplane

func (*Input) DeepCopy

func (in *Input) DeepCopy() *Input

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

func (*Input) DeepCopyInto

func (in *Input) DeepCopyInto(out *Input)

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

func (*Input) DeepCopyObject

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

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

func (*Input) ResolveTagFilters

func (in *Input) ResolveTagFilters(xr *resource.Composite) ([]types.TagFilter, error)

func (*Input) Validate

func (in *Input) Validate() error

type Strategy

type Strategy string
const (
	// StrategyValue represents a static value that should be used when filtering
	StrategyValue Strategy = "value"
	// StrategyValuePath represents a dynamic value that will be resolved from the given path on the XR
	StrategyValuePath Strategy = "valuePath"
)

type TagFilter

type TagFilter struct {
	Key string `json:"key"`
	// +kubebuilder:validation:Enum=value;valuePath
	Strategy Strategy `json:"strategy"`
	// +optional
	Value string `json:"value,omitempty"`
	// +optional
	ValuePath string `json:"valuePath,omitempty"`
}

func (*TagFilter) DeepCopy

func (in *TagFilter) DeepCopy() *TagFilter

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

func (*TagFilter) DeepCopyInto

func (in *TagFilter) DeepCopyInto(out *TagFilter)

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

Jump to

Keyboard shortcuts

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