fake

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

fake package is used to abstract the StatusPoller and return predictable outcomes. It will transform the Unstructured objects in events and sent them back in the same order.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestPoller

type TestPoller struct{}

TestPoller is used to test correct behaviour of code that will work with events sent from a StatusPoller

func (*TestPoller) Start

func (p *TestPoller) Start(ctx context.Context, objs []*unstructured.Unstructured) <-chan event.Event

Start implement StatusPoller, but it will use the objs to generate the relevant statuses to return to the channel

Jump to

Keyboard shortcuts

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