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.ZendeskSource) error // Deregisters the HTTP handler for the given source. DeregisterHandlerFor(context.Context, *v1alpha1.ZendeskSource) 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.ZendeskSource) reconciler.Event
ObserveKind implements reconcilerv1alpha1.ReadOnlyInterface.
func (*Reconciler) ReconcileKind ¶
func (r *Reconciler) ReconcileKind(ctx context.Context, src *v1alpha1.ZendeskSource) reconciler.Event
ReconcileKind implements reconcilerv1alpha1.Interface.
Click to show internal directories.
Click to hide internal directories.