Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRdsSectionNotFound = errors.New("[rds.*] section not found in file")
ErrRdsSectionNotFound is the config file format error
Functions ¶
Types ¶
type Config ¶
Config struct is Aws AWSConfig and Out OutConfig and Rds map and Log LogConfig variable
func LoadConfig ¶
LoadConfig is the contents are loaded from "rds-try.conf" file.
func (*Config) GetAWSCreds ¶
func (c *Config) GetAWSCreds() (*credentials.Credentials, error)
GetAWSCreds returns the appropriate value as the need arises.
evaluated in the following order 1. input variable 2. Environment variable 3. IAM Role
"/.aws/credentials" necessary item increased about that, so it isn't used.
type LogConfig ¶
type LogConfig struct { Root string `toml:"root"` Verbose bool `toml:"verbose"` JSON bool `toml:"json"` }
LogConfig struct is Root and Verbose and JSON variable
Click to show internal directories.
Click to hide internal directories.