Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Search(ctx context.Context, opts framework.SearchOptions) (framework.Metadata, error)
- func (c *Client) StartJob(ctx context.Context, opts job.StartOptions) (jobID string, isRDC bool, err error)
- func (c *Client) UploadAsset(jobID string, fileName string, contentType string, content []byte) error
- type FrameworkResponse
- type Job
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrServerError is returned when the server was not able to correctly handle our request (status code >= 500). ErrServerError = errors.New("internal server error") // ErrJobNotFound is returned when the requested job was not found. ErrJobNotFound = errors.New("job was not found") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { HTTPClient *http.Client URL string // e.g.) https://api.<region>.saucelabs.net Credentials credentials.Credentials }
Client service
func (*Client) Search ¶ added in v0.30.0
func (c *Client) Search(ctx context.Context, opts framework.SearchOptions) (framework.Metadata, error)
Search returns metadata for the given search options opts.
type FrameworkResponse ¶ added in v0.27.0
type FrameworkResponse struct { Name string `json:"name"` Version string `json:"version"` Runner runner `json:"runner"` }
FrameworkResponse represents the response body for framework information.
Click to show internal directories.
Click to hide internal directories.