v1

package
v0.0.0-...-68b9a9d Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Group   = "templates.krateo.io"
	Version = "v1"
)

Package type metadata.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

This section is empty.

Types

type API

type API struct {
	// Name is a (unique) identifier
	Name string `json:"name"`
	// Path is the request URI path
	Path string `json:"path,omitempty"`
	// Verb is the request method (GET if omitted)
	Verb *string `json:"verb,omitempty"`
	//+listType=atomic
	// Headers is an array of custom request headers
	Headers []string `json:"headers,omitempty"`
	// Payload is the request body
	Payload *string `json:"payload,omitempty"`
	// EndpointRef a reference to an Endpoint
	EndpointRef *Reference `json:"endpointRef,omitempty"`
	// DependsOn reference to another API on which this depends
	DependsOn *Dependency `json:"dependsOn,omitempty"`

	Filter *string `json:"filter,omitempty"`

	ContinueOnError *bool `json:"continueOnError,omitempty"`

	ErrorKey *string `json:"errorKey,omitempty"`

	ExportJWT *bool `json:"exportJwt,omitempty"`
}

API represents a request to an HTTP service

func (*API) DeepCopy

func (in *API) DeepCopy() *API

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

func (*API) DeepCopyInto

func (in *API) DeepCopyInto(out *API)

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

type Data

type Data struct {
	// Name of the data
	Name string `json:"name"`
	// Value of the data. Can be also a JQ expression.
	Value string `json:"value,omitempty"`
	// AsString if true the value will be considered verbatim as string.
	AsString *bool `json:"asString,omitempty"`
}

Data is a key value pair.

func (*Data) DeepCopy

func (in *Data) DeepCopy() *Data

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

func (*Data) DeepCopyInto

func (in *Data) DeepCopyInto(out *Data)

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

type Dependency

type Dependency struct {
	// Name of another API on which this depends
	Name string `json:"name"`
	// Iterator defines a field on which iterate.
	Iterator *string `json:"iterator,omitempty"`
}

Dependency reference to the identifier of another API on which this depends

func (*Dependency) DeepCopy

func (in *Dependency) DeepCopy() *Dependency

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

func (*Dependency) DeepCopyInto

func (in *Dependency) DeepCopyInto(out *Dependency)

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

type ObjectReference

type ObjectReference struct {
	Reference  `json:",inline"`
	Resource   string `json:"resource,omitempty"`
	APIVersion string `json:"apiVersion,omitempty"`
}

ObjectReference is a reference to a named object in a specified namespace.

func (*ObjectReference) DeepCopy

func (in *ObjectReference) DeepCopy() *ObjectReference

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

func (*ObjectReference) DeepCopyInto

func (in *ObjectReference) DeepCopyInto(out *ObjectReference)

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

type RESTAction

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

	Spec   RESTActionSpec        `json:"spec"`
	Status *runtime.RawExtension `json:"status,omitempty"`
}

RESTAction allows users to declaratively define calls to APIs that may in turn depend on other calls.

func (*RESTAction) DeepCopy

func (in *RESTAction) DeepCopy() *RESTAction

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

func (*RESTAction) DeepCopyInto

func (in *RESTAction) DeepCopyInto(out *RESTAction)

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

func (*RESTAction) DeepCopyObject

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

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

type RESTActionList

type RESTActionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []RESTAction `json:"items"`
}

RESTActionList contains a list of RESTAction

func (*RESTActionList) DeepCopy

func (in *RESTActionList) DeepCopy() *RESTActionList

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

func (*RESTActionList) DeepCopyInto

func (in *RESTActionList) DeepCopyInto(out *RESTActionList)

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

func (*RESTActionList) DeepCopyObject

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

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

type RESTActionSpec

type RESTActionSpec struct {
	//+listType=atomic
	API    []*API  `json:"api,omitempty"`
	Filter *string `json:"filter,omitempty"`
}

RESTActionSpec defines the api handler specifications.

func (*RESTActionSpec) DeepCopy

func (in *RESTActionSpec) DeepCopy() *RESTActionSpec

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

func (*RESTActionSpec) DeepCopyInto

func (in *RESTActionSpec) DeepCopyInto(out *RESTActionSpec)

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

type Reference

type Reference struct {
	// Name of the referenced object.
	Name string `json:"name"`
	// Namespace of the referenced object.
	Namespace string `json:"namespace"`
}

Reference to a named object.

func (*Reference) DeepCopy

func (in *Reference) DeepCopy() *Reference

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

func (*Reference) DeepCopyInto

func (in *Reference) DeepCopyInto(out *Reference)

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

type ResourceRef

type ResourceRef struct {
	// ID for the action.
	ID string `json:"id,omitempty"`
	// Name of the related resource.
	Name string `json:"name,omitempty"`
	// Namespace of the related resource.
	Namespace string `json:"namespace,omitempty"`
	// Resource on which the action will act.
	Resource string `json:"resource,omitempty"`
	// APIVersion for the related resource
	APIVersion string `json:"apiVersion,omitempty"`
	// Verb is the HTTP request verb.
	Verb string `json:"verb,omitempty"`
	// Slice is used for pagination
	Slice *Slice `json:"slice,omitempty"`
}

ResourceRef defines a template for an action.

func (*ResourceRef) DeepCopy

func (in *ResourceRef) DeepCopy() *ResourceRef

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

func (*ResourceRef) DeepCopyInto

func (in *ResourceRef) DeepCopyInto(out *ResourceRef)

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

type ResourceRefPayload

type ResourceRefPayload struct {
	Kind       string     `json:"kind,omitempty"`
	APIVersion string     `json:"apiVersion,omitempty"`
	MetaData   *Reference `json:"metadata,omitempty"`
}

ResourceRefPayload is the template action result payload.

func (*ResourceRefPayload) DeepCopy

func (in *ResourceRefPayload) DeepCopy() *ResourceRefPayload

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

func (*ResourceRefPayload) DeepCopyInto

func (in *ResourceRefPayload) DeepCopyInto(out *ResourceRefPayload)

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

type ResourceRefResult

type ResourceRefResult struct {
	// ID of this action.
	ID string `json:"id,omitempty"`
	// Path is the HTTP request path.
	Path string `json:"path,omitempty"`
	// Verb is the HTTP request verb.
	Verb string `json:"verb,omitempty"`
	// Payload the payload for the action result
	Payload *ResourceRefPayload `json:"payload,omitempty"`
	// Allowed is this resource reference allowed (or not) for the user
	Allowed bool `json:"allowed"`
}

ResourceRefResult defines the action result after evaluating a template.

func (*ResourceRefResult) DeepCopy

func (in *ResourceRefResult) DeepCopy() *ResourceRefResult

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

func (*ResourceRefResult) DeepCopyInto

func (in *ResourceRefResult) DeepCopyInto(out *ResourceRefResult)

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

type ResourceRefTemplate

type ResourceRefTemplate struct {
	// Iterator defines a field on which iterate.
	Iterator *string `json:"iterator,omitempty"`
	// Template defines the template for a resource reference.
	Template ResourceRef `json:"template,omitempty"`
}

ResourceRefTemplateItem defines a single resource reference template.

func (*ResourceRefTemplate) DeepCopy

func (in *ResourceRefTemplate) DeepCopy() *ResourceRefTemplate

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

func (*ResourceRefTemplate) DeepCopyInto

func (in *ResourceRefTemplate) DeepCopyInto(out *ResourceRefTemplate)

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

type Slice

type Slice struct {
	Continue bool
	Offset   int
	Page     int
	PerPage  int
}

func (*Slice) DeepCopy

func (in *Slice) DeepCopy() *Slice

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

func (*Slice) DeepCopyInto

func (in *Slice) DeepCopyInto(out *Slice)

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

type WidgetDataTemplate

type WidgetDataTemplate struct {
	ForPath    string `json:"forPath"`
	Expression string `json:"expression"`
}

func (*WidgetDataTemplate) DeepCopy

func (in *WidgetDataTemplate) DeepCopy() *WidgetDataTemplate

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

func (*WidgetDataTemplate) DeepCopyInto

func (in *WidgetDataTemplate) DeepCopyInto(out *WidgetDataTemplate)

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