config

package
v0.0.0-...-86aec00 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 10 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 {
	Global  GlobalConfig `yaml:"global" validate:"required"`
	Sources Sources      `yaml:"sources" validate:"required"`
	HTTP    http.Config  `yaml:"http" validate:"required"`
}

func Load

func Load(configFilePath string) (Config, error)

Load and unmarshal config file

type GlobalConfig

type GlobalConfig struct {
	Interval  string          `yaml:"interval" validate:"required"`
	AwsConfig awsinfra.Config `yaml:"aws" validate:"required"`
}

type Sources

type Sources struct {
	Deployments []deployments.Config    `yaml:"deployments"`
	ArgocdHelm  []argohelm.Config       `yaml:"argocdHelm"`
	FsHelm      []filesystemhelm.Config `yaml:"filesystemHelm"`
	Aws         awsSource.Config        `yaml:"aws"`
}

Jump to

Keyboard shortcuts

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