Documentation ¶
Index ¶
Constants ¶
View Source
const ( ReasonSourceNotReady = "NotReady" ReasonHandlerDeregistered = "Deregistered" )
Reasons for API Events
Variables ¶
This section is empty.
Functions ¶
func NewAdapter ¶
func NewAdapter(component string) pkgadapter.AdapterConstructor
NewAdapter returns a constructor for the source's adapter.
func NewController ¶
func NewController(component string) pkgadapter.ControllerConstructor
NewController returns a constructor for the event source's Reconciler.
func NewEnvConfig ¶
func NewEnvConfig() env.ConfigAccessor
NewEnvConfig satisfies env.ConfigConstructor.
Types ¶
type MTAdapter ¶
type MTAdapter interface { // Registers a HTTP handler for the given source. RegisterHandlerFor(context.Context, *v1alpha1.AWSSNSSource) error // Deregisters the HTTP handler for the given source. DeregisterHandlerFor(context.Context, *v1alpha1.AWSSNSSource) error // Propagates a status condition to the status of the given source. PropagateCondition(context.Context, *v1alpha1.AWSSNSSource, *apis.Condition) error }
MTAdapter allows the multi-tenant adapter to expose methods the reconciler can call while reconciling a source object.
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler implements controller.Reconciler for the event source type.
func (*Reconciler) ObserveDeletion ¶
func (r *Reconciler) ObserveDeletion(ctx context.Context, key types.NamespacedName) error
ObserveDeletion implements reconciler.OnDeletionInterface.
func (*Reconciler) ObserveKind ¶
func (r *Reconciler) ObserveKind(ctx context.Context, src *v1alpha1.AWSSNSSource) reconciler.Event
ObserveKind implements reconcilerv1alpha1.ReadOnlyInterface.
func (*Reconciler) ReconcileKind ¶
func (r *Reconciler) ReconcileKind(ctx context.Context, src *v1alpha1.AWSSNSSource) reconciler.Event
ReconcileKind implements reconcilerv1alpha1.Interface.
Directories ¶
Path | Synopsis |
---|---|
Package handler contains the logic for handling SNS notifications over HTTP.
|
Package handler contains the logic for handling SNS notifications over HTTP. |
Package probe contains facilities for asserting the readiness of a multi-tenant receive adapter.
|
Package probe contains facilities for asserting the readiness of a multi-tenant receive adapter. |
Package status contains types and helpers to manipulate the status of source objects.
|
Package status contains types and helpers to manipulate the status of source objects. |
Click to show internal directories.
Click to hide internal directories.