Documentation ¶
Overview ¶
Package autify provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.
Package autify provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.
Index ¶
- Constants
- func NewGetProjectsProjectIdResultsRequest(server string, projectId int, params *GetProjectsProjectIdResultsParams) (*http.Request, error)
- func NewGetProjectsProjectIdResultsResultIdRequest(server string, projectId int, resultId int) (*http.Request, error)
- func NewGetProjectsProjectIdScenariosRequest(server string, projectId int, params *GetProjectsProjectIdScenariosParams) (*http.Request, error)
- func NewGetProjectsProjectIdScenariosScenarioIdRequest(server string, projectId int, scenarioId int) (*http.Request, error)
- func NewPostSchedulesScheduleIdRequest(server string, scheduleId int) (*http.Request, error)
- type Capability
- type Client
- func (c *Client) GetProjectsProjectIdResults(ctx context.Context, projectId int, params *GetProjectsProjectIdResultsParams, ...) (*http.Response, error)
- func (c *Client) GetProjectsProjectIdResultsResultId(ctx context.Context, projectId int, resultId int, ...) (*http.Response, error)
- func (c *Client) GetProjectsProjectIdScenarios(ctx context.Context, projectId int, ...) (*http.Response, error)
- func (c *Client) GetProjectsProjectIdScenariosScenarioId(ctx context.Context, projectId int, scenarioId int, ...) (*http.Response, error)
- func (c *Client) PostSchedulesScheduleId(ctx context.Context, scheduleId int, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) GetProjectsProjectIdResultsResultIdWithResponse(ctx context.Context, projectId int, resultId int, ...) (*GetProjectsProjectIdResultsResultIdResponse, error)
- func (c *ClientWithResponses) GetProjectsProjectIdResultsWithResponse(ctx context.Context, projectId int, params *GetProjectsProjectIdResultsParams, ...) (*GetProjectsProjectIdResultsResponse, error)
- func (c *ClientWithResponses) GetProjectsProjectIdScenariosScenarioIdWithResponse(ctx context.Context, projectId int, scenarioId int, ...) (*GetProjectsProjectIdScenariosScenarioIdResponse, error)
- func (c *ClientWithResponses) GetProjectsProjectIdScenariosWithResponse(ctx context.Context, projectId int, ...) (*GetProjectsProjectIdScenariosResponse, error)
- func (c *ClientWithResponses) PostSchedulesScheduleIdWithResponse(ctx context.Context, scheduleId int, reqEditors ...RequestEditorFn) (*PostSchedulesScheduleIdResponse, error)
- type ClientWithResponsesInterface
- type GetProjectsProjectIdResultsParams
- type GetProjectsProjectIdResultsResponse
- type GetProjectsProjectIdResultsResultIdResponse
- type GetProjectsProjectIdScenariosParams
- type GetProjectsProjectIdScenariosResponse
- type GetProjectsProjectIdScenariosScenarioIdResponse
- type HttpRequestDoer
- type N200Status
- type PostSchedulesScheduleIdResponse
- type RequestEditorFn
- type Story
- type TestCaseResult
- type TestCaseResultStatus
- type TestPlanResult
- type TestPlanResultStatus
Constants ¶
const (
BearerAuthScopes = "bearerAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewGetProjectsProjectIdResultsRequest ¶
func NewGetProjectsProjectIdResultsRequest(server string, projectId int, params *GetProjectsProjectIdResultsParams) (*http.Request, error)
NewGetProjectsProjectIdResultsRequest generates requests for GetProjectsProjectIdResults
func NewGetProjectsProjectIdResultsResultIdRequest ¶
func NewGetProjectsProjectIdResultsResultIdRequest(server string, projectId int, resultId int) (*http.Request, error)
NewGetProjectsProjectIdResultsResultIdRequest generates requests for GetProjectsProjectIdResultsResultId
func NewGetProjectsProjectIdScenariosRequest ¶
func NewGetProjectsProjectIdScenariosRequest(server string, projectId int, params *GetProjectsProjectIdScenariosParams) (*http.Request, error)
NewGetProjectsProjectIdScenariosRequest generates requests for GetProjectsProjectIdScenarios
Types ¶
type Capability ¶
type Capability struct { Browser *string `json:"browser,omitempty"` BrowserVersion *string `json:"browser_version,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` Device *string `json:"device,omitempty"` Id *int `json:"id,omitempty"` Os *string `json:"os,omitempty"` OsVersion *string `json:"os_version,omitempty"` Resolution *string `json:"resolution,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
Capability defines model for Capability.
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) GetProjectsProjectIdResults ¶
func (c *Client) GetProjectsProjectIdResults(ctx context.Context, projectId int, params *GetProjectsProjectIdResultsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetProjectsProjectIdResultsResultId ¶
func (*Client) GetProjectsProjectIdScenarios ¶
func (c *Client) GetProjectsProjectIdScenarios(ctx context.Context, projectId int, params *GetProjectsProjectIdScenariosParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetProjectsProjectIdScenariosScenarioId ¶
func (*Client) PostSchedulesScheduleId ¶
type ClientInterface ¶
type ClientInterface interface { // GetProjectsProjectIdResults request GetProjectsProjectIdResults(ctx context.Context, projectId int, params *GetProjectsProjectIdResultsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProjectsProjectIdResultsResultId request GetProjectsProjectIdResultsResultId(ctx context.Context, projectId int, resultId int, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProjectsProjectIdScenarios request GetProjectsProjectIdScenarios(ctx context.Context, projectId int, params *GetProjectsProjectIdScenariosParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProjectsProjectIdScenariosScenarioId request GetProjectsProjectIdScenariosScenarioId(ctx context.Context, projectId int, scenarioId int, reqEditors ...RequestEditorFn) (*http.Response, error) // PostSchedulesScheduleId request PostSchedulesScheduleId(ctx context.Context, scheduleId int, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) GetProjectsProjectIdResultsResultIdWithResponse ¶
func (c *ClientWithResponses) GetProjectsProjectIdResultsResultIdWithResponse(ctx context.Context, projectId int, resultId int, reqEditors ...RequestEditorFn) (*GetProjectsProjectIdResultsResultIdResponse, error)
GetProjectsProjectIdResultsResultIdWithResponse request returning *GetProjectsProjectIdResultsResultIdResponse
func (*ClientWithResponses) GetProjectsProjectIdResultsWithResponse ¶
func (c *ClientWithResponses) GetProjectsProjectIdResultsWithResponse(ctx context.Context, projectId int, params *GetProjectsProjectIdResultsParams, reqEditors ...RequestEditorFn) (*GetProjectsProjectIdResultsResponse, error)
GetProjectsProjectIdResultsWithResponse request returning *GetProjectsProjectIdResultsResponse
func (*ClientWithResponses) GetProjectsProjectIdScenariosScenarioIdWithResponse ¶
func (c *ClientWithResponses) GetProjectsProjectIdScenariosScenarioIdWithResponse(ctx context.Context, projectId int, scenarioId int, reqEditors ...RequestEditorFn) (*GetProjectsProjectIdScenariosScenarioIdResponse, error)
GetProjectsProjectIdScenariosScenarioIdWithResponse request returning *GetProjectsProjectIdScenariosScenarioIdResponse
func (*ClientWithResponses) GetProjectsProjectIdScenariosWithResponse ¶
func (c *ClientWithResponses) GetProjectsProjectIdScenariosWithResponse(ctx context.Context, projectId int, params *GetProjectsProjectIdScenariosParams, reqEditors ...RequestEditorFn) (*GetProjectsProjectIdScenariosResponse, error)
GetProjectsProjectIdScenariosWithResponse request returning *GetProjectsProjectIdScenariosResponse
func (*ClientWithResponses) PostSchedulesScheduleIdWithResponse ¶
func (c *ClientWithResponses) PostSchedulesScheduleIdWithResponse(ctx context.Context, scheduleId int, reqEditors ...RequestEditorFn) (*PostSchedulesScheduleIdResponse, error)
PostSchedulesScheduleIdWithResponse request returning *PostSchedulesScheduleIdResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetProjectsProjectIdResults request GetProjectsProjectIdResultsWithResponse(ctx context.Context, projectId int, params *GetProjectsProjectIdResultsParams, reqEditors ...RequestEditorFn) (*GetProjectsProjectIdResultsResponse, error) // GetProjectsProjectIdResultsResultId request GetProjectsProjectIdResultsResultIdWithResponse(ctx context.Context, projectId int, resultId int, reqEditors ...RequestEditorFn) (*GetProjectsProjectIdResultsResultIdResponse, error) // GetProjectsProjectIdScenarios request GetProjectsProjectIdScenariosWithResponse(ctx context.Context, projectId int, params *GetProjectsProjectIdScenariosParams, reqEditors ...RequestEditorFn) (*GetProjectsProjectIdScenariosResponse, error) // GetProjectsProjectIdScenariosScenarioId request GetProjectsProjectIdScenariosScenarioIdWithResponse(ctx context.Context, projectId int, scenarioId int, reqEditors ...RequestEditorFn) (*GetProjectsProjectIdScenariosScenarioIdResponse, error) // PostSchedulesScheduleId request PostSchedulesScheduleIdWithResponse(ctx context.Context, scheduleId int, reqEditors ...RequestEditorFn) (*PostSchedulesScheduleIdResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type GetProjectsProjectIdResultsParams ¶
type GetProjectsProjectIdResultsParams struct { // The number of page returns. Page *int `json:"page,omitempty"` // The number of items returns. Default number is 30 and up to a maximum of 100 PerPage *int `json:"per_page,omitempty"` // Test plan ID used to filter results. TestPlanId *int `json:"test_plan_id,omitempty"` }
GetProjectsProjectIdResultsParams defines parameters for GetProjectsProjectIdResults.
type GetProjectsProjectIdResultsResponse ¶
type GetProjectsProjectIdResultsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]TestPlanResult }
func ParseGetProjectsProjectIdResultsResponse ¶
func ParseGetProjectsProjectIdResultsResponse(rsp *http.Response) (*GetProjectsProjectIdResultsResponse, error)
ParseGetProjectsProjectIdResultsResponse parses an HTTP response from a GetProjectsProjectIdResultsWithResponse call
func (GetProjectsProjectIdResultsResponse) Status ¶
func (r GetProjectsProjectIdResultsResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectsProjectIdResultsResponse) StatusCode ¶
func (r GetProjectsProjectIdResultsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProjectsProjectIdResultsResultIdResponse ¶
type GetProjectsProjectIdResultsResultIdResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { CreatedAt *time.Time `json:"created_at,omitempty"` Duration *int `json:"duration,omitempty"` FinishedAt *time.Time `json:"finished_at,omitempty"` Id *int `json:"id,omitempty"` StartedAt *time.Time `json:"started_at,omitempty"` Status *N200Status `json:"status,omitempty"` TestPlan *struct { CreatedAt *time.Time `json:"created_at,omitempty"` Id *int `json:"id,omitempty"` Name *string `json:"name,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` } `json:"test_plan,omitempty"` TestPlanCapabilityResults *[]struct { Capability *Capability `json:"capability,omitempty"` Id *int `json:"id,omitempty"` TestCaseResults *[]TestCaseResult `json:"test_case_results,omitempty"` } `json:"test_plan_capability_results,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` } }
func ParseGetProjectsProjectIdResultsResultIdResponse ¶
func ParseGetProjectsProjectIdResultsResultIdResponse(rsp *http.Response) (*GetProjectsProjectIdResultsResultIdResponse, error)
ParseGetProjectsProjectIdResultsResultIdResponse parses an HTTP response from a GetProjectsProjectIdResultsResultIdWithResponse call
func (GetProjectsProjectIdResultsResultIdResponse) Status ¶
func (r GetProjectsProjectIdResultsResultIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectsProjectIdResultsResultIdResponse) StatusCode ¶
func (r GetProjectsProjectIdResultsResultIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProjectsProjectIdScenariosParams ¶
type GetProjectsProjectIdScenariosParams struct { // The number of page returns. Page *int `json:"page,omitempty"` }
GetProjectsProjectIdScenariosParams defines parameters for GetProjectsProjectIdScenarios.
type GetProjectsProjectIdScenariosResponse ¶
type GetProjectsProjectIdScenariosResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]Story }
func ParseGetProjectsProjectIdScenariosResponse ¶
func ParseGetProjectsProjectIdScenariosResponse(rsp *http.Response) (*GetProjectsProjectIdScenariosResponse, error)
ParseGetProjectsProjectIdScenariosResponse parses an HTTP response from a GetProjectsProjectIdScenariosWithResponse call
func (GetProjectsProjectIdScenariosResponse) Status ¶
func (r GetProjectsProjectIdScenariosResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectsProjectIdScenariosResponse) StatusCode ¶
func (r GetProjectsProjectIdScenariosResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProjectsProjectIdScenariosScenarioIdResponse ¶
type GetProjectsProjectIdScenariosScenarioIdResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Story }
func ParseGetProjectsProjectIdScenariosScenarioIdResponse ¶
func ParseGetProjectsProjectIdScenariosScenarioIdResponse(rsp *http.Response) (*GetProjectsProjectIdScenariosScenarioIdResponse, error)
ParseGetProjectsProjectIdScenariosScenarioIdResponse parses an HTTP response from a GetProjectsProjectIdScenariosScenarioIdWithResponse call
func (GetProjectsProjectIdScenariosScenarioIdResponse) Status ¶
func (r GetProjectsProjectIdScenariosScenarioIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectsProjectIdScenariosScenarioIdResponse) StatusCode ¶
func (r GetProjectsProjectIdScenariosScenarioIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type N200Status ¶
type N200Status int
type PostSchedulesScheduleIdResponse ¶
type PostSchedulesScheduleIdResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]TestPlanResult }
func ParsePostSchedulesScheduleIdResponse ¶
func ParsePostSchedulesScheduleIdResponse(rsp *http.Response) (*PostSchedulesScheduleIdResponse, error)
ParsePostSchedulesScheduleIdResponse parses an HTTP response from a PostSchedulesScheduleIdWithResponse call
func (PostSchedulesScheduleIdResponse) Status ¶
func (r PostSchedulesScheduleIdResponse) Status() string
Status returns HTTPResponse.Status
func (PostSchedulesScheduleIdResponse) StatusCode ¶
func (r PostSchedulesScheduleIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type Story ¶
type Story struct { CreatedAt *time.Time `json:"created_at,omitempty"` Id *int `json:"id,omitempty"` Name *string `json:"name,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
Story defines model for Story.
type TestCaseResult ¶
type TestCaseResult struct { CreatedAt *time.Time `json:"created_at,omitempty"` Duration *int `json:"duration,omitempty"` FinishedAt *time.Time `json:"finished_at,omitempty"` Id *int `json:"id,omitempty"` StartedAt *time.Time `json:"started_at,omitempty"` Status *TestCaseResultStatus `json:"status,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
TestCaseResult defines model for TestCaseResult.
type TestCaseResultStatus ¶
type TestCaseResultStatus string
TestCaseResultStatus defines model for TestCaseResult.Status.
const ( TestCaseResultStatusFailed TestCaseResultStatus = "failed" TestCaseResultStatusPassed TestCaseResultStatus = "passed" TestCaseResultStatusRunning TestCaseResultStatus = "running" TestCaseResultStatusSkipped TestCaseResultStatus = "skipped" TestCaseResultStatusWaiting TestCaseResultStatus = "waiting" )
Defines values for TestCaseResultStatus.
type TestPlanResult ¶
type TestPlanResult struct { CreatedAt *time.Time `json:"created_at,omitempty"` Duration *int `json:"duration,omitempty"` FinishedAt *time.Time `json:"finished_at,omitempty"` Id *int `json:"id,omitempty"` StartedAt *time.Time `json:"started_at,omitempty"` Status *TestPlanResultStatus `json:"status,omitempty"` TestPlan *struct { CreatedAt *time.Time `json:"created_at,omitempty"` Id *int `json:"id,omitempty"` Name *string `json:"name,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` } `json:"test_plan,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` }
TestPlanResult defines model for TestPlanResult.
type TestPlanResultStatus ¶
type TestPlanResultStatus string
TestPlanResultStatus defines model for TestPlanResult.Status.
const ( TestPlanResultStatusFailed TestPlanResultStatus = "failed" TestPlanResultStatusPassed TestPlanResultStatus = "passed" TestPlanResultStatusRunning TestPlanResultStatus = "running" TestPlanResultStatusSkipped TestPlanResultStatus = "skipped" TestPlanResultStatusWaiting TestPlanResultStatus = "waiting" )
Defines values for TestPlanResultStatus.