Documentation ¶
Index ¶
- func Logs(id, name, base string) (*os.File, error)
- func ResolveScript(dir, name, defaultExt string) (string, error)
- type Job
- func (job *Job) Close()
- func (job *Job) Err() error
- func (job *Job) ID() uint64
- func (job *Job) IsTerminated() bool
- func (job *Job) Logs(prefixFilter string) string
- func (job *Job) Meta() []string
- func (job *Job) Name() string
- func (job *Job) Run() error
- func (job *Job) SendMessage(message string)
- func (job *Job) Status() Status
- func (job *Job) StatusLabel() string
- func (job *Job) Terminate(err error) error
- type Request
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveScript ¶
ResolveScript is resolving the target script.
Types ¶
type Job ¶ added in v1.15.0
type Job struct { MessageChan chan []byte // contains filtered or unexported fields }
Job a hook job
func NewHookJob ¶ added in v1.15.0
NewHookJob creates new hook job
func (*Job) IsTerminated ¶ added in v1.15.0
IsTerminated ask if the job is terminated
func (*Job) SendMessage ¶ added in v1.15.0
SendMessage send message to the message channel
func (*Job) StatusLabel ¶ added in v1.15.0
StatusLabel return job status as string
type Request ¶ added in v1.15.0
type Request struct { Name string Script string Method string Payload string Args []string Timeout int OutputDir string }
Request is a hook request
Click to show internal directories.
Click to hide internal directories.