fake

package
v1.17.21 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) (*loader.StreamConn[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) (*loader.StreamConn[T], error)) *Fake[T]

type FakeT

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

func New

func New() *FakeT

func (*FakeT) Components

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

func (*FakeT) Run

func (f *FakeT) Run(ctx context.Context) error

func (*FakeT) Subscriptions added in v1.14.0

func (f *FakeT) Subscriptions() loader.Loader[subapi.Subscription]

func (*FakeT) WithComponents added in v1.14.0

func (f *FakeT) WithComponents(fake *Fake[compapi.Component]) *FakeT

func (*FakeT) WithRun

func (f *FakeT) WithRun(fn func(context.Context) error) *FakeT

Jump to

Keyboard shortcuts

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