Documentation ¶
Index ¶
- type AssignerRequest
- type AssignerResponse
- type Client
- func (c *Client) GetImage(ctx context.Context, f framework.Framework) (string, error)
- func (c *Client) NextAssignment(ctx context.Context, fleetID, suiteName string) (string, error)
- func (c *Client) Register(ctx context.Context, buildID string, testSuites []fleet.TestSuite) (string, error)
- func (c *Client) StartJob(ctx context.Context, opts job.StartOptions) (jobID string, err error)
- type CreatorRequest
- type CreatorResponse
- type FrameworkResponse
- type Job
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignerRequest ¶
type AssignerRequest struct {
SuiteName string `json:"suiteName"`
}
AssignerRequest represents the request body for fleet assignments.
type AssignerResponse ¶
type AssignerResponse struct {
TestFile string `json:"testFile"`
}
AssignerResponse represents the response body for fleet assignments.
type Client ¶
type Client struct { HTTPClient *http.Client URL string // e.g.) https://api.<region>.saucelabs.net Credentials credentials.Credentials }
Client service
func (*Client) GetImage ¶ added in v0.27.0
GetImage returns a docker image for the given framework f.
func (*Client) NextAssignment ¶
NextAssignment fetches the next test assignment based on the suiteName and fleetID. Returns an empty string if all tests have been assigned.
type CreatorRequest ¶
type CreatorRequest struct { BuildID string `json:"buildID"` TestSuites []fleet.TestSuite `json:"testSuites"` }
CreatorRequest represents the request body for creating a fleet.
type CreatorResponse ¶
type CreatorResponse struct {
FleetID string `json:"fleetID"`
}
CreatorResponse represents the response body for creating a fleet.
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.