config

package
v0.6.13 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: Apache-2.0 Imports: 19 Imported by: 168

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDuplicateField = errors.New("multiple fields with the same name")

Functions

func DefineConfiguration

func DefineConfiguration[T field.Configurable](
	ctx context.Context,
	connectorName string,
	connector cli.GetConnectorFunc[T],
	schema field.Configuration,
	options ...connectorrunner.Option,
) (*viper.Viper, *cobra.Command, error)

GetConnectorFunc is a function type that creates a connector instance. It takes a context and configuration. The session cache constructor is retrieved from the context. deprecated - prefer RunConnector.

func DefineConfigurationV2 added in v0.5.0

func DefineConfigurationV2[T field.Configurable](
	ctx context.Context,
	connectorName string,
	connector cli.GetConnectorFunc2[T],
	schema field.Configuration,
	options ...connectorrunner.Option,
) (*viper.Viper, *cobra.Command, error)

deprecated - prefer RunConnector.

func Generate added in v0.2.68

func Generate(name string, schema field.Configuration)

func RunConnector added in v0.5.0

func RunConnector[T field.Configurable](
	ctx context.Context,
	connectorName string,
	version string,
	schema field.Configuration,
	cf cli.NewConnector[T],
	options ...connectorrunner.Option,
)

Types

This section is empty.

Jump to

Keyboard shortcuts

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