v1beta1

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 2 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Delims added in v0.4.0

type Delims struct {
	// Template start characters
	// +kubebuilder:default:="{{"
	// +optional
	Left *string `json:"left,omitempty"`
	// Template end characters
	// +kubebuilder:default:="}}"
	// +optional
	Right *string `json:"right,omitempty"`
}

Delims defines the structure for customizing template delimiters.

func (*Delims) DeepCopy added in v0.4.0

func (in *Delims) DeepCopy() *Delims

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

func (*Delims) DeepCopyInto added in v0.4.0

func (in *Delims) DeepCopyInto(out *Delims)

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

type GoTemplate added in v0.2.2

type GoTemplate struct {
	metav1.TypeMeta `json:",inline"`

	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Template delimiters
	// +optional
	Delims *Delims `json:"delims,omitempty"`
	// Source specifies the different types of input sources that can be used with this function
	Source TemplateSource `json:"source"`
	// Inline is the inline form input of the templates
	Inline *TemplateSourceInline `json:"inline,omitempty"`
	// FileSystem is the folder path where the templates are located
	FileSystem *TemplateSourceFileSystem `json:"fileSystem,omitempty"`
	// TTL for which a response can be cached in time.Duration format
	// +kubebuilder:default="1m0s"
	// +optional
	TTL string `json:"ttl"`
	// Environment is the key that defines the location of the templates in the environment
	Environment *TemplateSourceEnvironment `json:"environment,omitempty"`
	// Options to set for the template engine. Valid options are documented at https://pkg.go.dev/text/template#Template.Option
	Options *[]string `json:"options,omitempty"`
}

A GoTemplate is used to provide templates to this Function. +kubebuilder:object:root=true +kubebuilder:storageversion +kubebuilder:resource:categories=crossplane

func (*GoTemplate) DeepCopy added in v0.2.2

func (in *GoTemplate) DeepCopy() *GoTemplate

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

func (*GoTemplate) DeepCopyInto added in v0.2.2

func (in *GoTemplate) DeepCopyInto(out *GoTemplate)

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

func (*GoTemplate) DeepCopyObject added in v0.2.2

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

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

type TemplateSource added in v0.2.2

type TemplateSource string

TemplateSource defines the location of the source template.

const (
	// InlineSource indicates that function will get its input as inline.
	InlineSource TemplateSource = "Inline"

	// FileSystemSource indicates that function will get its input from a folder.
	FileSystemSource TemplateSource = "FileSystem"

	// EnvironmentSource indicates that function will get its input from the environment.
	EnvironmentSource TemplateSource = "Environment"
)

type TemplateSourceEnvironment added in v0.11.0

type TemplateSourceEnvironment struct {
	Key string `json:"key,omitempty"`
}

TemplateSourceEnvironment defines the structure of the environment source.

func (*TemplateSourceEnvironment) DeepCopy added in v0.11.0

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

func (*TemplateSourceEnvironment) DeepCopyInto added in v0.11.0

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

type TemplateSourceFileSystem added in v0.2.2

type TemplateSourceFileSystem struct {
	DirPath string `json:"dirPath,omitempty"`
}

TemplateSourceFileSystem defines the structure of the filesystem source.

func (*TemplateSourceFileSystem) DeepCopy added in v0.2.2

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

func (*TemplateSourceFileSystem) DeepCopyInto added in v0.2.2

func (in *TemplateSourceFileSystem) DeepCopyInto(out *TemplateSourceFileSystem)

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

type TemplateSourceInline added in v0.2.2

type TemplateSourceInline struct {
	Template  string   `json:"template,omitempty"`
	Templates []string `json:"templates,omitempty"`
}

TemplateSourceInline defines the structure of the inline source. Allows specifying either a single inline template or multiple templates, but not both. +kubebuilder:validation:XValidation:rule="(has(self.template) ? 1 : 0) + (has(self.templates) ? 1 : 0) == 1",message="Exactly one of 'template' or 'templates' must be set"

func (*TemplateSourceInline) DeepCopy added in v0.2.2

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

func (*TemplateSourceInline) DeepCopyInto added in v0.2.2

func (in *TemplateSourceInline) DeepCopyInto(out *TemplateSourceInline)

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