Documentation
¶
Overview ¶
Package job represents our SiteHost `/job` endpoint
Index ¶
Constants ¶
View Source
const ( // SchedulerType is a job that runs on a scheduler. SchedulerType string = "scheduler" // DaemonType is a job that runs on a daemon. DaemonType = "daemon" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a Service to work with API Jobs.
func (*Client) Get ¶
func (s *Client) Get(ctx context.Context, request GetRequest) (response GetResponse, err error)
Get information about a job.
type GetRequest ¶
GetRequest represents a SiteHost request for GET job api endpoint.
type GetResponse ¶
type GetResponse struct {
Return models.JobDetails `json:"return"`
models.APIResponse
}
GetResponse represents a SiteHost response for GET job api endpoint.
Click to show internal directories.
Click to hide internal directories.