config

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 2 Imported by: 33

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Instances []Instance `yaml:"instances"`
}

Config contains configuration file information.

func Load added in v0.5.0

func Load(filename string) (*Config, error)

Load loads configuration from file.

type Instance

type Instance struct {
	Region                 string            `yaml:"region"`
	Instance               string            `yaml:"instance"`
	AWSAccessKey           string            `yaml:"aws_access_key"` // may be empty
	AWSSecretKey           string            `yaml:"aws_secret_key"` // may be empty
	DisableBasicMetrics    bool              `yaml:"disable_basic_metrics"`
	DisableEnhancedMetrics bool              `yaml:"disable_enhanced_metrics"`
	Labels                 map[string]string `yaml:"labels"` // may be empty

}

Instance represents a single RDS information from configuration file.

func (Instance) String added in v0.6.0

func (i Instance) String() string

Jump to

Keyboard shortcuts

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