Documentation ¶
Overview ¶
Package command contains functions that can be invoked via command-line e.g. "chaosmonkey schedule" invokes command.Schedule
Index ¶
- Constants
- func DumpConfig(c chaosmonkey.AppConfigGetter, app string)
- func DumpMonkeyConfig(cfg *config.Monkey)
- func Eligible(g chaosmonkey.AppConfigGetter, d deploy.Deployment, ...)
- func Execute()
- func FetchSchedule(s schedstore.SchedStore, cfg *config.Monkey)
- func Migrate(db mysql.MySQL)
- func Outage(ou chaosmonkey.Outage)
- func Schedule(g chaosmonkey.AppConfigGetter, ss schedstore.SchedStore, cfg *config.Monkey, ...)
- func Terminate(d deps.Deps, app string, account string, region string, stack string, ...)
- func Usage()
Constants ¶
const Version = "2.0.1"
Version is the version number
Variables ¶
This section is empty.
Functions ¶
func DumpConfig ¶
func DumpConfig(c chaosmonkey.AppConfigGetter, app string)
DumpConfig dumps the config for an app to stdout
func DumpMonkeyConfig ¶
DumpMonkeyConfig dumps the monkey-level config parameters to stdout
func Eligible ¶
func Eligible(g chaosmonkey.AppConfigGetter, d deploy.Deployment, app, account, region, stack, cluster string)
Eligible prints out a list of instance ids eligible for termination It is intended only for testing
func FetchSchedule ¶
func FetchSchedule(s schedstore.SchedStore, cfg *config.Monkey)
FetchSchedule executes the "fetch-schedule" command. This checks if there is an existing schedule for today that was previously registered in chaosmonkey-api. If so, it downloads the schedule from chaosmonkey-api and installs it locally.
func Outage ¶
func Outage(ou chaosmonkey.Outage)
Outage prints out "true" if an ongoing outage, else "false"
func Schedule ¶
func Schedule(g chaosmonkey.AppConfigGetter, ss schedstore.SchedStore, cfg *config.Monkey, d deploy.Deployment, apps []string)
Schedule executes the "schedule" command. This defines the schedule of terminations for the day and records them as cron jobs
Types ¶
This section is empty.