Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Profile ¶
type Profile struct { Meta ProfileMeta `yaml:"meta"` Tests []ProfileTest `yaml:"tests"` Rules string `yaml:"rules"` Pass bool }
func NewProfile ¶
NewProfile creates a new profile from a file
type ProfileMeta ¶
type ProfileTest ¶
type ProfileTest struct { Title string `yaml:"test_title"` Description string `yaml:"desc"` Stages []ProfileTestStage `yaml:"stages"` }
type ProfileTestStage ¶
type ProfileTestStage struct { Stage ProfileTestStageInner `yaml:"stage"` Pass bool }
type ProfileTestStageInner ¶
type ProfileTestStageInner struct { Input ProfileTestStageInnerInput `yaml:"input"` Output ProfileTestStageInnerOutput `yaml:"output"` }
type ProfileTestStageInnerInput ¶
type ProfileTestStageInnerInput struct { DestAddr string `yaml:"dest_addr"` Port int `yaml:"port"` Method string `yaml:"method"` Uri string `yaml:"uri"` Version string `yaml:"version"` Data interface{} `yaml:"data"` //Accepts array or string Headers map[string]string `yaml:"headers"` RawRequest string `yaml:"raw_request"` EncodedRequest string `yaml:"encoded_request"` }
type ProfileTestStageInnerOutput ¶
type ProfileTestStageInnerOutput struct { LogContains string `yaml:"log_contains"` NoLogContains string `yaml:"no_log_contains"` ExpectError bool `yaml:"expect_error"` TriggeredRules []int `yaml:"triggered_rules"` NonTriggeredRules []int `yaml:"non_triggered_rules"` Status interface{} `yaml:"status"` }
Click to show internal directories.
Click to hide internal directories.