controllers

package
v0.0.0-...-949f581 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatabase

func NewDatabase() *database

Types

type DatabaseReader

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

type DatabaseWriter

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

type ImagePolicyReconciler

type ImagePolicyReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Database DatabaseReader
}

ImagePolicyReconciler reconciles a ImagePolicy object

func (*ImagePolicyReconciler) Reconcile

func (r *ImagePolicyReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*ImagePolicyReconciler) SetupWithManager

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

type ImageRepositoryReconciler

type ImageRepositoryReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Database interface {
		DatabaseWriter
		DatabaseReader
	}
}

ImageRepositoryReconciler reconciles a ImageRepository object

func (*ImageRepositoryReconciler) Reconcile

func (r *ImageRepositoryReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*ImageRepositoryReconciler) SetupWithManager

func (r *ImageRepositoryReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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