v1alpha1

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the flow/v1alpha1 API group.

+k8s:deepcopy-gen=package +groupName=flow.triggermesh.io

Index

Constants

View Source
const (
	// TransformationConditionReady is set when the revision is starting to materialize
	// runtime resources, and becomes true when those resources are ready.
	TransformationConditionReady = apis.ConditionReady
)

Variables

View Source
var (
	// SchemeBuilder creates a Scheme builder that is used to register types for this custom API.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme registers the types stored in SchemeBuilder.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: flow.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Path

type Path struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

Path is a key-value pair that represents JSON object path

func (*Path) DeepCopy

func (in *Path) DeepCopy() *Path

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

func (*Path) DeepCopyInto

func (in *Path) DeepCopyInto(out *Path)

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

type Transform

type Transform struct {
	Operation string `json:"operation"`
	Paths     []Path `json:"paths"`
}

Transform describes transformation schemes for different CE types.

func (*Transform) DeepCopy

func (in *Transform) DeepCopy() *Transform

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

func (*Transform) DeepCopyInto

func (in *Transform) DeepCopyInto(out *Transform)

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

type Transformation

type Transformation struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec holds the desired state of the Transformation (from the client).
	// +optional
	Spec TransformationSpec `json:"spec,omitempty"`

	// Status communicates the observed state of the Transformation (from the controller).
	// +optional
	Status TransformationStatus `json:"status,omitempty"`
}

Transformation is a Knative abstraction that encapsulates the interface by which Knative components express a desire to have a particular image cached.

func (*Transformation) DeepCopy

func (in *Transformation) DeepCopy() *Transformation

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

func (*Transformation) DeepCopyInto

func (in *Transformation) DeepCopyInto(out *Transformation)

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

func (*Transformation) DeepCopyObject

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

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

func (*Transformation) GetConditionSet

func (t *Transformation) GetConditionSet() apis.ConditionSet

GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.

func (*Transformation) GetGroupVersionKind

func (t *Transformation) GetGroupVersionKind() schema.GroupVersionKind

GetGroupVersionKind implements kmeta.OwnerRefable

func (*Transformation) GetStatus

func (t *Transformation) GetStatus() *duckv1.Status

GetStatus retrieves the status of the resource. Implements the KRShaped interface.

func (*Transformation) SetDefaults

func (t *Transformation) SetDefaults(ctx context.Context)

SetDefaults implements apis.Defaultable

func (*Transformation) Validate

func (t *Transformation) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

type TransformationList

type TransformationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Transformation `json:"items"`
}

TransformationList is a list of Transformation resources

func (*TransformationList) DeepCopy

func (in *TransformationList) DeepCopy() *TransformationList

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

func (*TransformationList) DeepCopyInto

func (in *TransformationList) DeepCopyInto(out *TransformationList)

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

func (*TransformationList) DeepCopyObject

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

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

type TransformationSpec

type TransformationSpec struct {
	// Sink is a reference to an object that will resolve to a uri to use as the sink.
	Sink duckv1.Destination `json:"sink,omitempty"`
	// Context contains Transformations that must be applied on CE Context
	Context []Transform `json:"context,omitempty"`
	// Data contains Transformations that must be applied on CE Data
	Data []Transform `json:"data,omitempty"`
}

TransformationSpec holds the desired state of the Transformation (from the client).

func (*TransformationSpec) DeepCopy

func (in *TransformationSpec) DeepCopy() *TransformationSpec

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

func (*TransformationSpec) DeepCopyInto

func (in *TransformationSpec) DeepCopyInto(out *TransformationSpec)

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

func (*TransformationSpec) Validate

func (ts *TransformationSpec) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

type TransformationStatus

type TransformationStatus struct {
	duckv1.SourceStatus `json:",inline"`

	// Address holds the information needed to connect this Addressable up to receive events.
	// +optional
	Address *duckv1.Addressable `json:"address,omitempty"`
}

TransformationStatus communicates the observed state of the Transformation (from the controller).

func (*TransformationStatus) DeepCopy

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

func (*TransformationStatus) DeepCopyInto

func (in *TransformationStatus) DeepCopyInto(out *TransformationStatus)

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

func (*TransformationStatus) InitializeConditions

func (ts *TransformationStatus) InitializeConditions()

InitializeConditions sets the initial values to the conditions.

func (*TransformationStatus) MarkServiceAvailable

func (ts *TransformationStatus) MarkServiceAvailable()

MarkServiceAvailable sets Transformation condition to ready.

func (*TransformationStatus) MarkServiceUnavailable

func (ts *TransformationStatus) MarkServiceUnavailable(name string)

MarkServiceUnavailable marks Transformation as not ready with ServiceUnavailable reason.

Jump to

Keyboard shortcuts

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