Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdapter ¶
func NewAdapter(ctx context.Context, processed adapter.EnvConfigAccessor, ceClient cloudevents.Client) adapter.Adapter
NewAdapter is a constructor for a GitHubSource receive adapter. It satisfies adapter.AdapterConstructor.
func NewController ¶
func NewController(component string) adapter.ControllerConstructor
NewController returns a constructor for the event source's Reconciler. This constructor initializes the controller and registers event handlers to enqueue events.
func NewEnvConfig ¶
func NewEnvConfig() adapter.EnvConfigAccessor
NewEnvConfig returns an accessor for the adapter's envConfig.
Types ¶
type MTAdapter ¶ added in v0.21.0
type MTAdapter interface { // Registers a HTTP handler for the given source. RegisterHandlerFor(context.Context, *v1alpha1.GitHubSource) 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 manages HTTP routes based on the GitHubSource objects in the controller's cache.
func (*Reconciler) ReconcileKind ¶
func (r *Reconciler) ReconcileKind(ctx context.Context, src *v1alpha1.GitHubSource) reconciler.Event
ReconcileKind implements reconciler.Interface.
Click to show internal directories.
Click to hide internal directories.