Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the sources v1alpha1 API group +k8s:deepcopy-gen=package +groupName=sources.knative.dev +kubebuilder:object:generate=true
Package v1alpha1 contains API Schema definitions for the sources v1alpha1 API group +k8s:deepcopy-gen=package +groupName=sources.knative.dev
Index ¶
- Constants
- Variables
- func DeploymentIsAvailable(d *appsv1.DeploymentStatus, def bool) bool
- func Kind(kind string) schema.GroupKind
- func RabbitmqEventSource(namespace, rabbitmqSourceName, qName string) string
- func Resource(resource string) schema.GroupResource
- type DeliverySpec
- type RabbitmqResourcesConfigSpec
- type RabbitmqSource
- func (in *RabbitmqSource) DeepCopy() *RabbitmqSource
- func (in *RabbitmqSource) DeepCopyInto(out *RabbitmqSource)
- func (in *RabbitmqSource) DeepCopyObject() runtime.Object
- func (in *RabbitmqSource) GetConditionSet() apis.ConditionSet
- func (s *RabbitmqSource) GetGroupVersionKind() schema.GroupVersionKind
- func (in *RabbitmqSource) GetStatus() *duckv1.Status
- func (r *RabbitmqSource) SetDefaults(ctx context.Context)
- func (current *RabbitmqSource) Validate(ctx context.Context) *apis.FieldError
- type RabbitmqSourceList
- type RabbitmqSourceSpec
- type RabbitmqSourceStatus
- func (in *RabbitmqSourceStatus) DeepCopy() *RabbitmqSourceStatus
- func (in *RabbitmqSourceStatus) DeepCopyInto(out *RabbitmqSourceStatus)
- func (s *RabbitmqSourceStatus) GetCondition(t apis.ConditionType) *apis.Condition
- func (s *RabbitmqSourceStatus) GetTopLevelCondition() *apis.Condition
- func (s *RabbitmqSourceStatus) InitializeConditions()
- func (s *RabbitmqSourceStatus) IsReady() bool
- func (s *RabbitmqSourceStatus) MarkDeployed(d *appsv1.Deployment)
- func (s *RabbitmqSourceStatus) MarkDeploying(reason, messageFormat string, messageA ...interface{})
- func (s *RabbitmqSourceStatus) MarkExchangeFailed(reason, format string, args ...interface{})
- func (s *RabbitmqSourceStatus) MarkExchangeReady()
- func (s *RabbitmqSourceStatus) MarkNoSink(reason, messageFormat string, messageA ...interface{})
- func (s *RabbitmqSourceStatus) MarkNotDeployed(reason, messageFormat string, messageA ...interface{})
- func (s *RabbitmqSourceStatus) MarkResourcesCorrect()
- func (s *RabbitmqSourceStatus) MarkResourcesIncorrect(reason, messageFormat string, messageA ...interface{})
- func (s *RabbitmqSourceStatus) MarkSecretFailed(reason, format string, args ...interface{})
- func (s *RabbitmqSourceStatus) MarkSecretReady()
- func (s *RabbitmqSourceStatus) MarkSink(uri *apis.URL)
- type SecretValueFromSource
Constants ¶
const ( RabbitmqConditionReady = apis.ConditionReady RabbitmqConditionSinkProvided apis.ConditionType = "SinkProvided" RabbitmqConditionDeployed apis.ConditionType = "Deployed" RabbitmqConditionExchange apis.ConditionType = "ExchangeReady" RabbitmqConditionSecret apis.ConditionType = "SecretReady" RabbitmqConditionResources apis.ConditionType = "ResourcesReady" )
const (
RabbitmqEventType = "dev.knative.rabbitmq.event"
)
Variables ¶
var ( // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var RabbitmqSourceCondSet = apis.NewLivingConditionSet( RabbitmqConditionSinkProvided, RabbitmqConditionDeployed, RabbitmqConditionExchange, RabbitmqConditionSecret)
var SchemeGroupVersion = schema.GroupVersion{Group: sources.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func DeploymentIsAvailable ¶
func DeploymentIsAvailable(d *appsv1.DeploymentStatus, def bool) bool
func RabbitmqEventSource ¶
RabbitmqEventSource returns cloud event attribute 'source' for messages published by a rabbitmqsource format is '/apis/v1/namespace/NAMESPACE/rabbitmqsources/NAME#QUEUE_NAME'
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type DeliverySpec ¶ added in v0.33.0
type DeliverySpec struct { // Retry is the minimum number of retries the sender should attempt when // sending an event before moving it to the dead letter sink. // +optional Retry *int32 `json:"retry,omitempty"` // BackoffPolicy is the retry backoff policy (linear, exponential). // +optional BackoffPolicy *eventingduckv1.BackoffPolicyType `json:"backoffPolicy,omitempty"` // BackoffDelay is the delay before retrying. // More information on Duration format: // - https://www.iso.org/iso-8601-date-and-time-format.html // - https://en.wikipedia.org/wiki/ISO_8601 // // For linear policy, backoff delay is backoffDelay*<numberOfRetries>. // For exponential policy, backoff delay is backoffDelay*2^<numberOfRetries>. // +optional BackoffDelay *string `json:"backoffDelay,omitempty"` }
func (*DeliverySpec) DeepCopy ¶ added in v0.33.0
func (in *DeliverySpec) DeepCopy() *DeliverySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeliverySpec.
func (*DeliverySpec) DeepCopyInto ¶ added in v0.33.0
func (in *DeliverySpec) DeepCopyInto(out *DeliverySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RabbitmqResourcesConfigSpec ¶ added in v0.33.0
type RabbitmqResourcesConfigSpec struct { // VHost is the name of the VHost that will be used to set up our sources // +optional Vhost string `json:"vhost,omitempty"` // Name of the queue to bind to; required value. // +required QueueName string `json:"queueName"` // Name of the exchange; Required when predeclared is false. // +optional ExchangeName string `json:"exchangeName,omitempty"` // Sets the Channel's Prefetch count and number of Workers to consume simultaneously from it // +optional // +kubebuilder:validation:Minimum:=1 // +kubebuilder:validation:Maximum:=1000 // +kubebuilder:default:=1 Parallelism *int `json:"parallelism,omitempty"` // Predeclared defines if channels and queues are already predeclared and shouldn't be recreated. // This should be used in case the user does not have permission to declare new queues and channels in // RabbitMQ cluster // +optional Predeclared bool `json:"predeclared,omitempty"` }
func (*RabbitmqResourcesConfigSpec) DeepCopy ¶ added in v0.33.0
func (in *RabbitmqResourcesConfigSpec) DeepCopy() *RabbitmqResourcesConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RabbitmqResourcesConfigSpec.
func (*RabbitmqResourcesConfigSpec) DeepCopyInto ¶ added in v0.33.0
func (in *RabbitmqResourcesConfigSpec) DeepCopyInto(out *RabbitmqResourcesConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RabbitmqSource ¶
type RabbitmqSource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RabbitmqSourceSpec `json:"spec,omitempty"` Status RabbitmqSourceStatus `json:"status,omitempty"` }
RabbitmqSource is the Schema for the rabbitmqsources API. +k8s:openapi-gen=true
func (*RabbitmqSource) DeepCopy ¶
func (in *RabbitmqSource) DeepCopy() *RabbitmqSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RabbitmqSource.
func (*RabbitmqSource) DeepCopyInto ¶
func (in *RabbitmqSource) DeepCopyInto(out *RabbitmqSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RabbitmqSource) DeepCopyObject ¶
func (in *RabbitmqSource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RabbitmqSource) GetConditionSet ¶
func (in *RabbitmqSource) GetConditionSet() apis.ConditionSet
func (*RabbitmqSource) GetGroupVersionKind ¶
func (s *RabbitmqSource) GetGroupVersionKind() schema.GroupVersionKind
func (*RabbitmqSource) GetStatus ¶
func (in *RabbitmqSource) GetStatus() *duckv1.Status
func (*RabbitmqSource) SetDefaults ¶
func (r *RabbitmqSource) SetDefaults(ctx context.Context)
func (*RabbitmqSource) Validate ¶
func (current *RabbitmqSource) Validate(ctx context.Context) *apis.FieldError
type RabbitmqSourceList ¶
type RabbitmqSourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RabbitmqSource `json:"items"` }
RabbitmqSourceList contains a list of RabbitmqSources.
func (*RabbitmqSourceList) DeepCopy ¶
func (in *RabbitmqSourceList) DeepCopy() *RabbitmqSourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RabbitmqSourceList.
func (*RabbitmqSourceList) DeepCopyInto ¶
func (in *RabbitmqSourceList) DeepCopyInto(out *RabbitmqSourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RabbitmqSourceList) DeepCopyObject ¶
func (in *RabbitmqSourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RabbitmqSourceSpec ¶
type RabbitmqSourceSpec struct { // RabbitmqClusterReference stores a reference to RabbitmqCluster. This will get used to create resources on the RabbitMQ Broker. // +required RabbitmqClusterReference *v1beta1.RabbitmqClusterReference `json:"rabbitmqClusterReference,omitempty"` // Delivery contains the delivery spec for each trigger // to this Broker. Each trigger delivery spec, if any, overrides this // global delivery spec. // +optional Delivery *DeliverySpec `json:"delivery,omitempty"` // RabbitmqResourcesConfig config for Rabbitmq resources: Exchange, Channel and Queue // +optional RabbitmqResourcesConfig *RabbitmqResourcesConfigSpec `json:"rabbitmqResourcesConfig"` // Sink is a reference to an object that will resolve to a domain name to use as the sink. // Required property. // +required Sink *duckv1.Destination `json:"sink"` // ServiceAccountName is the name of the ServiceAccount that will be used to run the Receive // Adapter Deployment. // +optional ServiceAccountName string `json:"serviceAccountName,omitempty"` }
func (*RabbitmqSourceSpec) DeepCopy ¶
func (in *RabbitmqSourceSpec) DeepCopy() *RabbitmqSourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RabbitmqSourceSpec.
func (*RabbitmqSourceSpec) DeepCopyInto ¶
func (in *RabbitmqSourceSpec) DeepCopyInto(out *RabbitmqSourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RabbitmqSourceStatus ¶
type RabbitmqSourceStatus struct { // inherits duck/v1 Status, which currently provides: // * ObservedGeneration - the 'Generation' of the Service that was last processed by the controller. // * Conditions - the latest available observations of a resource's current state. duckv1.SourceStatus `json:",inline"` }
func (*RabbitmqSourceStatus) DeepCopy ¶
func (in *RabbitmqSourceStatus) DeepCopy() *RabbitmqSourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RabbitmqSourceStatus.
func (*RabbitmqSourceStatus) DeepCopyInto ¶
func (in *RabbitmqSourceStatus) DeepCopyInto(out *RabbitmqSourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RabbitmqSourceStatus) GetCondition ¶
func (s *RabbitmqSourceStatus) GetCondition(t apis.ConditionType) *apis.Condition
func (*RabbitmqSourceStatus) GetTopLevelCondition ¶
func (s *RabbitmqSourceStatus) GetTopLevelCondition() *apis.Condition
func (*RabbitmqSourceStatus) InitializeConditions ¶
func (s *RabbitmqSourceStatus) InitializeConditions()
func (*RabbitmqSourceStatus) IsReady ¶
func (s *RabbitmqSourceStatus) IsReady() bool
func (*RabbitmqSourceStatus) MarkDeployed ¶
func (s *RabbitmqSourceStatus) MarkDeployed(d *appsv1.Deployment)
func (*RabbitmqSourceStatus) MarkDeploying ¶
func (s *RabbitmqSourceStatus) MarkDeploying(reason, messageFormat string, messageA ...interface{})
func (*RabbitmqSourceStatus) MarkExchangeFailed ¶ added in v0.33.0
func (s *RabbitmqSourceStatus) MarkExchangeFailed(reason, format string, args ...interface{})
func (*RabbitmqSourceStatus) MarkExchangeReady ¶ added in v0.33.0
func (s *RabbitmqSourceStatus) MarkExchangeReady()
func (*RabbitmqSourceStatus) MarkNoSink ¶
func (s *RabbitmqSourceStatus) MarkNoSink(reason, messageFormat string, messageA ...interface{})
func (*RabbitmqSourceStatus) MarkNotDeployed ¶
func (s *RabbitmqSourceStatus) MarkNotDeployed(reason, messageFormat string, messageA ...interface{})
func (*RabbitmqSourceStatus) MarkResourcesCorrect ¶
func (s *RabbitmqSourceStatus) MarkResourcesCorrect()
func (*RabbitmqSourceStatus) MarkResourcesIncorrect ¶
func (s *RabbitmqSourceStatus) MarkResourcesIncorrect(reason, messageFormat string, messageA ...interface{})
func (*RabbitmqSourceStatus) MarkSecretFailed ¶ added in v0.33.0
func (s *RabbitmqSourceStatus) MarkSecretFailed(reason, format string, args ...interface{})
func (*RabbitmqSourceStatus) MarkSecretReady ¶ added in v0.33.0
func (s *RabbitmqSourceStatus) MarkSecretReady()
func (*RabbitmqSourceStatus) MarkSink ¶
func (s *RabbitmqSourceStatus) MarkSink(uri *apis.URL)
type SecretValueFromSource ¶
type SecretValueFromSource struct { // The Secret key to select from. SecretKeyRef *corev1.SecretKeySelector `json:"secretKeyRef,omitempty"` }
SecretValueFromSource represents the source of a secret value
func (*SecretValueFromSource) DeepCopy ¶
func (in *SecretValueFromSource) DeepCopy() *SecretValueFromSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretValueFromSource.
func (*SecretValueFromSource) DeepCopyInto ¶
func (in *SecretValueFromSource) DeepCopyInto(out *SecretValueFromSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.