webhookd/pkg/hook/types.go
2023-12-22 22:10:19 +00:00

27 lines
478 B
Go

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
Method string
Payload string
Args []string
Timeout int
OutputDir string
}