Documentation ¶
Overview ¶
+groupName=eventarc.google.kubeform.com
Index ¶
- Variables
- func GetDecoder() map[string]jsoniter.ValDecoder
- func GetEncoder() map[string]jsoniter.ValEncoder
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Trigger
- func (in *Trigger) DeepCopy() *Trigger
- func (in *Trigger) DeepCopyInto(out *Trigger)
- func (in *Trigger) DeepCopyObject() runtime.Object
- func (r *Trigger) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Trigger) ValidateCreate() error
- func (r *Trigger) ValidateDelete() error
- func (r *Trigger) ValidateUpdate(old runtime.Object) error
- type TriggerList
- type TriggerSpec
- type TriggerSpecDestination
- type TriggerSpecDestinationCloudRunService
- type TriggerSpecDestinationCloudRunServiceCodec
- type TriggerSpecDestinationCodec
- type TriggerSpecMatchingCriteria
- type TriggerSpecResource
- type TriggerSpecTransport
- type TriggerSpecTransportCodec
- type TriggerSpecTransportPubsub
- type TriggerSpecTransportPubsubCodec
- type TriggerStatus
Constants ¶
This section is empty.
Variables ¶
var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: eventarc.GroupName, Version: "v1alpha1"}
Functions ¶
func GetDecoder ¶
func GetDecoder() map[string]jsoniter.ValDecoder
func GetEncoder ¶
func GetEncoder() map[string]jsoniter.ValEncoder
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Trigger ¶
type Trigger struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TriggerSpec `json:"spec,omitempty"` Status TriggerStatus `json:"status,omitempty"` }
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) SetupWebhookWithManager ¶
func (*Trigger) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Trigger) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type TriggerList ¶
type TriggerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of Trigger CRD objects Items []Trigger `json:"items,omitempty"` }
TriggerList is 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.
type TriggerSpec ¶
type TriggerSpec struct { State *TriggerSpecResource `json:"state,omitempty" tf:"-"` Resource TriggerSpecResource `json:"resource" tf:"resource"` UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"` TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"` ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"` BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"` }
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 TriggerSpecDestination ¶
type TriggerSpecDestination struct { // The Cloud Function resource name. Only Cloud Functions V2 is supported. Format: projects/{project}/locations/{location}/functions/{function} // +optional CloudFunction *string `json:"cloudFunction,omitempty" tf:"cloud_function"` // Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger. // +optional CloudRunService *TriggerSpecDestinationCloudRunService `json:"cloudRunService,omitempty" tf:"cloud_run_service"` }
func (*TriggerSpecDestination) DeepCopy ¶
func (in *TriggerSpecDestination) DeepCopy() *TriggerSpecDestination
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerSpecDestination.
func (*TriggerSpecDestination) DeepCopyInto ¶
func (in *TriggerSpecDestination) DeepCopyInto(out *TriggerSpecDestination)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerSpecDestinationCloudRunService ¶
type TriggerSpecDestinationCloudRunService 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". // +optional Path *string `json:"path,omitempty" tf:"path"` // Required. The region the Cloud Run service is deployed in. // +optional Region *string `json:"region,omitempty" tf:"region"` // 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. Service *string `json:"service" tf:"service"` }
func (*TriggerSpecDestinationCloudRunService) DeepCopy ¶
func (in *TriggerSpecDestinationCloudRunService) DeepCopy() *TriggerSpecDestinationCloudRunService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerSpecDestinationCloudRunService.
func (*TriggerSpecDestinationCloudRunService) DeepCopyInto ¶
func (in *TriggerSpecDestinationCloudRunService) DeepCopyInto(out *TriggerSpecDestinationCloudRunService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerSpecDestinationCloudRunServiceCodec ¶
type TriggerSpecDestinationCloudRunServiceCodec struct { }
+k8s:deepcopy-gen=false
func (TriggerSpecDestinationCloudRunServiceCodec) Decode ¶
func (TriggerSpecDestinationCloudRunServiceCodec) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)
type TriggerSpecDestinationCodec ¶
type TriggerSpecDestinationCodec struct { }
+k8s:deepcopy-gen=false
func (TriggerSpecDestinationCodec) Decode ¶
func (TriggerSpecDestinationCodec) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)
type TriggerSpecMatchingCriteria ¶
type TriggerSpecMatchingCriteria 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. Attribute *string `json:"attribute" tf:"attribute"` // Required. The value for the attribute. Value *string `json:"value" tf:"value"` }
func (*TriggerSpecMatchingCriteria) DeepCopy ¶
func (in *TriggerSpecMatchingCriteria) DeepCopy() *TriggerSpecMatchingCriteria
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerSpecMatchingCriteria.
func (*TriggerSpecMatchingCriteria) DeepCopyInto ¶
func (in *TriggerSpecMatchingCriteria) DeepCopyInto(out *TriggerSpecMatchingCriteria)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerSpecResource ¶
type TriggerSpecResource struct { Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"` ID string `json:"id,omitempty" tf:"id,omitempty"` // Output only. The creation time. // +optional CreateTime *string `json:"createTime,omitempty" tf:"create_time"` // Required. Destination specifies where the events should be sent to. Destination *TriggerSpecDestination `json:"destination" tf:"destination"` // Output only. This checksum is computed by the server based on the value of other fields, and may be sent only on create requests to ensure the client has an up-to-date value before proceeding. // +optional Etag *string `json:"etag,omitempty" tf:"etag"` // Optional. User labels attached to the triggers that can be used to group resources. // +optional Labels *map[string]string `json:"labels,omitempty" tf:"labels"` // The location for the resource Location *string `json:"location" tf:"location"` // 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. MatchingCriteria []TriggerSpecMatchingCriteria `json:"matchingCriteria" tf:"matching_criteria"` // Required. The resource name of the trigger. Must be unique within the location on the project and must be in `projects/{project}/locations/{location}/triggers/{trigger}` format. Name *string `json:"name" tf:"name"` // The project for the resource // +optional Project *string `json:"project,omitempty" tf:"project"` // 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?hl=en#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. // +optional ServiceAccount *string `json:"serviceAccount,omitempty" tf:"service_account"` // 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. // +optional Transport *TriggerSpecTransport `json:"transport,omitempty" tf:"transport"` // Output only. Server assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted. // +optional Uid *string `json:"uid,omitempty" tf:"uid"` // Output only. The last-modified time. // +optional UpdateTime *string `json:"updateTime,omitempty" tf:"update_time"` }
func (*TriggerSpecResource) DeepCopy ¶
func (in *TriggerSpecResource) DeepCopy() *TriggerSpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerSpecResource.
func (*TriggerSpecResource) DeepCopyInto ¶
func (in *TriggerSpecResource) DeepCopyInto(out *TriggerSpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerSpecTransport ¶
type TriggerSpecTransport struct { // The Pub/Sub topic and subscription used by Eventarc as delivery intermediary. // +optional Pubsub *TriggerSpecTransportPubsub `json:"pubsub,omitempty" tf:"pubsub"` }
func (*TriggerSpecTransport) DeepCopy ¶
func (in *TriggerSpecTransport) DeepCopy() *TriggerSpecTransport
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerSpecTransport.
func (*TriggerSpecTransport) DeepCopyInto ¶
func (in *TriggerSpecTransport) DeepCopyInto(out *TriggerSpecTransport)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerSpecTransportCodec ¶
type TriggerSpecTransportCodec struct { }
+k8s:deepcopy-gen=false
func (TriggerSpecTransportCodec) Decode ¶
func (TriggerSpecTransportCodec) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)
type TriggerSpecTransportPubsub ¶
type TriggerSpecTransportPubsub struct { // Output only. The name of the Pub/Sub subscription created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`. // +optional Subscription *string `json:"subscription,omitempty" tf:"subscription"` // 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. // +optional Topic *string `json:"topic,omitempty" tf:"topic"` }
func (*TriggerSpecTransportPubsub) DeepCopy ¶
func (in *TriggerSpecTransportPubsub) DeepCopy() *TriggerSpecTransportPubsub
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerSpecTransportPubsub.
func (*TriggerSpecTransportPubsub) DeepCopyInto ¶
func (in *TriggerSpecTransportPubsub) DeepCopyInto(out *TriggerSpecTransportPubsub)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerSpecTransportPubsubCodec ¶
type TriggerSpecTransportPubsubCodec struct { }
+k8s:deepcopy-gen=false
func (TriggerSpecTransportPubsubCodec) Decode ¶
func (TriggerSpecTransportPubsubCodec) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)
type TriggerStatus ¶
type TriggerStatus struct { // Resource generation, which is updated on mutation by the API Server. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // +optional Phase status.Status `json:"phase,omitempty"` // +optional Conditions []kmapi.Condition `json:"conditions,omitempty"` }
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.