controller

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseReader

type DatabaseReader interface {
	Tags(repo string) ([]string, error)
}

DatabaseReader implementations get the stored set of tags for an image repository.

If no tags are availble for the repo, then implementations should return an empty set of tags.

type DatabaseWriter

type DatabaseWriter interface {
	SetTags(repo string, tags []string) error
}

DatabaseWriter implementations record the tags for an image repository.

type ImagePolicyReconciler

type ImagePolicyReconciler struct {
	client.Client
	kuberecorder.EventRecorder
	helper.Metrics

	ControllerName string
	Database       DatabaseReader
	ACLOptions     acl.Options
	// contains filtered or unexported fields
}

ImagePolicyReconciler reconciles a ImagePolicy object

func (*ImagePolicyReconciler) Reconcile

func (r *ImagePolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, retErr error)

func (*ImagePolicyReconciler) SetupWithManager

func (r *ImagePolicyReconciler) SetupWithManager(mgr ctrl.Manager, opts ImagePolicyReconcilerOptions) error

type ImagePolicyReconcilerOptions

type ImagePolicyReconcilerOptions struct {
	RateLimiter ratelimiter.RateLimiter
}

type ImageRepositoryReconciler

type ImageRepositoryReconciler struct {
	client.Client
	kuberecorder.EventRecorder
	helper.Metrics

	ControllerName string
	Database       interface {
		DatabaseWriter
		DatabaseReader
	}
	DeprecatedLoginOpts login.ProviderOptions
	// contains filtered or unexported fields
}

ImageRepositoryReconciler reconciles a ImageRepository object

func (*ImageRepositoryReconciler) Reconcile

func (r *ImageRepositoryReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, retErr error)

func (*ImageRepositoryReconciler) SetupWithManager

type ImageRepositoryReconcilerOptions

type ImageRepositoryReconcilerOptions struct {
	RateLimiter ratelimiter.RateLimiter
}

Jump to

Keyboard shortcuts

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