config

package
v0.0.0-...-c59b76b Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 7 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 {
	Debug  bool   `koanf:"debug"`
	Jobs   []Job  `koanf:"jobs"`
	Server server `koanf:"server"`
}

func ReadConfig

func ReadConfig() (*Config, error)

ReadConfig reads and returns the configuration file

type Filter

type Filter struct {
	Name  string `koanf:"name"`
	Value string `koanf:"value"`
}

type Job

type Job struct {
	Name    string         `koanf:"name"`
	AWS     awsCredentials `koanf:"aws"`
	Filters []Filter       `koanf:"filters"`
	Tags    []Tag          `koanf:"tags"`
}

type Tag

type Tag struct {
	Tag         string `koanf:"tag"`
	ExportedTag string `koanf:"exported_tag"`
}

Jump to

Keyboard shortcuts

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