fake

package
v1.15.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake[T meta.Resource] struct {
	// contains filtered or unexported fields
}

func New

func New[T meta.Resource]() *Fake[T]

func (*Fake[T]) Run

func (f *Fake[T]) Run(ctx context.Context) error

func (*Fake[T]) WatchUpdates

func (f *Fake[T]) WatchUpdates(ctx context.Context, namespace string) (<-chan *informer.Event[T], error)

func (*Fake[T]) WithRun

func (f *Fake[T]) WithRun(fn func(context.Context) error) *Fake[T]

func (*Fake[T]) WithWatchUpdates

func (f *Fake[T]) WithWatchUpdates(fn func(context.Context, string) (<-chan *informer.Event[T], error)) *Fake[T]

Jump to

Keyboard shortcuts

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