| 12345678910111213141516171819202122232425262728293031 |
- package scheme
- const PROCESSOR_KIND_MATCH = "match"
- const PROCESSOR_KIND_NOT_MATCH = "not_match"
- const PROCESSOR_KIND_EQUAL = "equal"
- type MatchProcessor struct {
- Expression string `json:"expression" yaml:"expression"`
- Count int `json:"count" yaml:"count"`
- }
- type NotMatchProcessor struct {
- Expression string `json:"expression" yaml:"expression"`
- }
- type EqualProcessor struct {
- Content string `json:"content" yaml:"content"`
- }
- type Processor struct {
- Kind string `json:"kind" yaml:"kind"`
- KindMatch MatchProcessor `json:"kind_match" yaml:"kind_match"`
- KindNotMatch NotMatchProcessor `json:"kind_not_match" yaml:"kind_not_match"`
- KindEqual EqualProcessor `json:"kind_equal" yaml:"kind_equal"`
- }
- type Result struct {
- Code int `json:"code" yaml:"code"`
- Stdout []Processor `json:"stdout" yaml:"stdout"`
- Stderr []Processor `json:"stderr" yaml:"stderr"`
- }
|