Documentation ¶
Overview ¶
Package term contains the logic for terminating instances
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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, dep deploy.Deployment) (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.