awssnssource

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

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 added in v1.3.0

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. Returns an accessor for the source's adapter envConfig.

Types

type MTAdapter added in v1.3.0

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 added in v1.3.0

type Reconciler struct {
	// contains filtered or unexported fields
}

Reconciler implements controller.Reconciler for the event source type.

func (*Reconciler) ObserveFinalizeKind added in v1.3.0

func (r *Reconciler) ObserveFinalizeKind(ctx context.Context, src *v1alpha1.AWSSNSSource) reconciler.Event

ObserveFinalizeKind implements reconcilerv1alpha1.ReadOnlyFinalizer.

func (*Reconciler) ObserveKind added in v1.3.0

func (r *Reconciler) ObserveKind(ctx context.Context, src *v1alpha1.AWSSNSSource) reconciler.Event

ObserveKind implements reconcilerv1alpha1.ReadOnlyInterface.

func (*Reconciler) ReconcileKind added in v1.3.0

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

Jump to

Keyboard shortcuts

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