config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChaosConfig

type ChaosConfig struct {
	Tag   string `hcl:"tag"`
	Chaos string `hcl:"chaos"`
	Count int    `hcl:"count"`
}

type GenConfig

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

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

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

type NotifConfig struct {
	Type string   `hcl:"type,label"`
	From string   `hcl:"from,optional"` // Only used for gmail notification
	To   []string `hcl:"to"`            // Several emails or channels can be specified here
	Body string   `hcl:"body"`
}

Jump to

Keyboard shortcuts

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