factory

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	// ApplicationContext Context
	ApplicationContext() ctx.ApplicationContext
	SetContextWithValue(ctx context.Context, key any, value any)

	// GetLog Log
	GetLog() log.Logger

	// NewPluginManager Plugin manager
	NewPluginManager() plugin.Plugins

	// NewCompletion completion
	NewCompletion(cmd *cobra.Command, args []string) plugin.Completion

	// NewConfigLoader config
	NewConfigLoader() config.Config
	// NewProcessManager Processor
	NewProcessManager() processor.Processor
	// NewPipelineManager pipeline
	NewPipelineManager() pipeline.Pipelines
}

Factory is the main interface for various client creations

func DefaultFactory

func DefaultFactory(dir util.Dirs) Factory

DefaultFactory returns the default factory implementation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳