mock

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 15 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 Manager

type Manager struct {
	*mock.Manager
}

Manager provides a mock benthos manager that components can use to test interactions with fake resources.

func NewManager

func NewManager() *Manager

NewManager provides a new mock manager.

func (*Manager) ForStream

func (m *Manager) ForStream(id string) interop.Manager

ForStream returns the same mock manager.

func (*Manager) IntoPath

func (m *Manager) IntoPath(segments ...string) interop.Manager

IntoPath returns the same mock manager.

func (*Manager) NewBuffer

func (m *Manager) NewBuffer(conf buffer.Config) (buffer.Streamed, error)

NewBuffer always errors on invalid type.

func (*Manager) NewCache

func (m *Manager) NewCache(conf cache.Config) (cache.V1, error)

NewCache always errors on invalid type.

func (*Manager) NewInput

func (m *Manager) NewInput(conf linput.Config, pipelines ...processor.PipelineConstructorFunc) (input.Streamed, error)

NewInput always errors on invalid type.

func (*Manager) NewOutput

func (m *Manager) NewOutput(conf loutput.Config, pipelines ...processor.PipelineConstructorFunc) (output.Streamed, error)

NewOutput always errors on invalid type.

func (*Manager) NewProcessor

func (m *Manager) NewProcessor(conf lprocessor.Config) (processor.V1, error)

NewProcessor always errors on invalid type.

func (*Manager) NewRateLimit

func (m *Manager) NewRateLimit(conf ratelimit.Config) (ratelimit.V1, error)

NewRateLimit always errors on invalid type.

func (*Manager) StoreCache

func (m *Manager) StoreCache(ctx context.Context, name string, conf cache.Config) error

StoreCache always errors on invalid type.

func (*Manager) StoreInput

func (m *Manager) StoreInput(ctx context.Context, name string, conf linput.Config) error

StoreInput always errors on invalid type.

func (*Manager) StoreOutput

func (m *Manager) StoreOutput(ctx context.Context, name string, conf loutput.Config) error

StoreOutput always errors on invalid type.

func (*Manager) StoreProcessor

func (m *Manager) StoreProcessor(ctx context.Context, name string, conf lprocessor.Config) error

StoreProcessor always errors on invalid type.

func (*Manager) StoreRateLimit

func (m *Manager) StoreRateLimit(ctx context.Context, name string, conf ratelimit.Config) error

StoreRateLimit always errors on invalid type.

func (*Manager) WithAddedMetrics

func (m *Manager) WithAddedMetrics(m2 metrics.Type) interop.Manager

WithAddedMetrics returns the same mock manager.

Jump to

Keyboard shortcuts

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