controllers

package
v0.0.0-...-958fe41 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckReconciler

type CheckReconciler struct {
	client.Client
	Scheme            *runtime.Scheme
	Log               logr.Logger
	Hckio             *healthchecksio.Client
	Clock             Clock
	ReconcileInterval time.Duration
	NamePrefix        string
}

CheckReconciler reconciles a Check object

func (*CheckReconciler) Reconcile

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

Reconcile tries to reconcile the object

func (*CheckReconciler) SetupWithManager

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

SetupWithManager hooks up the controller/reconciler

type Clock

type Clock struct {
	Source func() *metav1.Time
}

Clock enables mocking of time

func NewClock

func NewClock() Clock

NewClock creates a new Clock

func (*Clock) Now

func (c *Clock) Now() *metav1.Time

Now returns the current time of the Source

Jump to

Keyboard shortcuts

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