command

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2016 License: Apache-2.0 Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package command contains functions that can be invoked via command-line e.g. "chaosmonkey schedule" invokes command.Schedule

Index

Constants

View Source
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

func DumpMonkeyConfig(cfg *config.Monkey)

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 Execute

func Execute()

Execute is the main entry point for the chaosmonkey cli.

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 Migrate

func Migrate(db mysql.MySQL)

Migrate executes database migration

func Outage

func Outage(ou chaosmonkey.Outage)

Outage prints out "true" if an ongoing outage, else "false"

func Schedule

Schedule executes the "schedule" command. This defines the schedule of terminations for the day and records them as cron jobs

func Terminate

func Terminate(d deps.Deps, app string, account string, region string, stack string, cluster string)

Terminate executes the "terminate" command. This selects an instance based on the app, account, region, stack, cluster passed

region, stack, and cluster may be blank

func Usage

func Usage()

Usage prints usage

Types

This section is empty.

Jump to

Keyboard shortcuts

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