Documentation ¶
Index ¶
- Constants
- func NewAdapter(component string) pkgadapter.AdapterConstructor
- func NewController(component string) pkgadapter.ControllerConstructor
- func NewEnvConfig() env.ConfigAccessor
- type MTAdapter
- type Reconciler
- func (r *Reconciler) ObserveFinalizeKind(ctx context.Context, src *v1alpha1.ZendeskSource) reconciler.Event
- func (r *Reconciler) ObserveKind(ctx context.Context, src *v1alpha1.ZendeskSource) reconciler.Event
- func (r *Reconciler) ReconcileKind(ctx context.Context, src *v1alpha1.ZendeskSource) reconciler.Event
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.4.0
func NewController(component string) pkgadapter.ControllerConstructor
NewController returns a constructor for the event source's Reconciler.
func NewEnvConfig ¶ added in v1.4.0
func NewEnvConfig() env.ConfigAccessor
NewEnvConfig satisfies env.ConfigConstructor. Returns an accessor for the source's adapter envConfig.
Types ¶
type MTAdapter ¶ added in v1.4.0
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 ¶ added in v1.4.0
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler implements controller.Reconciler for the event source type.
func (*Reconciler) ObserveFinalizeKind ¶ added in v1.4.0
func (r *Reconciler) ObserveFinalizeKind(ctx context.Context, src *v1alpha1.ZendeskSource) reconciler.Event
ObserveFinalizeKind implements reconcilerv1alpha1.ReadOnlyFinalizer.
func (*Reconciler) ObserveKind ¶ added in v1.4.0
func (r *Reconciler) ObserveKind(ctx context.Context, src *v1alpha1.ZendeskSource) reconciler.Event
ObserveKind implements reconcilerv1alpha1.ReadOnlyInterface.
func (*Reconciler) ReconcileKind ¶ added in v1.4.0
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.