fake

package
v1.13.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 4 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 differ.Resource] struct {
	// contains filtered or unexported fields
}

func NewFake

func NewFake[T differ.Resource]() *Fake[T]

func (*Fake[T]) List

func (f *Fake[T]) List(ctx context.Context) (*differ.LocalRemoteResources[T], error)

func (*Fake[T]) Stream

func (f *Fake[T]) Stream(ctx context.Context) (<-chan *loader.Event[T], error)

func (*Fake[T]) WithList

func (f *Fake[T]) WithList(fn func(context.Context) (*differ.LocalRemoteResources[T], error)) *Fake[T]

func (*Fake[T]) WithStream

func (f *Fake[T]) WithStream(fn func(context.Context) (<-chan *loader.Event[T], error)) *Fake[T]

type FakeT

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

func New

func New() *FakeT

func (*FakeT) Close

func (f *FakeT) Close() error

func (*FakeT) Components

func (f *FakeT) Components() loader.Loader[componentsapi.Component]

func (*FakeT) WithComponent

func (f *FakeT) WithComponent(fake *Fake[componentsapi.Component]) *FakeT

Jump to

Keyboard shortcuts

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