conf

package
v0.0.0-...-77edef9 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: MIT Imports: 11 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 {
	Processor *processor.ProcessorConf
	Source    source.SourceConf
	Sink      sink.SinkConf

	// WorkingDir is the directory where the config file resides
	WorkingDir string
	// contains filtered or unexported fields
}

Config keeps bruco config information and helps to load them It also get the processor code if needed and does all the preparation required for the application to run properly

func LoadConfig

func LoadConfig(fileURL string) (*Config, error)

LoadConfig search for a config.yaml file and parses it The config.yaml file could be the first bruco command line argument Another option is if bruco is called with an url scheme. In that case if the path is a zip archive for example, this function will loads and extracts its contents and will search for a config.yaml there.

func (*Config) Cleanup

func (c *Config) Cleanup()

Cleanup removes temprary files

Jump to

Keyboard shortcuts

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