term

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

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

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