Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JobAPIResponse ¶
type JobAPIResponse struct { Data struct { ID int `json:"Id,omitempty"` Status string `json:"Status,omitempty"` } `json:"data,omitempty"` }
JobAPIResponse is the response structure for the Job API.
func (*JobAPIResponse) IsDone ¶
func (j *JobAPIResponse) IsDone() bool
IsDone - Returns true if the job is done with a success.
func (*JobAPIResponse) Refresh ¶
func (j *JobAPIResponse) Refresh() error
Refresh - Refreshes the job status.
func (*JobAPIResponse) Wait ¶
func (j *JobAPIResponse) Wait(refreshInterval, timeout int) error
Wait - Waits for the job to be done refreshInterval - The interval in seconds between each refresh timeout - The timeout in seconds.
Click to show internal directories.
Click to hide internal directories.