Documentation ¶
Overview ¶
Package templates contains the parser for a template for the engine.
Index ¶
Constants ¶
View Source
const ( SeverityHigh = "high" SeverityMedium = "medium" SeverityLow = "low" )
Levels of severity for a request template
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct { // Name is the name of the template Name string `yaml:"name"` // Author is the name of the author of the template Author string `yaml:"author"` // Severity optionally describes the severity of the template Severity string `yaml:"severity,omitempty"` }
Info contains information about the request template
type Template ¶
type Template struct { // ID is the unique id for the template ID string `yaml:"id"` // Info contains information about the template Info Info `yaml:"info"` // Request contains the request to make in the template Requests []*requests.Request `yaml:"requests"` }
Template is a request template parsed from a yaml file
func ParseTemplate ¶
ParseTemplate parses a yaml request template file
Click to show internal directories.
Click to hide internal directories.