controller

package
v0.10.11 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package controller provides a fake controller for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareConditions added in v0.9.3

func CompareConditions(wantConditions, gotConditions []v1.Condition) string

CompareConditions compares two condition slices and returns a string with the differences.

Types

type FakeController

type FakeController struct {
	// contains filtered or unexported fields
}

FakeController is a fake controller which only stores one key.

func (*FakeController) Enqueue

func (f *FakeController) Enqueue(obj interface{})

Enqueue enqueues a string type key.

func (*FakeController) Key

func (f *FakeController) Key() string

Key returns the key stored in the queue.

func (*FakeController) ResetQueue

func (f *FakeController) ResetQueue()

ResetQueue resets the value in the queue.

func (*FakeController) Run

func (f *FakeController) Run(_ context.Context, _ int) error

Run does nothing.

Jump to

Keyboard shortcuts

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