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 returns the instance of gitHubReceiveAdapter that implements adapter.Adapter interface
func NewController ¶
func NewController(ctx context.Context, router *Router) *controller.Impl
NewController initializes the controller and registers event handlers to enqueue events.
func NewEnvConfig ¶
func NewEnvConfig() adapter.EnvConfigAccessor
New EnvConfig function reads env variables defined in envConfig structure and returns accessor interface
Types ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler updates the internal Adapter cache GitHubSources
func (*Reconciler) ReconcileKind ¶
func (r *Reconciler) ReconcileKind(ctx context.Context, source *v1alpha1.GitHubSource) pkgreconciler.Event
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router holds the main GitHub webhook HTTP router and delegate to sub-routers
func NewRouter ¶
func NewRouter(logger *zap.SugaredLogger, lister v1alpha1.GitHubSourceLister, ceClient cloudevents.Client) *Router
NewRouter create a new GitHub webhook router receiving GitHub events
func (*Router) Unregister ¶
Unregister removes the GitHubSource served at the given path
Click to show internal directories.
Click to hide internal directories.