Documentation ¶
Index ¶
- Constants
- func EnsureNoSubscription(ctx context.Context, cli servicebustopics.SubscriptionsClient) reconciler.Event
- func EnsureSubscription(ctx context.Context, cli servicebustopics.SubscriptionsClient) error
- func MakeAppEnv(o *v1alpha1.AzureServiceBusSource) []corev1.EnvVar
- func NewController(ctx context.Context, cmw configmap.Watcher) *controller.Impl
- type Reconciler
- func (r *Reconciler) BuildAdapter(src commonv1alpha1.Reconcilable, sinkURI *apis.URL) (*appsv1.Deployment, error)
- func (r *Reconciler) FinalizeKind(ctx context.Context, o *v1alpha1.AzureServiceBusSource) reconciler.Event
- func (r *Reconciler) ReconcileKind(ctx context.Context, o *v1alpha1.AzureServiceBusSource) reconciler.Event
Constants ¶
View Source
const ( // ReasonSubscribed indicates that a Subscription was created for an Azure Service Bus Topic. ReasonSubscribed = "Subscribed" // ReasonUnsubscribed indicates that a Subscription was removed from an Azure Service Bus Topic. ReasonUnsubscribed = "Unsubscribed" // ReasonFailedSubscribe indicates a failure while synchronizing a Subscription for an Azure Service Bus Topic. ReasonFailedSubscribe = "FailedSubscribe" // ReasonFailedUnsubscribe indicates a failure while removing a Subscription from an Azure Service Bus Topic. ReasonFailedUnsubscribe = "FailedUnsubscribe" )
Variables ¶
This section is empty.
Functions ¶
func EnsureNoSubscription ¶
func EnsureNoSubscription(ctx context.Context, cli servicebustopics.SubscriptionsClient) reconciler.Event
EnsureNoSubscription ensures the Subscription is removed. Required permissions:
- Microsoft.ServiceBus/namespaces/topics/subscriptions/delete
func EnsureSubscription ¶
func EnsureSubscription(ctx context.Context, cli servicebustopics.SubscriptionsClient) error
EnsureSubscription ensures a Subscription exists with the expected configuration. Required permissions:
- Microsoft.ServiceBus/namespaces/topics/subscriptions/read
- Microsoft.ServiceBus/namespaces/topics/subscriptions/write
nolint:gocyclo
func MakeAppEnv ¶
func MakeAppEnv(o *v1alpha1.AzureServiceBusSource) []corev1.EnvVar
MakeAppEnv extracts environment variables from the object. Exported to be used in external tools for local test environments.
func NewController ¶
NewController creates a Reconciler for the event source and returns the result of NewImpl.
Types ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler implements controller.Reconciler for the event source type.
func (*Reconciler) BuildAdapter ¶
func (r *Reconciler) BuildAdapter(src commonv1alpha1.Reconcilable, sinkURI *apis.URL) (*appsv1.Deployment, error)
BuildAdapter implements common.AdapterBuilder.
func (*Reconciler) FinalizeKind ¶
func (r *Reconciler) FinalizeKind(ctx context.Context, o *v1alpha1.AzureServiceBusSource) reconciler.Event
FinalizeKind is called when the resource is deleted.
func (*Reconciler) ReconcileKind ¶
func (r *Reconciler) ReconcileKind(ctx context.Context, o *v1alpha1.AzureServiceBusSource) reconciler.Event
ReconcileKind implements Interface.ReconcileKind.
Click to show internal directories.
Click to hide internal directories.