Documentation ¶
Index ¶
- type DefaultFactoryImpl
- func (f *DefaultFactoryImpl) GetContext() ctx.Context
- func (f *DefaultFactoryImpl) GetLog() log.Logger
- func (f *DefaultFactoryImpl) GetPipeline() *pipeline.Pipelines
- func (f *DefaultFactoryImpl) NewConfig(configFiles ...string) v2.Config
- func (f *DefaultFactoryImpl) NewPluginManager() plugin.Interface
- func (f *DefaultFactoryImpl) SetConfig(cfg v2.Config)
- type Factory
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
Click to show internal directories.
Click to hide internal directories.