Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the standard v1alpha1 API group +kubebuilder:object:generate=true +groupName=standard.oam.dev
Index ¶
Constants ¶
const ( // SourceTypeResourceWatcher is the source type for K8sResourceWatcher. SourceTypeResourceWatcher string = "resource-watcher" // SourceTypeWebhookTrigger is the source type for WebhookTrigger. SourceTypeWebhookTrigger string = "webhook-trigger" )
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "standard.oam.dev", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme. SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var ( // TriggerServiceKind is the kind of TriggerService. TriggerServiceKind = reflect.TypeOf(TriggerService{}).Name() // EventListenerKind is the kind of EventListener. EventListenerKind = reflect.TypeOf(EventListener{}).Name() )
Functions ¶
This section is empty.
Types ¶
type ActionMeta ¶
type ActionMeta struct { // Type is the type (identifier) of this action. Type string `json:"type"` // Properties are user-provided parameters. You should parse it yourself. // +kubebuilder:pruning:PreserveUnknownFields Properties *runtime.RawExtension `json:"properties,omitempty"` }
ActionMeta is what users type in their configurations, specifying what action they want to use and what properties they provided.
func (*ActionMeta) DeepCopy ¶
func (in *ActionMeta) DeepCopy() *ActionMeta
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionMeta.
func (*ActionMeta) DeepCopyInto ¶
func (in *ActionMeta) DeepCopyInto(out *ActionMeta)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Event ¶
type Event struct { // Resource is the resource that triggers the event. Resource EventResource `json:"resource"` // Timestamp is the time when the event is triggered. Timestamp metav1.Time `json:"timestamp"` // Type is the type of the event. Type string `json:"type,omitempty"` // +kubebuilder:pruning:PreserveUnknownFields // Data is the data of the event that carries. Data *runtime.RawExtension `json:"data,omitempty"` }
Event is the schema for the event.
func (*Event) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Event.
func (*Event) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EventListener ¶
type EventListener struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +nullable Events []Event `json:"events,omitempty"` }
EventListener is the schema for the event listener. +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:resource:shortName={el}
func (*EventListener) DeepCopy ¶
func (in *EventListener) DeepCopy() *EventListener
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventListener.
func (*EventListener) DeepCopyInto ¶
func (in *EventListener) DeepCopyInto(out *EventListener)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EventListener) DeepCopyObject ¶
func (in *EventListener) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EventListenerList ¶
type EventListenerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []EventListener `json:"items"` }
EventListenerList contains a list of EventListener.
func (*EventListenerList) DeepCopy ¶
func (in *EventListenerList) DeepCopy() *EventListenerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventListenerList.
func (*EventListenerList) DeepCopyInto ¶
func (in *EventListenerList) DeepCopyInto(out *EventListenerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EventListenerList) DeepCopyObject ¶
func (in *EventListenerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EventResource ¶
type EventResource struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Name string `json:"name"` Namespace string `json:"namespace"` }
EventResource is the resource that triggers the event.
func (*EventResource) DeepCopy ¶
func (in *EventResource) DeepCopy() *EventResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventResource.
func (*EventResource) DeepCopyInto ¶
func (in *EventResource) DeepCopyInto(out *EventResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Source ¶
type Source struct { Type string `json:"type"` // +kubebuilder:pruning:PreserveUnknownFields Properties *runtime.RawExtension `json:"properties"` }
Source defines the Source of trigger.
func (*Source) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Source.
func (*Source) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerMeta ¶
type TriggerMeta struct { Source Source `json:"source"` // +optional Filter string `json:"filter,omitempty"` Action ActionMeta `json:"action"` }
TriggerMeta is the meta data of a trigger.
func (*TriggerMeta) DeepCopy ¶
func (in *TriggerMeta) DeepCopy() *TriggerMeta
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerMeta.
func (*TriggerMeta) DeepCopyInto ¶
func (in *TriggerMeta) DeepCopyInto(out *TriggerMeta)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerService ¶
type TriggerService struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TriggerServiceSpec `json:"spec,omitempty"` }
TriggerService is the Schema for the kubetriggerconfigs API. +kubebuilder:subresource:status +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:resource:shortName={ts}
func (*TriggerService) DeepCopy ¶
func (in *TriggerService) DeepCopy() *TriggerService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerService.
func (*TriggerService) DeepCopyInto ¶
func (in *TriggerService) DeepCopyInto(out *TriggerService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TriggerService) DeepCopyObject ¶
func (in *TriggerService) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TriggerServiceList ¶
type TriggerServiceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TriggerService `json:"items"` }
TriggerServiceList contains a list of TriggerService.
func (*TriggerServiceList) DeepCopy ¶
func (in *TriggerServiceList) DeepCopy() *TriggerServiceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerServiceList.
func (*TriggerServiceList) DeepCopyInto ¶
func (in *TriggerServiceList) DeepCopyInto(out *TriggerServiceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TriggerServiceList) DeepCopyObject ¶
func (in *TriggerServiceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TriggerServiceSpec ¶
type TriggerServiceSpec struct { Worker *Worker `json:"worker,omitempty"` // Config for kube-trigger Triggers []TriggerMeta `json:"triggers"` }
TriggerServiceSpec defines the desired state of TriggerService.
func (*TriggerServiceSpec) DeepCopy ¶
func (in *TriggerServiceSpec) DeepCopy() *TriggerServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerServiceSpec.
func (*TriggerServiceSpec) DeepCopyInto ¶
func (in *TriggerServiceSpec) DeepCopyInto(out *TriggerServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Worker ¶
type Worker struct { Template string `json:"template,omitempty"` // +kubebuilder:pruning:PreserveUnknownFields Properties *runtime.RawExtension `json:"properties,omitempty"` }
Worker defines the config of the worker
func (*Worker) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Worker.
func (*Worker) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.