Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=eventarc.gcp.jet.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type CloudRunServiceObservation
- type CloudRunServiceParameters
- type DestinationObservation
- type DestinationParameters
- type GkeObservation
- type GkeParameters
- type MatchingCriteriaObservation
- type MatchingCriteriaParameters
- type PubsubObservation
- type PubsubParameters
- type TransportObservation
- type TransportParameters
- type Trigger
- func (in *Trigger) DeepCopy() *Trigger
- func (in *Trigger) DeepCopyInto(out *Trigger)
- func (in *Trigger) DeepCopyObject() runtime.Object
- func (mg *Trigger) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Trigger) GetConnectionDetailsMapping() map[string]string
- func (mg *Trigger) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Trigger) GetID() string
- func (tr *Trigger) GetObservation() (map[string]interface{}, error)
- func (tr *Trigger) GetParameters() (map[string]interface{}, error)
- func (mg *Trigger) GetProviderConfigReference() *xpv1.Reference
- func (mg *Trigger) GetProviderReference() *xpv1.Reference
- func (mg *Trigger) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Trigger) GetTerraformResourceType() string
- func (tr *Trigger) GetTerraformSchemaVersion() int
- func (mg *Trigger) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Trigger) LateInitialize(attrs []byte) (bool, error)
- func (mg *Trigger) SetConditions(c ...xpv1.Condition)
- func (mg *Trigger) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (tr *Trigger) SetObservation(obs map[string]interface{}) error
- func (tr *Trigger) SetParameters(params map[string]interface{}) error
- func (mg *Trigger) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Trigger) SetProviderReference(r *xpv1.Reference)
- func (mg *Trigger) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Trigger) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type TriggerList
- type TriggerObservation
- type TriggerParameters
- type TriggerSpec
- type TriggerStatus
Constants ¶
const ( CRDGroup = "eventarc.gcp.jet.crossplane.io" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
var ( // CRDGroupVersion is the API Group Version used to register the objects CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var ( Trigger_Kind = "Trigger" Trigger_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Trigger_Kind}.String() Trigger_KindAPIVersion = Trigger_Kind + "." + CRDGroupVersion.String() Trigger_GroupVersionKind = CRDGroupVersion.WithKind(Trigger_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type CloudRunServiceObservation ¶
type CloudRunServiceObservation struct { }
func (*CloudRunServiceObservation) DeepCopy ¶
func (in *CloudRunServiceObservation) DeepCopy() *CloudRunServiceObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudRunServiceObservation.
func (*CloudRunServiceObservation) DeepCopyInto ¶
func (in *CloudRunServiceObservation) DeepCopyInto(out *CloudRunServiceObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudRunServiceParameters ¶
type CloudRunServiceParameters struct { // Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute". // +kubebuilder:validation:Optional Path *string `json:"path,omitempty" tf:"path,omitempty"` // Required. The region the Cloud Run service is deployed in. // +kubebuilder:validation:Optional Region *string `json:"region,omitempty" tf:"region,omitempty"` // Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. Only services located in the same project of the trigger object can be addressed. // +kubebuilder:validation:Required Service *string `json:"service" tf:"service,omitempty"` }
func (*CloudRunServiceParameters) DeepCopy ¶
func (in *CloudRunServiceParameters) DeepCopy() *CloudRunServiceParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudRunServiceParameters.
func (*CloudRunServiceParameters) DeepCopyInto ¶
func (in *CloudRunServiceParameters) DeepCopyInto(out *CloudRunServiceParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DestinationObservation ¶
type DestinationObservation struct { }
func (*DestinationObservation) DeepCopy ¶
func (in *DestinationObservation) DeepCopy() *DestinationObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationObservation.
func (*DestinationObservation) DeepCopyInto ¶
func (in *DestinationObservation) DeepCopyInto(out *DestinationObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DestinationParameters ¶
type DestinationParameters struct { // [WARNING] Configuring a Cloud Function in Trigger is not supported as of today. The Cloud Function resource name. Format: projects/{project}/locations/{location}/functions/{function} // +kubebuilder:validation:Optional CloudFunction *string `json:"cloudFunction,omitempty" tf:"cloud_function,omitempty"` // Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger. // +kubebuilder:validation:Optional CloudRunService []CloudRunServiceParameters `json:"cloudRunService,omitempty" tf:"cloud_run_service,omitempty"` // A GKE service capable of receiving events. The service should be running in the same project as the trigger. // +kubebuilder:validation:Optional Gke []GkeParameters `json:"gke,omitempty" tf:"gke,omitempty"` // The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: `projects/{project}/locations/{location}/workflows/{workflow}` // +kubebuilder:validation:Optional Workflow *string `json:"workflow,omitempty" tf:"workflow,omitempty"` }
func (*DestinationParameters) DeepCopy ¶
func (in *DestinationParameters) DeepCopy() *DestinationParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationParameters.
func (*DestinationParameters) DeepCopyInto ¶
func (in *DestinationParameters) DeepCopyInto(out *DestinationParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GkeObservation ¶
type GkeObservation struct { }
func (*GkeObservation) DeepCopy ¶
func (in *GkeObservation) DeepCopy() *GkeObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GkeObservation.
func (*GkeObservation) DeepCopyInto ¶
func (in *GkeObservation) DeepCopyInto(out *GkeObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GkeParameters ¶
type GkeParameters struct { // Required. The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created. // +kubebuilder:validation:Required Cluster *string `json:"cluster" tf:"cluster,omitempty"` // Required. The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (for example, us-central1-a) for the zonal clusters or region (for example, us-central1) for regional clusters. // +kubebuilder:validation:Required Location *string `json:"location" tf:"location,omitempty"` // Required. The namespace the GKE service is running in. // +kubebuilder:validation:Required Namespace *string `json:"namespace" tf:"namespace,omitempty"` // Optional. The relative path on the GKE service the events should be sent to. The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute". // +kubebuilder:validation:Optional Path *string `json:"path,omitempty" tf:"path,omitempty"` // Required. Name of the GKE service. // +kubebuilder:validation:Required Service *string `json:"service" tf:"service,omitempty"` }
func (*GkeParameters) DeepCopy ¶
func (in *GkeParameters) DeepCopy() *GkeParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GkeParameters.
func (*GkeParameters) DeepCopyInto ¶
func (in *GkeParameters) DeepCopyInto(out *GkeParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MatchingCriteriaObservation ¶
type MatchingCriteriaObservation struct { }
func (*MatchingCriteriaObservation) DeepCopy ¶
func (in *MatchingCriteriaObservation) DeepCopy() *MatchingCriteriaObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchingCriteriaObservation.
func (*MatchingCriteriaObservation) DeepCopyInto ¶
func (in *MatchingCriteriaObservation) DeepCopyInto(out *MatchingCriteriaObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MatchingCriteriaParameters ¶
type MatchingCriteriaParameters struct { // Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. All triggers MUST provide a filter for the 'type' attribute. // +kubebuilder:validation:Required Attribute *string `json:"attribute" tf:"attribute,omitempty"` // Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`. // +kubebuilder:validation:Optional Operator *string `json:"operator,omitempty" tf:"operator,omitempty"` // Required. The value for the attribute. // +kubebuilder:validation:Required Value *string `json:"value" tf:"value,omitempty"` }
func (*MatchingCriteriaParameters) DeepCopy ¶
func (in *MatchingCriteriaParameters) DeepCopy() *MatchingCriteriaParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchingCriteriaParameters.
func (*MatchingCriteriaParameters) DeepCopyInto ¶
func (in *MatchingCriteriaParameters) DeepCopyInto(out *MatchingCriteriaParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PubsubObservation ¶
type PubsubObservation struct {
Subscription *string `json:"subscription,omitempty" tf:"subscription,omitempty"`
}
func (*PubsubObservation) DeepCopy ¶
func (in *PubsubObservation) DeepCopy() *PubsubObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PubsubObservation.
func (*PubsubObservation) DeepCopyInto ¶
func (in *PubsubObservation) DeepCopyInto(out *PubsubObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PubsubParameters ¶
type PubsubParameters struct { // Optional. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/topics/{TOPIC_NAME}. You may set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished` only. The topic you provide here will not be deleted by Eventarc at trigger deletion. // +kubebuilder:validation:Optional Topic *string `json:"topic,omitempty" tf:"topic,omitempty"` }
func (*PubsubParameters) DeepCopy ¶
func (in *PubsubParameters) DeepCopy() *PubsubParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PubsubParameters.
func (*PubsubParameters) DeepCopyInto ¶
func (in *PubsubParameters) DeepCopyInto(out *PubsubParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TransportObservation ¶
type TransportObservation struct { }
func (*TransportObservation) DeepCopy ¶
func (in *TransportObservation) DeepCopy() *TransportObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransportObservation.
func (*TransportObservation) DeepCopyInto ¶
func (in *TransportObservation) DeepCopyInto(out *TransportObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TransportParameters ¶
type TransportParameters struct { // The Pub/Sub topic and subscription used by Eventarc as delivery intermediary. // +kubebuilder:validation:Optional Pubsub []PubsubParameters `json:"pubsub,omitempty" tf:"pubsub,omitempty"` }
func (*TransportParameters) DeepCopy ¶
func (in *TransportParameters) DeepCopy() *TransportParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransportParameters.
func (*TransportParameters) DeepCopyInto ¶
func (in *TransportParameters) DeepCopyInto(out *TransportParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Trigger ¶
type Trigger struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TriggerSpec `json:"spec"` Status TriggerStatus `json:"status,omitempty"` }
Trigger is the Schema for the Triggers API +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gcpjet}
func (*Trigger) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Trigger.
func (*Trigger) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Trigger) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Trigger) GetCondition ¶
func (mg *Trigger) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Trigger.
func (*Trigger) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Trigger
func (*Trigger) GetDeletionPolicy ¶
func (mg *Trigger) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Trigger.
func (*Trigger) GetObservation ¶
GetObservation of this Trigger
func (*Trigger) GetParameters ¶
GetParameters of this Trigger
func (*Trigger) GetProviderConfigReference ¶
GetProviderConfigReference of this Trigger.
func (*Trigger) GetProviderReference ¶
GetProviderReference of this Trigger. Deprecated: Use GetProviderConfigReference.
func (*Trigger) GetPublishConnectionDetailsTo ¶
func (mg *Trigger) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Trigger.
func (*Trigger) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Trigger
func (*Trigger) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Trigger) GetWriteConnectionSecretToReference ¶
func (mg *Trigger) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Trigger.
func (*Trigger) LateInitialize ¶
LateInitialize this Trigger using its observed tfState. returns True if there are any spec changes for the resource.
func (*Trigger) SetConditions ¶
SetConditions of this Trigger.
func (*Trigger) SetDeletionPolicy ¶
func (mg *Trigger) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Trigger.
func (*Trigger) SetObservation ¶
SetObservation for this Trigger
func (*Trigger) SetParameters ¶
SetParameters for this Trigger
func (*Trigger) SetProviderConfigReference ¶
SetProviderConfigReference of this Trigger.
func (*Trigger) SetProviderReference ¶
SetProviderReference of this Trigger. Deprecated: Use SetProviderConfigReference.
func (*Trigger) SetPublishConnectionDetailsTo ¶
func (mg *Trigger) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Trigger.
func (*Trigger) SetWriteConnectionSecretToReference ¶
func (mg *Trigger) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Trigger.
type TriggerList ¶
type TriggerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Trigger `json:"items"` }
TriggerList contains a list of Triggers
func (*TriggerList) DeepCopy ¶
func (in *TriggerList) DeepCopy() *TriggerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerList.
func (*TriggerList) DeepCopyInto ¶
func (in *TriggerList) DeepCopyInto(out *TriggerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TriggerList) DeepCopyObject ¶
func (in *TriggerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TriggerList) GetItems ¶
func (l *TriggerList) GetItems() []resource.Managed
GetItems of this TriggerList.
type TriggerObservation ¶
type TriggerObservation struct { CreateTime *string `json:"createTime,omitempty" tf:"create_time,omitempty"` Etag *string `json:"etag,omitempty" tf:"etag,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` UID *string `json:"uid,omitempty" tf:"uid,omitempty"` UpdateTime *string `json:"updateTime,omitempty" tf:"update_time,omitempty"` }
func (*TriggerObservation) DeepCopy ¶
func (in *TriggerObservation) DeepCopy() *TriggerObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerObservation.
func (*TriggerObservation) DeepCopyInto ¶
func (in *TriggerObservation) DeepCopyInto(out *TriggerObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerParameters ¶
type TriggerParameters struct { // Required. Destination specifies where the events should be sent to. // +kubebuilder:validation:Required Destination []DestinationParameters `json:"destination" tf:"destination,omitempty"` // Optional. User labels attached to the triggers that can be used to group resources. // +kubebuilder:validation:Optional Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"` // The location for the resource // +kubebuilder:validation:Required Location *string `json:"location" tf:"location,omitempty"` // Required. null The list of filters that applies to event attributes. Only events that match all the provided filters will be sent to the destination. // +kubebuilder:validation:Required MatchingCriteria []MatchingCriteriaParameters `json:"matchingCriteria" tf:"matching_criteria,omitempty"` // Required. The resource name of the trigger. Must be unique within the location on the project. // +kubebuilder:validation:Required Name *string `json:"name" tf:"name,omitempty"` // The project for the resource // +kubebuilder:validation:Optional Project *string `json:"project,omitempty" tf:"project,omitempty"` // Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The principal who calls this API must have `iam.serviceAccounts.actAs` permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts#sa_common for more information. For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. In order to create Audit Log triggers, the service account should also have `roles/eventarc.eventReceiver` IAM role. // +kubebuilder:validation:Optional ServiceAccount *string `json:"serviceAccount,omitempty" tf:"service_account,omitempty"` // Optional. In order to deliver messages, Eventarc may use other GCP products as transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes. // +kubebuilder:validation:Optional Transport []TransportParameters `json:"transport,omitempty" tf:"transport,omitempty"` }
func (*TriggerParameters) DeepCopy ¶
func (in *TriggerParameters) DeepCopy() *TriggerParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerParameters.
func (*TriggerParameters) DeepCopyInto ¶
func (in *TriggerParameters) DeepCopyInto(out *TriggerParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerSpec ¶
type TriggerSpec struct { v1.ResourceSpec `json:",inline"` ForProvider TriggerParameters `json:"forProvider"` }
TriggerSpec defines the desired state of Trigger
func (*TriggerSpec) DeepCopy ¶
func (in *TriggerSpec) DeepCopy() *TriggerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerSpec.
func (*TriggerSpec) DeepCopyInto ¶
func (in *TriggerSpec) DeepCopyInto(out *TriggerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerStatus ¶
type TriggerStatus struct { v1.ResourceStatus `json:",inline"` AtProvider TriggerObservation `json:"atProvider,omitempty"` }
TriggerStatus defines the observed state of Trigger.
func (*TriggerStatus) DeepCopy ¶
func (in *TriggerStatus) DeepCopy() *TriggerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerStatus.
func (*TriggerStatus) DeepCopyInto ¶
func (in *TriggerStatus) DeepCopyInto(out *TriggerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.