Documentation ¶
Index ¶
- func GetBoundApps(db *sql.DB) []model.Service
- func IsAppHealthy(appInstances map[string]cfclient.AppInstance) bool
- func LoadCFConfig() *cfclient.Config
- func PickAppInstance(appInstances map[string]cfclient.AppInstance) int
- func ShouldProcess(frequency int, lastProcessed string) bool
- func ShouldRun(probability float64) bool
- func TimeNow() string
- func UpdateLastProcessed(db *sql.DB, appID string, lastProcessed string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBoundApps ¶
GetBoundApps - Loads bound apps into memory from database
func IsAppHealthy ¶
IsAppHealthy - determins if an app is currently in "RUNNING" state
func LoadCFConfig ¶
func LoadCFConfig() *cfclient.Config
LoadCFConfig - Loads "cf-service" UPS config
func PickAppInstance ¶
PickAppInstance - selects an app instance index
func ShouldProcess ¶
ShouldProcess - determines if chaos-galago should be run based on frequency and previous run
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.