config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 168

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefineConfiguration

func DefineConfiguration(
	ctx context.Context,
	connectorName string,
	connector cli.GetConnectorFunc,
	fields []field.SchemaField,
	constrains []field.SchemaFieldRelationship,
	options ...connectorrunner.Option,
) (*viper.Viper, *cobra.Command, error)

func ValidateConfiguration

func ValidateConfiguration(v *viper.Viper, fields []field.SchemaField) error

ValidateConfiguration checks if fields marked as required have a non zero-value set either from the CLI or from the configuration file.

Types

type ConfigurationError

type ConfigurationError struct {
	// contains filtered or unexported fields
}

func (*ConfigurationError) Error

func (c *ConfigurationError) Error() string

func (*ConfigurationError) PushError

func (c *ConfigurationError) PushError(err error)

Jump to

Keyboard shortcuts

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