term

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2016 License: Apache-2.0 Imports: 10 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 term contains the logic for terminating instances

Index

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

func Terminate

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

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

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

Jump to

Keyboard shortcuts

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