sourceresolver

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReconcilerName = "SourceResolvers"
	Kind           = "SourceResolver"
)

Variables

This section is empty.

Functions

func NewController

func NewController(
	opt reconciler.Options,
	sourceResolverInformer buildinformers.SourceResolverInformer,
	gitResolver Resolver,
	blobResolver Resolver,
	registryResolver Resolver,
) *controller.Impl

Types

type Enqueuer

type Enqueuer interface {
	Enqueue(*buildapi.SourceResolver) error
}

type Reconciler

type Reconciler struct {
	GitResolver          Resolver
	BlobResolver         Resolver
	RegistryResolver     Resolver
	Enqueuer             Enqueuer
	Client               versioned.Interface
	SourceResolverLister buildlisters.SourceResolverLister
}

func (*Reconciler) Reconcile

func (c *Reconciler) Reconcile(ctx context.Context, key string) error

type Resolver

type Resolver interface {
	Resolve(context.Context, *buildapi.SourceResolver) (corev1alpha1.ResolvedSourceConfig, error)
	CanResolve(*buildapi.SourceResolver) bool
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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