config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// TypeHintPlugins holds a list of plugins that will be used when building a type hint (e.g. JSONSchema) file for
	// workflows.
	TypeHintPlugins []string `json:"plugins" yaml:"plugins"`
	// LocalDeployer holds the configuration for executing plugins locally. This deployer is used to obtain the schema
	// from the plugins before executing them in a remote environment.
	LocalDeployer any `json:"deployer" yaml:"deployer"`
	// Log configures logging for workflow runs.
	Log log.Config `json:"log" yaml:"log"`
}

Config is the main configuration structure that configures the engine for execution. It is not identical to the workflow being executed.

func Default

func Default() *Config

Default returns the default configuration.

func Load

func Load(configData any) (*Config, error)

Load loads a configuration data set into the config struct.

Jump to

Keyboard shortcuts

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