Documentation ¶
Overview ¶
Package term contains the logic for terminating instances
Index ¶
- func EligibleInstances(group grp.InstanceGroup, cfg chaosmonkey.AppConfig, app *deploy.App) []*deploy.Instance
- func Fake() chaosmonkey.Terminator
- func PickRandomInstance(group grp.InstanceGroup, cfg chaosmonkey.AppConfig, app *deploy.App) (chaosmonkey.Instance, bool)
- func Terminate(d deps.Deps, app string, account string, region string, stack string, ...) error
- type UnleashedInTestEnv
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EligibleInstances ¶
func EligibleInstances(group grp.InstanceGroup, cfg chaosmonkey.AppConfig, app *deploy.App) []*deploy.Instance
EligibleInstances returns a list of instances that belong to group that are eligible for termination It does not include any instances that match the list of exceptions
func Fake ¶
func Fake() chaosmonkey.Terminator
Fake returns a "fake" terminator that just outputs a message upon instance termination
func PickRandomInstance ¶
func PickRandomInstance(group grp.InstanceGroup, cfg chaosmonkey.AppConfig, app *deploy.App) (chaosmonkey.Instance, bool)
PickRandomInstance randomly selects an eligible instance from a group
Types ¶
type UnleashedInTestEnv ¶
type UnleashedInTestEnv struct{}
UnleashedInTestEnv is an error returned by Terminate if running unleashed in the test environment, which is not allowed
func (UnleashedInTestEnv) Error ¶
func (err UnleashedInTestEnv) Error() string
Click to show internal directories.
Click to hide internal directories.