mtadapter

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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