Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the extensions/v1alpha1 API group.
+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 (f *Function) AsEventSource() string
- func (in *Function) DeepCopy() *Function
- func (in *Function) DeepCopyInto(out *Function)
- func (in *Function) DeepCopyObject() runtime.Object
- func (f *Function) GetAdapterOverrides() *v1alpha1.AdapterOverrides
- func (f *Function) GetConditionSet() apis.ConditionSet
- func (f *Function) GetEventTypes() []string
- func (*Function) GetGroupVersionKind() schema.GroupVersionKind
- func (f *Function) GetSink() *duckv1.Destination
- func (f *Function) GetStatus() *duckv1.Status
- func (f *Function) GetStatusManager() *v1alpha1.StatusManager
- func (f *Function) SetDefaults(ctx context.Context)
- func (f *Function) Validate(ctx context.Context) *apis.FieldError
- type FunctionConfigMapIdentity
- type FunctionList
- type FunctionSpec
- type FunctionStatus
Constants ¶
const ( // FunctionConditionConfigMapReady has status True when the ConfigMap // containing the code of the Function was successfully reconciled. FunctionConditionConfigMapReady apis.ConditionType = "ConfigMapReady" )
Status conditions
const ( // FunctionReasonFailedSync encompasses any type of error occuring while synchronizing a Kubernetes API object. // It is meant to be set on the ConfigMapReady condition. FunctionReasonFailedSync = "FailedSync" )
Reasons for status conditions
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 AllTypes = []v1alpha1.GroupObject{ {Single: &Function{}, List: &FunctionList{}}, }
AllTypes is a list of all the types defined in this package.
var SchemeGroupVersion = schema.GroupVersion{Group: extensions.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 ¶
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 ¶
func (in *EventStoreConnection) DeepCopy() *EventStoreConnection
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventStoreConnection.
func (*EventStoreConnection) DeepCopyInto ¶
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"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec FunctionSpec `json:"spec,omitempty"` Status FunctionStatus `json:"status,omitempty"` }
Function is an addressable object that executes function code.
func (*Function) AsEventSource ¶ added in v1.16.1
AsEventSource implements EventSource.
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) GetAdapterOverrides ¶ added in v1.16.1
func (f *Function) GetAdapterOverrides() *v1alpha1.AdapterOverrides
GetAdapterOverrides implements AdapterConfigurable.
func (*Function) GetConditionSet ¶
func (f *Function) GetConditionSet() apis.ConditionSet
GetConditionSet implements duckv1.KRShaped.
func (*Function) GetEventTypes ¶ added in v1.16.1
GetEventTypes implements EventSource.
func (*Function) GetGroupVersionKind ¶
func (*Function) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind implements kmeta.OwnerRefable.
func (*Function) GetSink ¶ added in v1.16.1
func (f *Function) GetSink() *duckv1.Destination
GetSink implements EventSender.
func (*Function) GetStatusManager ¶ added in v1.16.1
func (f *Function) GetStatusManager() *v1alpha1.StatusManager
GetStatusManager implements Reconcilable.
func (*Function) SetDefaults ¶
SetDefaults implements apis.Defaultable
type FunctionConfigMapIdentity ¶ added in v1.16.1
type FunctionConfigMapIdentity struct { Name string `json:"name"` ResourceVersion string `json:"resourceVersion"` }
FunctionConfigMapIdentity represents the identity of the ConfigMap containing the code of a Function.
func (*FunctionConfigMapIdentity) DeepCopy ¶ added in v1.16.1
func (in *FunctionConfigMapIdentity) DeepCopy() *FunctionConfigMapIdentity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FunctionConfigMapIdentity.
func (*FunctionConfigMapIdentity) DeepCopyInto ¶ added in v1.16.1
func (in *FunctionConfigMapIdentity) DeepCopyInto(out *FunctionConfigMapIdentity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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"` Code string `json:"code"` ResponseIsEvent bool `json:"responseIsEvent,omitempty"` EventStore EventStoreConnection `json:"eventStore,omitempty"` // Support sending to an event sink instead of replying, // as well as setting the CloudEvents 'type' and 'source' attributes // using CloudEventOverrides (hack). duckv1.SourceSpec `json:",inline"` // Adapter spec overrides parameters. // +optional AdapterOverrides *v1alpha1.AdapterOverrides `json:"adapterOverrides,omitempty"` }
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.
type FunctionStatus ¶
type FunctionStatus struct { v1alpha1.Status `json:",inline"` ConfigMap *FunctionConfigMapIdentity `json:"configMap,omitempty"` }
FunctionStatus defines the observed state of the Function.
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) MarkConfigMapAvailable ¶ added in v1.16.1
func (s *FunctionStatus) MarkConfigMapAvailable(cmapName, resourceVersion string)
MarkConfigMapAvailable sets the ConfigMapReady condition to True and reports the name and resource version of the code ConfigMap.
func (*FunctionStatus) MarkConfigMapUnavailable ¶ added in v1.16.1
func (s *FunctionStatus) MarkConfigMapUnavailable(reason, msg string)
MarkConfigMapUnavailable sets the ConfigMapReady condition to False with the given reason and associated message.