config

package
v0.0.0-...-7035c32 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 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 {
	Jobs   []Job  `koanf:"jobs"`
	Server server `koanf:"server"`
}

Config is a structure that holds the loaded configuration file

func GetConfig

func GetConfig() Config

GetConfig reads and returns the configuration file

type Job

type Job struct {
	Name         string         `koanf:"name"`
	AWS          awsCredentials `koanf:"aws"`
	Filters      []filters      `koanf:"filters"`
	Granularity  string         `koanf:"granularity"`
	InstanceTags []instanceTags `koanf:"instance_tags"`
}

Job is a structure that holds configuration for aws accounts

Jump to

Keyboard shortcuts

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