autify

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

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

View Source
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

func NewGetProjectsProjectIdScenariosScenarioIdRequest

func NewGetProjectsProjectIdScenariosScenarioIdRequest(server string, projectId int, scenarioId int) (*http.Request, error)

NewGetProjectsProjectIdScenariosScenarioIdRequest generates requests for GetProjectsProjectIdScenariosScenarioId

func NewPostSchedulesScheduleIdRequest

func NewPostSchedulesScheduleIdRequest(server string, scheduleId int) (*http.Request, error)

NewPostSchedulesScheduleIdRequest generates requests for PostSchedulesScheduleId

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 (c *Client) GetProjectsProjectIdResultsResultId(ctx context.Context, projectId int, resultId int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProjectsProjectIdScenarios

func (c *Client) GetProjectsProjectIdScenarios(ctx context.Context, projectId int, params *GetProjectsProjectIdScenariosParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProjectsProjectIdScenariosScenarioId

func (c *Client) GetProjectsProjectIdScenariosScenarioId(ctx context.Context, projectId int, scenarioId int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSchedulesScheduleId

func (c *Client) PostSchedulesScheduleId(ctx context.Context, scheduleId int, reqEditors ...RequestEditorFn) (*http.Response, error)

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

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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

Status returns HTTPResponse.Status

func (GetProjectsProjectIdResultsResponse) StatusCode

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

Status returns HTTPResponse.Status

func (GetProjectsProjectIdResultsResultIdResponse) StatusCode

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

Status returns HTTPResponse.Status

func (GetProjectsProjectIdScenariosResponse) StatusCode

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

Status returns HTTPResponse.Status

func (GetProjectsProjectIdScenariosScenarioIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

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

Status returns HTTPResponse.Status

func (PostSchedulesScheduleIdResponse) StatusCode

func (r PostSchedulesScheduleIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL