registry

package
v0.12.0-alpha.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Shared is a registry of approvers. This is intended as a global
	// shared registry.
	Shared = &Registry{}
)

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry is a store of Approvers. Consumers can store approvers, and load all registered approvers. Approvers must be uniquely named.

func (*Registry) Approvers

func (r *Registry) Approvers() []approver.Interface

Approvers returns the list of Approvers that have been registered to the shared registry.

func (*Registry) Evaluators

func (r *Registry) Evaluators() []approver.Evaluator

Evaluators returns the list of Evaluators that have been registered as Approvers to the registry.

func (*Registry) Reconcilers

func (r *Registry) Reconcilers() []approver.Reconciler

Reconcilers returns the list of Reconcilers that have been registered as Approvers to the registry.

func (*Registry) Store

func (r *Registry) Store(approvers ...approver.Interface) *Registry

Store will store an Approver into the shared approver registry.

func (*Registry) Webhooks

func (r *Registry) Webhooks() []approver.Webhook

Webhooks returns the list of Webhooks that have been registered as Approvers to the registry.

Jump to

Keyboard shortcuts

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