check.go 693 B

1234567891011121314151617181920212223
  1. package scheme
  2. const CHECK_KIND_BASH = "bash"
  3. const CHECK_KIND_FILE = "file"
  4. type BashCheck struct {
  5. Command string `json:"command" yaml:"command"`
  6. Result Result `json:"result" yaml:"result"`
  7. }
  8. type FileCheck struct {
  9. Path string `json:"path" yaml:"path"`
  10. Processors []Processor `json:"processors" yaml:"processors"`
  11. }
  12. type Check struct {
  13. ID string `json:"id" yaml:"id"`
  14. ContainerID string `json:"container_id" yaml:"container_id"`
  15. Timeout int `json:"timeout" yaml:"timeout"`
  16. Kind string `json:"kind" yaml:"kind"`
  17. KindBash BashCheck `json:"kind_bash" yaml:"kind_bash"`
  18. KindFile FileCheck `json:"kind_file" yaml:"kind_file"`
  19. }