Documentation ¶
Index ¶
- type AsyncResponse
- type Client
- func (c *Client) GetProject(ctx context.Context, hookID string) (Project, error)
- func (c *Client) RunAllAsync(ctx context.Context, hookID string, buildID string, tunnel config.Tunnel) ([]TestResult, error)
- func (c *Client) RunAllSync(ctx context.Context, hookID string, buildID string, tunnel config.Tunnel) ([]TestResult, error)
- func (c *Client) RunTagAsync(ctx context.Context, hookID string, testTag string, buildID string, ...) ([]TestResult, error)
- func (c *Client) RunTagSync(ctx context.Context, hookID string, testTag string, buildID string, ...) ([]TestResult, error)
- func (c *Client) RunTestAsync(ctx context.Context, hookID string, testID string, buildID string, ...) ([]TestResult, error)
- func (c *Client) RunTestSync(ctx context.Context, hookID string, testID string, buildID string, ...) ([]TestResult, error)
- type Project
- type Test
- type TestResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncResponse ¶
type AsyncResponse struct { ContextIDs []string `json:"contextIds,omitempty"` EventIDs []string `json:"eventIds,omitempty"` TaskID string `json:"taskId,omitempty"` TestIDs []string `json:"testIds,omitempty"` }
AsyncResponse describes the json response from the async api endpoints.
type Client ¶
Client describes an interface to the api-testing rest endpoints.
func (*Client) GetProject ¶
GetProject returns Project metadata for a given hookID.
func (*Client) RunAllAsync ¶
func (c *Client) RunAllAsync(ctx context.Context, hookID string, buildID string, tunnel config.Tunnel) ([]TestResult, error)
RunAllAsync runs all the tests for the project described by hookID and returns without waiting for their results.
func (*Client) RunAllSync ¶
func (c *Client) RunAllSync(ctx context.Context, hookID string, buildID string, tunnel config.Tunnel) ([]TestResult, error)
RunAllSync sychronously runs all the tests for a project described by hookID.
func (*Client) RunTagAsync ¶
func (c *Client) RunTagAsync(ctx context.Context, hookID string, testTag string, buildID string, tunnel config.Tunnel) ([]TestResult, error)
RunTagAsync runs all the tests for a testTag for a project described by hookID and returns without waiting for results.
func (*Client) RunTagSync ¶
func (c *Client) RunTagSync(ctx context.Context, hookID string, testTag string, buildID string, tunnel config.Tunnel) ([]TestResult, error)
RunTagSync sychronously runs the all the tests tagged with testTag for a project described by hookID.
Click to show internal directories.
Click to hide internal directories.