config

package
v0.44.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 20 Imported by: 156 modules, 222 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

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