Documentation
¶
Overview ¶
package jobs implements
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct {
TmpDir string
WorkDir string
Ctx context.Context // The context used to manage the Job's entire lifetime.
ID string // The ID of the job to run/being run. Must be unique. Typically this will be the CI job ID.
// contains filtered or unexported fields
}
func (*Job) Close ¶
func (j *Job) Close()
Close() cancels jobs (if still running) and cleans up all resources associated with managing the job.
func (*Job) FollowLogs ¶
FollowLogs writes the stdout/stderr captured from running steps to the supplied writer. The function blocks until the steps are run and logs are written to the writer. Errors returned are indicative of failure to write to the writer, not failure of running steps.
func (*Job) Logs ¶
Logs returns a pair of io.Writers corresponding to the Job's stdout and stderr (in that order).
Click to show internal directories.
Click to hide internal directories.