Documentation
¶
Overview ¶
Package client provides an HTTP client for interacting with the Job Runner (JR) API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// NewJobChain takes a job chain, and sends it to the JR to be run immediately.
// It returns the URL of the running job chain.
NewJobChain(baseURL string, jobChain proto.JobChain) (*url.URL, error)
// ResumeJobChain takes a suspended job chain and sends it to the JR to be
// resumed. It returns the URL of the running job chain.
ResumeJobChain(baseURL string, sjc proto.SuspendedJobChain) (*url.URL, error)
// StopRequest stops the job chain that corresponds to a given request Id. The
// baseURL should point to the Job Runner running this request.
StopRequest(baseURL string, requestId string) error
// Running reports running jobs. If no filters, all requests and jobs are reported.
Running(baseURL string, f proto.StatusFilter) ([]proto.JobStatus, error)
}
A Client is an HTTP client used for interacting with the JR API.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package api provides controllers for each api endpoint.
|
Package api provides controllers for each api endpoint. |
|
Package chain implements a job chain.
|
Package chain implements a job chain. |
|
Package runner implements running a job.
|
Package runner implements running a job. |
|
Package server bootstraps and runs the Job Runner.
|
Package server bootstraps and runs the Job Runner. |
|
Package status provides system-wide status.
|
Package status provides system-wide status. |
Click to show internal directories.
Click to hide internal directories.