factory

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultFactoryImpl

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

DefaultFactoryImpl is the default factory implementation

func (*DefaultFactoryImpl) GetContext added in v0.2.7

func (f *DefaultFactoryImpl) GetContext() ctx.Context

func (*DefaultFactoryImpl) GetLog added in v0.2.7

func (f *DefaultFactoryImpl) GetLog() log.Logger

GetLog implements interface

func (*DefaultFactoryImpl) GetPipeline added in v0.2.7

func (f *DefaultFactoryImpl) GetPipeline() *pipeline.Pipelines

func (*DefaultFactoryImpl) NewConfig added in v0.2.7

func (f *DefaultFactoryImpl) NewConfig(configFiles ...string) v2.Config

NewConfig implements interface

func (*DefaultFactoryImpl) NewPluginManager

func (f *DefaultFactoryImpl) NewPluginManager() plugin.Interface

NewPluginManager creates a new plugin manager

func (*DefaultFactoryImpl) SetConfig added in v0.2.7

func (f *DefaultFactoryImpl) SetConfig(cfg v2.Config)

type Factory

type Factory interface {
	// NewConfig creates a new config loader
	NewConfig(configFiles ...string) v2.Config

	// NewPluginManager creates a new plugin manager
	NewPluginManager() plugin.Interface
	// GetLog retrieves the log instance
	GetLog() log.Logger
	// GetContext retrieves the context instance
	GetContext() ctx.Context

	GetPipeline() *pipeline.Pipelines

	SetConfig(cfg v2.Config)
}

Factory is the main interface for various client creations

func DefaultFactory

func DefaultFactory() Factory

DefaultFactory returns the default factory implementation

Jump to

Keyboard shortcuts

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