Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶ added in v0.1.1
InitConfig parses config.yaml (CWD or XDG) and returns the resulting *env.Env. As a side effect it pins the same env via env.SetActive so capability methods without ctx (EventDump, parseRDSAccount) can fall back to env.Active().
cmd/main.go calls this once at startup and threads the returned env through to the REPL or headless dispatcher.
Types ¶
type Config ¶ added in v0.1.7
type Config struct {
Common struct {
LogEnable bool `yaml:"log_enable"`
ListPolicies bool `yaml:"list_policies"`
LogDir string `yaml:"log_dir"`
TimeoutMinutes int `yaml:"timeout_minutes"`
LogFormat string `yaml:"log_format"`
} `yaml:"common"`
Cloudlist []string `yaml:"cloudlist"`
IAMUserCheck userValidationConfig `yaml:"iam-user-check"`
LegacyIAMUserValidation userValidationConfig `yaml:"iam-user-validation"`
LegacyBackdoorUser userValidationConfig `yaml:"backdoor-user"`
RDSAccountCheck databaseAccountConfig `yaml:"rds-account-check"`
LegacyDBAccountValidation databaseAccountConfig `yaml:"database-account-validation"`
LegacyDatabaseAccount databaseAccountConfig `yaml:"database-account"`
}
Click to show internal directories.
Click to hide internal directories.