mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 02:45:26 +00:00
22 lines
632 B
Go
22 lines
632 B
Go
package workflows
|
|
|
|
// Workflow is workflow parsed from a yaml file
|
|
type Workflow struct {
|
|
// ID is the unique id for the template
|
|
ID string `yaml:"id"`
|
|
// Info contains information about the template
|
|
Info Info `yaml:"info"`
|
|
// Variables contains the variables accessible to the pseudo-code
|
|
Variables map[string]string `yaml:"variables"`
|
|
// Logic contains the workflow pseudo-code
|
|
Logic string `yaml:"logic"`
|
|
}
|
|
|
|
// Info contains information about workflow
|
|
type Info struct {
|
|
// Name is the name of the workflow
|
|
Name string `yaml:"name"`
|
|
// Author is the name of the author of the workflow
|
|
Author string `yaml:"author"`
|
|
}
|