webhookd/pkg/hook/types.go

27 lines
478 B
Go
Raw Permalink Normal View History

2022-05-26 07:05:49 +00:00
package hook
// Status is the status of a hook
type Status int
const (
// Idle means that the hook is not yet started
Idle Status = iota
// Running means that the hook is running
Running
// Success means that the hook over
Success
// Error means that the hook is over but in error
Error
)
// Request is a hook request
type Request struct {
Name string
Script string
2022-05-26 07:05:49 +00:00
Method string
Payload string
Args []string
Timeout int
OutputDir string
}