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.
NewJobChain(proto.JobChain) error
// ResumeJobChain takes a suspended job chain and sends it to the JR to be resumed.
ResumeJobChain(proto.SuspendedJobChain) error
// StopRequest stops the job chain that corresponds to a given request Id.
StopRequest(string) error
// RequestStatus gets the status of the job chain that corresponds to a given request Id.
RequestStatus(string) (proto.JobChainStatus, error)
// SysStatRunning reports all running jobs.
SysStatRunning() ([]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 the Job Runner.
|
Package server bootstraps 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.