v1beta1

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Overview

Package v1beta1 contains the input type for the cue function runner. +kubebuilder:object:generate=true +groupName=cue.fn.crossplane.io +versionName=v1beta1

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CueFunctionParams

type CueFunctionParams struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// Spec is the input spec for the function.
	Spec CueInputSpec `json:"spec"`
}

CueFunctionParams can be used to provide input to the cue function runner. +kubebuilder:object:root=true +kubebuilder:storageversion +kubebuilder:resource:categories=crossplane

func (*CueFunctionParams) DeepCopy

func (in *CueFunctionParams) DeepCopy() *CueFunctionParams

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

func (*CueFunctionParams) DeepCopyInto

func (in *CueFunctionParams) DeepCopyInto(out *CueFunctionParams)

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

func (*CueFunctionParams) DeepCopyObject

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

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

type CueInputSpec

type CueInputSpec struct {
	// Source of this script. Currently only Inline is supported.
	// +kubebuilder:validation:Enum=Inline
	// +kubebuilder:default=Inline
	Source ScriptSource `json:"source"`
	// Script specifies an inline script
	// +optional
	Script string `json:"script,omitempty"`
	// Debug prints inputs to and outputs of the cue script.
	// Inputs are pre-processed to remove typically irrelevant information like
	// the last applied kubectl annotation, managed fields etc.
	// Objects are displayed in compact cue format. (the equivalent of `cue fmt -s`)
	// +optional
	Debug bool `json:"debug,omitempty"`
	// DebugRaw disables the pre-processing of inputs.
	// +optional
	DebugRaw bool `json:"debugRaw,omitempty"`
	// DebugScript displays the full generated script that is executed.
	// +optional
	DebugScript bool `json:"debugScript,omitempty"`
}

CueInputSpec is the spec for running a cue script.

func (*CueInputSpec) DeepCopy

func (in *CueInputSpec) DeepCopy() *CueInputSpec

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

func (*CueInputSpec) DeepCopyInto

func (in *CueInputSpec) DeepCopyInto(out *CueInputSpec)

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

type ScriptSource

type ScriptSource string

A ScriptSource is a source from which a script can be loaded.

const (
	// ScriptSourceInline specifies a script inline.
	ScriptSourceInline ScriptSource = "Inline"
)

Supported script sources.

Jump to

Keyboard shortcuts

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