sourceresolver

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReconcilerName = "SourceResolvers"
)

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