fake

package
v1.15.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 5 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) (*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