v1alpha1

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

+groupName=eventarc.google.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
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
)
View Source
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 Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

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

func (in *Trigger) DeepCopy() *Trigger

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Trigger.

func (*Trigger) DeepCopyInto

func (in *Trigger) DeepCopyInto(out *Trigger)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Trigger) DeepCopyObject

func (in *Trigger) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Trigger) SetupWebhookWithManager

func (r *Trigger) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Trigger) ValidateCreate

func (r *Trigger) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Trigger) ValidateDelete

func (r *Trigger) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Trigger) ValidateUpdate

func (r *Trigger) ValidateUpdate(old runtime.Object) error

ValidateUpdate 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 {
	// [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}
	// +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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerSpecDestinationCloudRunService.

func (*TriggerSpecDestinationCloudRunService) DeepCopyInto

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) Encode

func (TriggerSpecDestinationCloudRunServiceCodec) IsEmpty

type TriggerSpecDestinationCodec

type TriggerSpecDestinationCodec struct {
}

+k8s:deepcopy-gen=false

func (TriggerSpecDestinationCodec) Decode

func (TriggerSpecDestinationCodec) Encode

func (TriggerSpecDestinationCodec) IsEmpty

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerSpecMatchingCriteria.

func (*TriggerSpecMatchingCriteria) DeepCopyInto

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.
	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

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) Encode

func (TriggerSpecTransportCodec) IsEmpty

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerSpecTransportPubsub.

func (*TriggerSpecTransportPubsub) DeepCopyInto

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) Encode

func (TriggerSpecTransportPubsubCodec) IsEmpty

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL