Discover Packages
github.com/gochaos-app/go-chaos
config
package
Version:
v0.7.0
Opens a new window with list of versions in this module.
Published: Jan 15, 2024
License: GPL-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type ChaosConfig struct {
Tag string `hcl:"tag"`
Chaos string `hcl:"chaos"`
Count int `hcl:"count"`
}
type GenConfig struct {
App string `hcl:"app"`
Description string `hcl:"description"`
Function string `hcl:"function,optional"`
Job []JobConfig `hcl:"job,block"`
Hypothesis *Hypothesis `hcl:"hypothesis,block"`
Notifications []NotifConfig `hcl:"notification,block"`
}
type Hypothesis struct {
Name string `hcl:"name"`
Description string `hcl:"description"`
Pings string `hcl:"workers"`
Url string `hcl:"url"`
Report string `hcl:"report"`
}
type JobConfig struct {
Region string `hcl:"region,optional"`
Namespace string `hcl:"namespace,optional"`
Project string `hcl:"project,optional"`
Cloud string `hcl:"cloud,label"`
Service string `hcl:"service,label"`
Chaos ChaosConfig `hcl:"config,block"`
}
type NotifConfig struct {
Type string `hcl:"type,label"`
From string `hcl:"from,optional"`
To []string `hcl:"to"`
Body string `hcl:"body"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.