Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var State summaryState
State holds the values for all probe and scenario audits throughout the runtime
Functions ¶
This section is empty.
Types ¶
type Probe ¶
type Probe struct {
Meta map[string]interface{}
PodsCreated int
PodsDestroyed int
ScenariosAttempted int
ScenariosSucceeded int
ScenariosFailed int
Result string
// contains filtered or unexported fields
}
Probe is passed through various functions to audit the probe's progress
func (*Probe) CountPodCreated ¶
CountPodCreated increments pods_created for probe
func (*Probe) CountPodDestroyed ¶
func (e *Probe) CountPodDestroyed()
CountPodDestroyed increments pods_destroyed for probe
func (*Probe) InitializeAuditor ¶
func (e *Probe) InitializeAuditor(name string, tags []*messages.Pickle_PickleTag) *ScenarioAudit
InitializeAuditor creates a new audit entry for the specified scenario
type ProbeAudit ¶
type ProbeAudit struct {
Name string
PodsDestroyed *int
ScenariosAttempted *int
ScenariosSucceeded *int
ScenariosFailed *int
Result *string
Scenarios map[int]*ScenarioAudit
// contains filtered or unexported fields
}
ProbeAudit is used to hold all information related to probe execution
func (*ProbeAudit) Write ¶
func (e *ProbeAudit) Write()
type ScenarioAudit ¶
type ScenarioAudit struct {
Name string
Result string // Passed / Failed / Given Not Met
Tags []string
Steps map[int]*stepAudit
}
ScenarioAudit is used by scenario states to audit progress through each step
func (*ScenarioAudit) AuditScenarioStep ¶
func (p *ScenarioAudit) AuditScenarioStep(stepName, description string, payload interface{}, err error)
AuditScenarioStep sets description, payload, and pass/fail based on err parameter. This function should be deferred to catch panic behavior, otherwise the audit will not be logged on panic