Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.42.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 20 Imported by: 222

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