config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: Apache-2.0 Imports: 2 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 {
	Instances []Instance `yaml:"instances"`
}

Config contains configuration file information.

func Load

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
	Labels       map[string]string `yaml:"labels"`         // may be empty

}

Instance represents a single RDS information from configuration file.

func (Instance) String

func (i Instance) String() string

Jump to

Keyboard shortcuts

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