Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the flow/v1alpha1 API group.
+k8s:deepcopy-gen=package +groupName=flow.triggermesh.io
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Path
- type Transform
- type Transformation
- func (in *Transformation) DeepCopy() *Transformation
- func (in *Transformation) DeepCopyInto(out *Transformation)
- func (in *Transformation) DeepCopyObject() runtime.Object
- func (t *Transformation) GetConditionSet() apis.ConditionSet
- func (t *Transformation) GetGroupVersionKind() schema.GroupVersionKind
- func (t *Transformation) GetStatus() *duckv1.Status
- func (t *Transformation) SetDefaults(ctx context.Context)
- func (t *Transformation) Validate(ctx context.Context) *apis.FieldError
- type TransformationList
- type TransformationSpec
- type TransformationStatus
- func (in *TransformationStatus) DeepCopy() *TransformationStatus
- func (in *TransformationStatus) DeepCopyInto(out *TransformationStatus)
- func (ts *TransformationStatus) InitializeConditions()
- func (ts *TransformationStatus) MarkServiceAvailable()
- func (ts *TransformationStatus) MarkServiceUnavailable(name string)
Constants ¶
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 ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: flow.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Path ¶
Path is a key-value pair that represents JSON object path
func (*Path) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Path.
func (*Path) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Transform ¶
Transform describes transformation schemes for different CE types.
func (*Transform) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Transform.
func (*Transform) DeepCopyInto ¶
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 ¶
func (in *TransformationStatus) DeepCopy() *TransformationStatus
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.