Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=extensions.triggermesh.io
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type EventStoreConnection
- type Function
- func (in *Function) DeepCopy() *Function
- func (in *Function) DeepCopyInto(out *Function)
- func (in *Function) DeepCopyObject() runtime.Object
- func (f *Function) GetConditionSet() apis.ConditionSet
- func (*Function) GetGroupVersionKind() schema.GroupVersionKind
- func (f *Function) GetStatus() *duckv1.Status
- func (f *Function) SetDefaults(ctx context.Context)
- func (f *Function) Validate(ctx context.Context) *apis.FieldError
- type FunctionList
- type FunctionSpec
- type FunctionStatus
- func (in *FunctionStatus) DeepCopy() *FunctionStatus
- func (in *FunctionStatus) DeepCopyInto(out *FunctionStatus)
- func (fs *FunctionStatus) InitializeConditions()
- func (fs *FunctionStatus) MarkConfigmapAvailable()
- func (fs *FunctionStatus) MarkConfigmapUnavailable(name string)
- func (fs *FunctionStatus) MarkServiceAvailable()
- func (fs *FunctionStatus) MarkServiceUnavailable(name string)
- func (fs *FunctionStatus) MarkSinkAvailable()
- func (fs *FunctionStatus) MarkSinkUnavailable()
Constants ¶
const ( ConditionReady = apis.ConditionReady ConditionSinkReady apis.ConditionType = "SinkReady" ConditionServiceReady apis.ConditionType = "ServiceReady" ConditionConfigmapReady apis.ConditionType = "ConfigmapReady" )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: function.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 EventStoreConnection ¶ added in v1.10.0
type EventStoreConnection struct { // URI is the gRPC location to the EventStore URI string `json:"uri"` }
EventStoreConnection contains the data to connect to an EventStore instance
func (*EventStoreConnection) DeepCopy ¶ added in v1.10.0
func (in *EventStoreConnection) DeepCopy() *EventStoreConnection
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventStoreConnection.
func (*EventStoreConnection) DeepCopyInto ¶ added in v1.10.0
func (in *EventStoreConnection) DeepCopyInto(out *EventStoreConnection)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Function ¶
type Function struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec holds the desired state of the Function (from the client). // +optional Spec FunctionSpec `json:"spec,omitempty"` // Status communicates the observed state of the Function (from the controller). // +optional Status FunctionStatus `json:"status,omitempty"` }
+genclient +genreconciler +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*Function) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Function.
func (*Function) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Function) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Function) GetConditionSet ¶
func (f *Function) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.
func (*Function) GetGroupVersionKind ¶
func (*Function) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind implements kmeta.OwnerRefable
func (*Function) GetStatus ¶
GetStatus retrieves the status of the resource. Implements the KRShaped interface.
func (*Function) SetDefaults ¶
SetDefaults implements apis.Defaultable
type FunctionList ¶
type FunctionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Function `json:"items"` }
FunctionList is a list of Function resources
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*FunctionList) DeepCopy ¶
func (in *FunctionList) DeepCopy() *FunctionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FunctionList.
func (*FunctionList) DeepCopyInto ¶
func (in *FunctionList) DeepCopyInto(out *FunctionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FunctionList) DeepCopyObject ¶
func (in *FunctionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FunctionSpec ¶
type FunctionSpec struct { Runtime string `json:"runtime"` Entrypoint string `json:"entrypoint"` Public bool `json:"public,omitempty"` Code string `json:"code"` ResponseMode string `json:"responseMode,omitempty"` EventStore EventStoreConnection `json:"eventStore,omitempty"` CloudEventOverrides *duckv1.CloudEventOverrides `json:"ceOverrides"` Sink *duckv1.Destination `json:"sink"` }
FunctionSpec holds the desired state of the Function Specification
func (*FunctionSpec) DeepCopy ¶
func (in *FunctionSpec) DeepCopy() *FunctionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FunctionSpec.
func (*FunctionSpec) DeepCopyInto ¶
func (in *FunctionSpec) DeepCopyInto(out *FunctionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FunctionSpec) Validate ¶
func (fs *FunctionSpec) Validate(ctx context.Context) *apis.FieldError
Validate implements apis.Validatable
type FunctionStatus ¶
type FunctionStatus struct { duckv1.SourceStatus `json:",inline"` // Address holds the information needed to connect this Function up to receive events. // +optional Address *duckv1.Addressable `json:"address,omitempty"` }
FunctionStatus communicates the observed state of the Function (from the controller).
func (*FunctionStatus) DeepCopy ¶
func (in *FunctionStatus) DeepCopy() *FunctionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FunctionStatus.
func (*FunctionStatus) DeepCopyInto ¶
func (in *FunctionStatus) DeepCopyInto(out *FunctionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FunctionStatus) InitializeConditions ¶
func (fs *FunctionStatus) InitializeConditions()
InitializeConditions sets the initial values to the conditions.
func (*FunctionStatus) MarkConfigmapAvailable ¶
func (fs *FunctionStatus) MarkConfigmapAvailable()
MarkSinkAvailable updates Function status with Sink Is Ready condition
func (*FunctionStatus) MarkConfigmapUnavailable ¶
func (fs *FunctionStatus) MarkConfigmapUnavailable(name string)
MarkSinkUnavailable updates Function status with Sink Not Ready condition
func (*FunctionStatus) MarkServiceAvailable ¶
func (fs *FunctionStatus) MarkServiceAvailable()
MarkServiceAvailable updates Function status with Function Service Is Ready condition
func (*FunctionStatus) MarkServiceUnavailable ¶
func (fs *FunctionStatus) MarkServiceUnavailable(name string)
MarkServiceUnavailable updates Function status with Function Service Not Ready condition
func (*FunctionStatus) MarkSinkAvailable ¶
func (fs *FunctionStatus) MarkSinkAvailable()
MarkSinkAvailable updates Function status with Sink Is Ready condition
func (*FunctionStatus) MarkSinkUnavailable ¶
func (fs *FunctionStatus) MarkSinkUnavailable()
MarkSinkUnavailable updates Function status with Sink Not Ready condition