Documentation ¶
Index ¶
- Constants
- func ReplacePlaceholders(msg string, name string, kind string, namespace string, err string, ...) string
- func ReportAttack(client Client, result *chaos.Result, time time.Time) bool
- func ReportSchedule(client Client, schedule *schedule.Schedule) bool
- func Send(client Client, endpoint string, msg string, headers map[string]string) error
- type Client
Constants ¶
View Source
const ( // header EnvVariableRegex = "^{\\$env:\\w+\\}$" // body (message) Name = "{$name}" Kind = "{$kind}" Namespace = "{$namespace}" Timestamp = "{$timestamp}" Time = "{$time}" Date = "{$date}" Error = "{$error}" )
Variables ¶
This section is empty.
Functions ¶
func ReplacePlaceholders ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func CreateClient ¶
func CreateClient() Client
CreateClient creates a new client with a default timeout
Click to show internal directories.
Click to hide internal directories.