Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobHTTPClient ¶
type JobHTTPClient interface { // GetJobDetail sends http request to the specific jobmaster to get job detail // path format for get job detail openapi is: 'api/v1/jobs/${JobID}/status' // If no error happens and the response status code is 2XX, return the response body as the job detail. // Otherwise, return nil and an openapi.HTTPError with code and message. GetJobDetail(ctx context.Context, jobMasterAddr string, jobID string) ([]byte, *openapi.HTTPError) // Close releases the resources Close() }
JobHTTPClient is the http client for job operations, like 'get job detail'
func NewJobHTTPClient ¶
func NewJobHTTPClient(cli *httputil.Client) JobHTTPClient
NewJobHTTPClient news a JobHTTPClient.
Click to show internal directories.
Click to hide internal directories.