Documentation
¶
Overview ¶
Package openapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT.
Package openapi is reserved for generated API client code.
Generation entrypoint:
make openapi-generate
Generated files in this directory must not be edited manually.
Index ¶
- Constants
- func NewAuthCliGoogleExchangeRequest(server string, body AuthCliGoogleExchangeJSONRequestBody) (*http.Request, error)
- func NewAuthCliGoogleExchangeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAuthCliGoogleStartRequest(server string) (*http.Request, error)
- func NewAuthGoogleCallbackRequest(server string, params *AuthGoogleCallbackParams) (*http.Request, error)
- func NewAuthGoogleRequest(server string) (*http.Request, error)
- func NewAuthLoginRequest(server string, body AuthLoginJSONRequestBody) (*http.Request, error)
- func NewAuthLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAuthMeRequest(server string) (*http.Request, error)
- func NewAuthRegisterRequest(server string, body AuthRegisterJSONRequestBody) (*http.Request, error)
- func NewAuthRegisterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAuthRegistrationCompleteRequest(server string, body AuthRegistrationCompleteJSONRequestBody) (*http.Request, error)
- func NewAuthRegistrationCompleteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAuthRegistrationResendRequest(server string, body AuthRegistrationResendJSONRequestBody) (*http.Request, error)
- func NewAuthRegistrationResendRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAuthRegistrationStartRequest(server string, body AuthRegistrationStartJSONRequestBody) (*http.Request, error)
- func NewAuthRegistrationStartRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateManagementUserRequest(server string, body CreateManagementUserJSONRequestBody) (*http.Request, error)
- func NewCreateManagementUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateMockFileRequestWithBody(server string, params *CreateMockFileParams, contentType string, ...) (*http.Request, error)
- func NewCreateMockRawRequest(server string, params *CreateMockRawParams, body CreateMockRawJSONRequestBody) (*http.Request, error)
- func NewCreateMockRawRequestWithBody(server string, params *CreateMockRawParams, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteMockRequest(server string, mockId MockId) (*http.Request, error)
- func NewGetMockRequest(server string, mockId MockId) (*http.Request, error)
- func NewGetMockStatsRequest(server string, mockId MockId, params *GetMockStatsParams) (*http.Request, error)
- func NewHealthCheckRequest(server string) (*http.Request, error)
- func NewListMocksRequest(server string, params *ListMocksParams) (*http.Request, error)
- func NewRestartMockRequest(server string, mockId MockId) (*http.Request, error)
- func NewValidateHarFileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewValidateHarRawRequest(server string, body ValidateHarRawJSONRequestBody) (*http.Request, error)
- func NewValidateHarRawRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- type AuthCliGoogleExchangeJSONRequestBody
- type AuthCliGoogleExchangeResp
- type AuthCliGoogleStartResp
- type AuthGoogleCallbackParams
- type AuthGoogleCallbackResp
- type AuthGoogleResp
- type AuthLoginJSONRequestBody
- type AuthLoginResp
- type AuthMeResp
- type AuthRegisterJSONRequestBody
- type AuthRegisterResp
- type AuthRegistrationCompleteJSONRequestBody
- type AuthRegistrationCompleteResp
- type AuthRegistrationResendJSONRequestBody
- type AuthRegistrationResendResp
- type AuthRegistrationStartJSONRequestBody
- type AuthRegistrationStartResp
- type BadRequest
- type CliGoogleExchangePendingResponse
- type CliGoogleExchangePendingResponseStatus
- type CliGoogleExchangeRequest
- type CliGoogleStartResponse
- type Client
- func (c *Client) AuthCliGoogleExchange(ctx context.Context, body AuthCliGoogleExchangeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AuthCliGoogleExchangeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AuthCliGoogleStart(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AuthGoogle(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AuthGoogleCallback(ctx context.Context, params *AuthGoogleCallbackParams, ...) (*http.Response, error)
- func (c *Client) AuthLogin(ctx context.Context, body AuthLoginJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AuthLoginWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AuthMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AuthRegister(ctx context.Context, body AuthRegisterJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AuthRegisterWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AuthRegistrationComplete(ctx context.Context, body AuthRegistrationCompleteJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AuthRegistrationCompleteWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AuthRegistrationResend(ctx context.Context, body AuthRegistrationResendJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AuthRegistrationResendWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AuthRegistrationStart(ctx context.Context, body AuthRegistrationStartJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AuthRegistrationStartWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateManagementUser(ctx context.Context, body CreateManagementUserJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateManagementUserWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateMockFileWithBody(ctx context.Context, params *CreateMockFileParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateMockRaw(ctx context.Context, params *CreateMockRawParams, ...) (*http.Response, error)
- func (c *Client) CreateMockRawWithBody(ctx context.Context, params *CreateMockRawParams, contentType string, ...) (*http.Response, error)
- func (c *Client) DeleteMock(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMock(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMockStats(ctx context.Context, mockId MockId, params *GetMockStatsParams, ...) (*http.Response, error)
- func (c *Client) HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListMocks(ctx context.Context, params *ListMocksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RestartMock(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ValidateHarFileWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ValidateHarRaw(ctx context.Context, body ValidateHarRawJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ValidateHarRawWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AuthCliGoogleExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AuthCliGoogleExchangeResp, error)
- func (c *ClientWithResponses) AuthCliGoogleExchangeWithResponse(ctx context.Context, body AuthCliGoogleExchangeJSONRequestBody, ...) (*AuthCliGoogleExchangeResp, error)
- func (c *ClientWithResponses) AuthCliGoogleStartWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthCliGoogleStartResp, error)
- func (c *ClientWithResponses) AuthGoogleCallbackWithResponse(ctx context.Context, params *AuthGoogleCallbackParams, ...) (*AuthGoogleCallbackResp, error)
- func (c *ClientWithResponses) AuthGoogleWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGoogleResp, error)
- func (c *ClientWithResponses) AuthLoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AuthLoginResp, error)
- func (c *ClientWithResponses) AuthLoginWithResponse(ctx context.Context, body AuthLoginJSONRequestBody, ...) (*AuthLoginResp, error)
- func (c *ClientWithResponses) AuthMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthMeResp, error)
- func (c *ClientWithResponses) AuthRegisterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AuthRegisterResp, error)
- func (c *ClientWithResponses) AuthRegisterWithResponse(ctx context.Context, body AuthRegisterJSONRequestBody, ...) (*AuthRegisterResp, error)
- func (c *ClientWithResponses) AuthRegistrationCompleteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AuthRegistrationCompleteResp, error)
- func (c *ClientWithResponses) AuthRegistrationCompleteWithResponse(ctx context.Context, body AuthRegistrationCompleteJSONRequestBody, ...) (*AuthRegistrationCompleteResp, error)
- func (c *ClientWithResponses) AuthRegistrationResendWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AuthRegistrationResendResp, error)
- func (c *ClientWithResponses) AuthRegistrationResendWithResponse(ctx context.Context, body AuthRegistrationResendJSONRequestBody, ...) (*AuthRegistrationResendResp, error)
- func (c *ClientWithResponses) AuthRegistrationStartWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AuthRegistrationStartResp, error)
- func (c *ClientWithResponses) AuthRegistrationStartWithResponse(ctx context.Context, body AuthRegistrationStartJSONRequestBody, ...) (*AuthRegistrationStartResp, error)
- func (c *ClientWithResponses) CreateManagementUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateManagementUserResp, error)
- func (c *ClientWithResponses) CreateManagementUserWithResponse(ctx context.Context, body CreateManagementUserJSONRequestBody, ...) (*CreateManagementUserResp, error)
- func (c *ClientWithResponses) CreateMockFileWithBodyWithResponse(ctx context.Context, params *CreateMockFileParams, contentType string, ...) (*CreateMockFileResp, error)
- func (c *ClientWithResponses) CreateMockRawWithBodyWithResponse(ctx context.Context, params *CreateMockRawParams, contentType string, ...) (*CreateMockRawResp, error)
- func (c *ClientWithResponses) CreateMockRawWithResponse(ctx context.Context, params *CreateMockRawParams, ...) (*CreateMockRawResp, error)
- func (c *ClientWithResponses) DeleteMockWithResponse(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*DeleteMockResp, error)
- func (c *ClientWithResponses) GetMockStatsWithResponse(ctx context.Context, mockId MockId, params *GetMockStatsParams, ...) (*GetMockStatsResp, error)
- func (c *ClientWithResponses) GetMockWithResponse(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*GetMockResp, error)
- func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResp, error)
- func (c *ClientWithResponses) ListMocksWithResponse(ctx context.Context, params *ListMocksParams, reqEditors ...RequestEditorFn) (*ListMocksResp, error)
- func (c *ClientWithResponses) RestartMockWithResponse(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*RestartMockResp, error)
- func (c *ClientWithResponses) ValidateHarFileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ValidateHarFileResp, error)
- func (c *ClientWithResponses) ValidateHarRawWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ValidateHarRawResp, error)
- func (c *ClientWithResponses) ValidateHarRawWithResponse(ctx context.Context, body ValidateHarRawJSONRequestBody, ...) (*ValidateHarRawResp, error)
- type ClientWithResponsesInterface
- type Conflict
- type CreateManagementUserJSONBody
- type CreateManagementUserJSONRequestBody
- type CreateManagementUserResp
- type CreateMockFileMultipartBody
- type CreateMockFileMultipartRequestBody
- type CreateMockFileParams
- type CreateMockFileResp
- type CreateMockRawJSONBody
- type CreateMockRawJSONRequestBody
- type CreateMockRawParams
- type CreateMockRawResp
- type CreateMockResponse
- type CreateMockWrapped
- type CrossDomainMainDomain
- type DeleteMockResp
- type DomainMockInfo
- type EndpointKey
- type EndpointStats
- type ErrorResponse
- type Forbidden
- type GetMockResp
- type GetMockStatsParams
- type GetMockStatsResp
- type HarDocument
- type HarEntryValidation
- type HarValidationResult
- type HealthCheckResp
- type HistoryItem
- type HttpRequestDoer
- type InternalError
- type LatencyEmulation
- type ListMocksParams
- type ListMocksResp
- type ListMocksResponse
- type LoginRequest
- type LoginResponse
- type ManagementUserResponse
- type MatchingParameters
- type MatchingRules
- type MeResponse
- type MockId
- type MockStatsResponse
- type MockSummary
- type NotFound
- type PayloadTooLarge
- type RegisterRequest
- type RegistrationAcceptedResponse
- type RegistrationCompleteRequest
- type RegistrationCompleteResponse
- type RegistrationResendRequest
- type RegistrationStartRequest
- type ReplaceLinks
- type RequestEditorFn
- type RestartMockResp
- type SslEnabled
- type TtlSeconds
- type Unauthorized
- type UnmatchedReason
- type UnprocessableEntity
- type UserTotals
- type ValidateHarFileMultipartBody
- type ValidateHarFileMultipartRequestBody
- type ValidateHarFileResp
- type ValidateHarRawJSONRequestBody
- type ValidateHarRawResp
Constants ¶
const (
BearerAuthScopes = "bearerAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewAuthCliGoogleExchangeRequest ¶
func NewAuthCliGoogleExchangeRequest(server string, body AuthCliGoogleExchangeJSONRequestBody) (*http.Request, error)
NewAuthCliGoogleExchangeRequest calls the generic AuthCliGoogleExchange builder with application/json body
func NewAuthCliGoogleExchangeRequestWithBody ¶
func NewAuthCliGoogleExchangeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAuthCliGoogleExchangeRequestWithBody generates requests for AuthCliGoogleExchange with any type of body
func NewAuthCliGoogleStartRequest ¶
NewAuthCliGoogleStartRequest generates requests for AuthCliGoogleStart
func NewAuthGoogleCallbackRequest ¶
func NewAuthGoogleCallbackRequest(server string, params *AuthGoogleCallbackParams) (*http.Request, error)
NewAuthGoogleCallbackRequest generates requests for AuthGoogleCallback
func NewAuthGoogleRequest ¶
NewAuthGoogleRequest generates requests for AuthGoogle
func NewAuthLoginRequest ¶
func NewAuthLoginRequest(server string, body AuthLoginJSONRequestBody) (*http.Request, error)
NewAuthLoginRequest calls the generic AuthLogin builder with application/json body
func NewAuthLoginRequestWithBody ¶
func NewAuthLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAuthLoginRequestWithBody generates requests for AuthLogin with any type of body
func NewAuthMeRequest ¶
NewAuthMeRequest generates requests for AuthMe
func NewAuthRegisterRequest ¶
func NewAuthRegisterRequest(server string, body AuthRegisterJSONRequestBody) (*http.Request, error)
NewAuthRegisterRequest calls the generic AuthRegister builder with application/json body
func NewAuthRegisterRequestWithBody ¶
func NewAuthRegisterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAuthRegisterRequestWithBody generates requests for AuthRegister with any type of body
func NewAuthRegistrationCompleteRequest ¶
func NewAuthRegistrationCompleteRequest(server string, body AuthRegistrationCompleteJSONRequestBody) (*http.Request, error)
NewAuthRegistrationCompleteRequest calls the generic AuthRegistrationComplete builder with application/json body
func NewAuthRegistrationCompleteRequestWithBody ¶
func NewAuthRegistrationCompleteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAuthRegistrationCompleteRequestWithBody generates requests for AuthRegistrationComplete with any type of body
func NewAuthRegistrationResendRequest ¶
func NewAuthRegistrationResendRequest(server string, body AuthRegistrationResendJSONRequestBody) (*http.Request, error)
NewAuthRegistrationResendRequest calls the generic AuthRegistrationResend builder with application/json body
func NewAuthRegistrationResendRequestWithBody ¶
func NewAuthRegistrationResendRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAuthRegistrationResendRequestWithBody generates requests for AuthRegistrationResend with any type of body
func NewAuthRegistrationStartRequest ¶
func NewAuthRegistrationStartRequest(server string, body AuthRegistrationStartJSONRequestBody) (*http.Request, error)
NewAuthRegistrationStartRequest calls the generic AuthRegistrationStart builder with application/json body
func NewAuthRegistrationStartRequestWithBody ¶
func NewAuthRegistrationStartRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAuthRegistrationStartRequestWithBody generates requests for AuthRegistrationStart with any type of body
func NewCreateManagementUserRequest ¶
func NewCreateManagementUserRequest(server string, body CreateManagementUserJSONRequestBody) (*http.Request, error)
NewCreateManagementUserRequest calls the generic CreateManagementUser builder with application/json body
func NewCreateManagementUserRequestWithBody ¶
func NewCreateManagementUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateManagementUserRequestWithBody generates requests for CreateManagementUser with any type of body
func NewCreateMockFileRequestWithBody ¶
func NewCreateMockFileRequestWithBody(server string, params *CreateMockFileParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateMockFileRequestWithBody generates requests for CreateMockFile with any type of body
func NewCreateMockRawRequest ¶
func NewCreateMockRawRequest(server string, params *CreateMockRawParams, body CreateMockRawJSONRequestBody) (*http.Request, error)
NewCreateMockRawRequest calls the generic CreateMockRaw builder with application/json body
func NewCreateMockRawRequestWithBody ¶
func NewCreateMockRawRequestWithBody(server string, params *CreateMockRawParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateMockRawRequestWithBody generates requests for CreateMockRaw with any type of body
func NewDeleteMockRequest ¶
NewDeleteMockRequest generates requests for DeleteMock
func NewGetMockRequest ¶
NewGetMockRequest generates requests for GetMock
func NewGetMockStatsRequest ¶
func NewGetMockStatsRequest(server string, mockId MockId, params *GetMockStatsParams) (*http.Request, error)
NewGetMockStatsRequest generates requests for GetMockStats
func NewHealthCheckRequest ¶
NewHealthCheckRequest generates requests for HealthCheck
func NewListMocksRequest ¶
func NewListMocksRequest(server string, params *ListMocksParams) (*http.Request, error)
NewListMocksRequest generates requests for ListMocks
func NewRestartMockRequest ¶
NewRestartMockRequest generates requests for RestartMock
func NewValidateHarFileRequestWithBody ¶
func NewValidateHarFileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewValidateHarFileRequestWithBody generates requests for ValidateHarFile with any type of body
func NewValidateHarRawRequest ¶
func NewValidateHarRawRequest(server string, body ValidateHarRawJSONRequestBody) (*http.Request, error)
NewValidateHarRawRequest calls the generic ValidateHarRaw builder with application/json body
Types ¶
type AuthCliGoogleExchangeJSONRequestBody ¶
type AuthCliGoogleExchangeJSONRequestBody = CliGoogleExchangeRequest
AuthCliGoogleExchangeJSONRequestBody defines body for AuthCliGoogleExchange for application/json ContentType.
type AuthCliGoogleExchangeResp ¶
type AuthCliGoogleExchangeResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LoginResponse
JSON202 *CliGoogleExchangePendingResponse
JSON400 *BadRequest
JSON401 *Unauthorized
JSON404 *NotFound
}
func ParseAuthCliGoogleExchangeResp ¶
func ParseAuthCliGoogleExchangeResp(rsp *http.Response) (*AuthCliGoogleExchangeResp, error)
ParseAuthCliGoogleExchangeResp parses an HTTP response from a AuthCliGoogleExchangeWithResponse call
func (AuthCliGoogleExchangeResp) Status ¶
func (r AuthCliGoogleExchangeResp) Status() string
Status returns HTTPResponse.Status
func (AuthCliGoogleExchangeResp) StatusCode ¶
func (r AuthCliGoogleExchangeResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuthCliGoogleStartResp ¶
type AuthCliGoogleStartResp struct {
Body []byte
HTTPResponse *http.Response
JSON201 *CliGoogleStartResponse
JSON500 *InternalError
}
func ParseAuthCliGoogleStartResp ¶
func ParseAuthCliGoogleStartResp(rsp *http.Response) (*AuthCliGoogleStartResp, error)
ParseAuthCliGoogleStartResp parses an HTTP response from a AuthCliGoogleStartWithResponse call
func (AuthCliGoogleStartResp) Status ¶
func (r AuthCliGoogleStartResp) Status() string
Status returns HTTPResponse.Status
func (AuthCliGoogleStartResp) StatusCode ¶
func (r AuthCliGoogleStartResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuthGoogleCallbackParams ¶
type AuthGoogleCallbackParams struct {
Code string `form:"code" json:"code"`
State string `form:"state" json:"state"`
}
AuthGoogleCallbackParams defines parameters for AuthGoogleCallback.
type AuthGoogleCallbackResp ¶
type AuthGoogleCallbackResp struct {
Body []byte
HTTPResponse *http.Response
JSON400 *BadRequest
JSON500 *InternalError
}
func ParseAuthGoogleCallbackResp ¶
func ParseAuthGoogleCallbackResp(rsp *http.Response) (*AuthGoogleCallbackResp, error)
ParseAuthGoogleCallbackResp parses an HTTP response from a AuthGoogleCallbackWithResponse call
func (AuthGoogleCallbackResp) Status ¶
func (r AuthGoogleCallbackResp) Status() string
Status returns HTTPResponse.Status
func (AuthGoogleCallbackResp) StatusCode ¶
func (r AuthGoogleCallbackResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuthGoogleResp ¶
type AuthGoogleResp struct {
Body []byte
HTTPResponse *http.Response
JSON500 *InternalError
}
func ParseAuthGoogleResp ¶
func ParseAuthGoogleResp(rsp *http.Response) (*AuthGoogleResp, error)
ParseAuthGoogleResp parses an HTTP response from a AuthGoogleWithResponse call
func (AuthGoogleResp) Status ¶
func (r AuthGoogleResp) Status() string
Status returns HTTPResponse.Status
func (AuthGoogleResp) StatusCode ¶
func (r AuthGoogleResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuthLoginJSONRequestBody ¶
type AuthLoginJSONRequestBody = LoginRequest
AuthLoginJSONRequestBody defines body for AuthLogin for application/json ContentType.
type AuthLoginResp ¶
type AuthLoginResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LoginResponse
JSON401 *Unauthorized
JSON500 *InternalError
}
func ParseAuthLoginResp ¶
func ParseAuthLoginResp(rsp *http.Response) (*AuthLoginResp, error)
ParseAuthLoginResp parses an HTTP response from a AuthLoginWithResponse call
func (AuthLoginResp) Status ¶
func (r AuthLoginResp) Status() string
Status returns HTTPResponse.Status
func (AuthLoginResp) StatusCode ¶
func (r AuthLoginResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuthMeResp ¶
type AuthMeResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MeResponse
JSON401 *Unauthorized
JSON500 *InternalError
}
func ParseAuthMeResp ¶
func ParseAuthMeResp(rsp *http.Response) (*AuthMeResp, error)
ParseAuthMeResp parses an HTTP response from a AuthMeWithResponse call
func (AuthMeResp) StatusCode ¶
func (r AuthMeResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuthRegisterJSONRequestBody ¶
type AuthRegisterJSONRequestBody = RegisterRequest
AuthRegisterJSONRequestBody defines body for AuthRegister for application/json ContentType.
type AuthRegisterResp ¶
type AuthRegisterResp struct {
Body []byte
HTTPResponse *http.Response
JSON202 *RegistrationAcceptedResponse
JSON400 *BadRequest
JSON409 *Conflict
JSON500 *InternalError
}
func ParseAuthRegisterResp ¶
func ParseAuthRegisterResp(rsp *http.Response) (*AuthRegisterResp, error)
ParseAuthRegisterResp parses an HTTP response from a AuthRegisterWithResponse call
func (AuthRegisterResp) Status ¶
func (r AuthRegisterResp) Status() string
Status returns HTTPResponse.Status
func (AuthRegisterResp) StatusCode ¶
func (r AuthRegisterResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuthRegistrationCompleteJSONRequestBody ¶
type AuthRegistrationCompleteJSONRequestBody = RegistrationCompleteRequest
AuthRegistrationCompleteJSONRequestBody defines body for AuthRegistrationComplete for application/json ContentType.
type AuthRegistrationCompleteResp ¶
type AuthRegistrationCompleteResp struct {
Body []byte
HTTPResponse *http.Response
JSON201 *RegistrationCompleteResponse
JSON400 *BadRequest
JSON404 *NotFound
JSON409 *Conflict
JSON410 *ErrorResponse
JSON422 *UnprocessableEntity
JSON500 *InternalError
}
func ParseAuthRegistrationCompleteResp ¶
func ParseAuthRegistrationCompleteResp(rsp *http.Response) (*AuthRegistrationCompleteResp, error)
ParseAuthRegistrationCompleteResp parses an HTTP response from a AuthRegistrationCompleteWithResponse call
func (AuthRegistrationCompleteResp) Status ¶
func (r AuthRegistrationCompleteResp) Status() string
Status returns HTTPResponse.Status
func (AuthRegistrationCompleteResp) StatusCode ¶
func (r AuthRegistrationCompleteResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuthRegistrationResendJSONRequestBody ¶
type AuthRegistrationResendJSONRequestBody = RegistrationResendRequest
AuthRegistrationResendJSONRequestBody defines body for AuthRegistrationResend for application/json ContentType.
type AuthRegistrationResendResp ¶
type AuthRegistrationResendResp struct {
Body []byte
HTTPResponse *http.Response
JSON202 *RegistrationAcceptedResponse
JSON400 *BadRequest
JSON422 *UnprocessableEntity
JSON500 *InternalError
}
func ParseAuthRegistrationResendResp ¶
func ParseAuthRegistrationResendResp(rsp *http.Response) (*AuthRegistrationResendResp, error)
ParseAuthRegistrationResendResp parses an HTTP response from a AuthRegistrationResendWithResponse call
func (AuthRegistrationResendResp) Status ¶
func (r AuthRegistrationResendResp) Status() string
Status returns HTTPResponse.Status
func (AuthRegistrationResendResp) StatusCode ¶
func (r AuthRegistrationResendResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuthRegistrationStartJSONRequestBody ¶
type AuthRegistrationStartJSONRequestBody = RegistrationStartRequest
AuthRegistrationStartJSONRequestBody defines body for AuthRegistrationStart for application/json ContentType.
type AuthRegistrationStartResp ¶
type AuthRegistrationStartResp struct {
Body []byte
HTTPResponse *http.Response
JSON202 *RegistrationAcceptedResponse
JSON400 *BadRequest
JSON409 *Conflict
JSON422 *UnprocessableEntity
JSON500 *InternalError
}
func ParseAuthRegistrationStartResp ¶
func ParseAuthRegistrationStartResp(rsp *http.Response) (*AuthRegistrationStartResp, error)
ParseAuthRegistrationStartResp parses an HTTP response from a AuthRegistrationStartWithResponse call
func (AuthRegistrationStartResp) Status ¶
func (r AuthRegistrationStartResp) Status() string
Status returns HTTPResponse.Status
func (AuthRegistrationStartResp) StatusCode ¶
func (r AuthRegistrationStartResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CliGoogleExchangePendingResponse ¶
type CliGoogleExchangePendingResponse struct {
// RetryAfterSeconds Recommended delay before the next poll attempt.
RetryAfterSeconds int `json:"retry_after_seconds"`
// Status Current state of the one-time-code session.
Status CliGoogleExchangePendingResponseStatus `json:"status"`
}
CliGoogleExchangePendingResponse Polling response while the browser authentication is not completed yet.
type CliGoogleExchangePendingResponseStatus ¶
type CliGoogleExchangePendingResponseStatus string
CliGoogleExchangePendingResponseStatus Current state of the one-time-code session.
const (
Pending CliGoogleExchangePendingResponseStatus = "pending"
)
Defines values for CliGoogleExchangePendingResponseStatus.
func (CliGoogleExchangePendingResponseStatus) Valid ¶
func (e CliGoogleExchangePendingResponseStatus) Valid() bool
Valid indicates whether the value is a known member of the CliGoogleExchangePendingResponseStatus enum.
type CliGoogleExchangeRequest ¶
type CliGoogleExchangeRequest struct {
// OneTimeCode One-time code from `/api/v1/auth/cli/google/start`.
OneTimeCode string `json:"one_time_code"`
}
CliGoogleExchangeRequest Request payload for exchanging a CLI OAuth one-time code.
type CliGoogleStartResponse ¶
type CliGoogleStartResponse struct {
// AuthorizationUrl URL that the user should open in a browser to complete Google OAuth.
AuthorizationUrl string `json:"authorization_url"`
// ExpiresAt RFC3339 UTC timestamp when the one-time code expires.
ExpiresAt time.Time `json:"expires_at"`
// IntervalSeconds Recommended polling interval for `/api/v1/auth/cli/google/exchange`.
IntervalSeconds int `json:"interval_seconds"`
// OneTimeCode Opaque one-time code that identifies the CLI auth session.
OneTimeCode string `json:"one_time_code"`
}
CliGoogleStartResponse Response payload for starting CLI Google OAuth one-time code flow.
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) AuthCliGoogleExchange ¶
func (c *Client) AuthCliGoogleExchange(ctx context.Context, body AuthCliGoogleExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AuthCliGoogleExchangeWithBody ¶
func (*Client) AuthCliGoogleStart ¶
func (*Client) AuthGoogle ¶
func (*Client) AuthGoogleCallback ¶
func (c *Client) AuthGoogleCallback(ctx context.Context, params *AuthGoogleCallbackParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AuthLogin ¶
func (c *Client) AuthLogin(ctx context.Context, body AuthLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AuthLoginWithBody ¶
func (*Client) AuthRegister ¶
func (c *Client) AuthRegister(ctx context.Context, body AuthRegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AuthRegisterWithBody ¶
func (*Client) AuthRegistrationComplete ¶
func (c *Client) AuthRegistrationComplete(ctx context.Context, body AuthRegistrationCompleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AuthRegistrationCompleteWithBody ¶
func (*Client) AuthRegistrationResend ¶
func (c *Client) AuthRegistrationResend(ctx context.Context, body AuthRegistrationResendJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AuthRegistrationResendWithBody ¶
func (*Client) AuthRegistrationStart ¶
func (c *Client) AuthRegistrationStart(ctx context.Context, body AuthRegistrationStartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AuthRegistrationStartWithBody ¶
func (*Client) CreateManagementUser ¶
func (c *Client) CreateManagementUser(ctx context.Context, body CreateManagementUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateManagementUserWithBody ¶
func (*Client) CreateMockFileWithBody ¶
func (*Client) CreateMockRaw ¶
func (c *Client) CreateMockRaw(ctx context.Context, params *CreateMockRawParams, body CreateMockRawJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateMockRawWithBody ¶
func (*Client) DeleteMock ¶
func (*Client) GetMockStats ¶
func (c *Client) GetMockStats(ctx context.Context, mockId MockId, params *GetMockStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) HealthCheck ¶
func (*Client) ListMocks ¶
func (c *Client) ListMocks(ctx context.Context, params *ListMocksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RestartMock ¶
func (*Client) ValidateHarFileWithBody ¶
func (*Client) ValidateHarRaw ¶
func (c *Client) ValidateHarRaw(ctx context.Context, body ValidateHarRawJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// AuthCliGoogleExchangeWithBody request with any body
AuthCliGoogleExchangeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AuthCliGoogleExchange(ctx context.Context, body AuthCliGoogleExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthCliGoogleStart request
AuthCliGoogleStart(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthGoogle request
AuthGoogle(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthGoogleCallback request
AuthGoogleCallback(ctx context.Context, params *AuthGoogleCallbackParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthLoginWithBody request with any body
AuthLoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AuthLogin(ctx context.Context, body AuthLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthMe request
AuthMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthRegisterWithBody request with any body
AuthRegisterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AuthRegister(ctx context.Context, body AuthRegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthRegistrationCompleteWithBody request with any body
AuthRegistrationCompleteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AuthRegistrationComplete(ctx context.Context, body AuthRegistrationCompleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthRegistrationResendWithBody request with any body
AuthRegistrationResendWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AuthRegistrationResend(ctx context.Context, body AuthRegistrationResendJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthRegistrationStartWithBody request with any body
AuthRegistrationStartWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AuthRegistrationStart(ctx context.Context, body AuthRegistrationStartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ValidateHarRawWithBody request with any body
ValidateHarRawWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ValidateHarRaw(ctx context.Context, body ValidateHarRawJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ValidateHarFileWithBody request with any body
ValidateHarFileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMocks request
ListMocks(ctx context.Context, params *ListMocksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateMockRawWithBody request with any body
CreateMockRawWithBody(ctx context.Context, params *CreateMockRawParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateMockRaw(ctx context.Context, params *CreateMockRawParams, body CreateMockRawJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateMockFileWithBody request with any body
CreateMockFileWithBody(ctx context.Context, params *CreateMockFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteMock request
DeleteMock(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMock request
GetMock(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*http.Response, error)
// RestartMock request
RestartMock(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMockStats request
GetMockStats(ctx context.Context, mockId MockId, params *GetMockStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateManagementUserWithBody request with any body
CreateManagementUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateManagementUser(ctx context.Context, body CreateManagementUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// HealthCheck request
HealthCheck(ctx context.Context, 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) AuthCliGoogleExchangeWithBodyWithResponse ¶
func (c *ClientWithResponses) AuthCliGoogleExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthCliGoogleExchangeResp, error)
AuthCliGoogleExchangeWithBodyWithResponse request with arbitrary body returning *AuthCliGoogleExchangeResp
func (*ClientWithResponses) AuthCliGoogleExchangeWithResponse ¶
func (c *ClientWithResponses) AuthCliGoogleExchangeWithResponse(ctx context.Context, body AuthCliGoogleExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthCliGoogleExchangeResp, error)
func (*ClientWithResponses) AuthCliGoogleStartWithResponse ¶
func (c *ClientWithResponses) AuthCliGoogleStartWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthCliGoogleStartResp, error)
AuthCliGoogleStartWithResponse request returning *AuthCliGoogleStartResp
func (*ClientWithResponses) AuthGoogleCallbackWithResponse ¶
func (c *ClientWithResponses) AuthGoogleCallbackWithResponse(ctx context.Context, params *AuthGoogleCallbackParams, reqEditors ...RequestEditorFn) (*AuthGoogleCallbackResp, error)
AuthGoogleCallbackWithResponse request returning *AuthGoogleCallbackResp
func (*ClientWithResponses) AuthGoogleWithResponse ¶
func (c *ClientWithResponses) AuthGoogleWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGoogleResp, error)
AuthGoogleWithResponse request returning *AuthGoogleResp
func (*ClientWithResponses) AuthLoginWithBodyWithResponse ¶
func (c *ClientWithResponses) AuthLoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthLoginResp, error)
AuthLoginWithBodyWithResponse request with arbitrary body returning *AuthLoginResp
func (*ClientWithResponses) AuthLoginWithResponse ¶
func (c *ClientWithResponses) AuthLoginWithResponse(ctx context.Context, body AuthLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthLoginResp, error)
func (*ClientWithResponses) AuthMeWithResponse ¶
func (c *ClientWithResponses) AuthMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthMeResp, error)
AuthMeWithResponse request returning *AuthMeResp
func (*ClientWithResponses) AuthRegisterWithBodyWithResponse ¶
func (c *ClientWithResponses) AuthRegisterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRegisterResp, error)
AuthRegisterWithBodyWithResponse request with arbitrary body returning *AuthRegisterResp
func (*ClientWithResponses) AuthRegisterWithResponse ¶
func (c *ClientWithResponses) AuthRegisterWithResponse(ctx context.Context, body AuthRegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRegisterResp, error)
func (*ClientWithResponses) AuthRegistrationCompleteWithBodyWithResponse ¶
func (c *ClientWithResponses) AuthRegistrationCompleteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRegistrationCompleteResp, error)
AuthRegistrationCompleteWithBodyWithResponse request with arbitrary body returning *AuthRegistrationCompleteResp
func (*ClientWithResponses) AuthRegistrationCompleteWithResponse ¶
func (c *ClientWithResponses) AuthRegistrationCompleteWithResponse(ctx context.Context, body AuthRegistrationCompleteJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRegistrationCompleteResp, error)
func (*ClientWithResponses) AuthRegistrationResendWithBodyWithResponse ¶
func (c *ClientWithResponses) AuthRegistrationResendWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRegistrationResendResp, error)
AuthRegistrationResendWithBodyWithResponse request with arbitrary body returning *AuthRegistrationResendResp
func (*ClientWithResponses) AuthRegistrationResendWithResponse ¶
func (c *ClientWithResponses) AuthRegistrationResendWithResponse(ctx context.Context, body AuthRegistrationResendJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRegistrationResendResp, error)
func (*ClientWithResponses) AuthRegistrationStartWithBodyWithResponse ¶
func (c *ClientWithResponses) AuthRegistrationStartWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRegistrationStartResp, error)
AuthRegistrationStartWithBodyWithResponse request with arbitrary body returning *AuthRegistrationStartResp
func (*ClientWithResponses) AuthRegistrationStartWithResponse ¶
func (c *ClientWithResponses) AuthRegistrationStartWithResponse(ctx context.Context, body AuthRegistrationStartJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRegistrationStartResp, error)
func (*ClientWithResponses) CreateManagementUserWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateManagementUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateManagementUserResp, error)
CreateManagementUserWithBodyWithResponse request with arbitrary body returning *CreateManagementUserResp
func (*ClientWithResponses) CreateManagementUserWithResponse ¶
func (c *ClientWithResponses) CreateManagementUserWithResponse(ctx context.Context, body CreateManagementUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateManagementUserResp, error)
func (*ClientWithResponses) CreateMockFileWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateMockFileWithBodyWithResponse(ctx context.Context, params *CreateMockFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMockFileResp, error)
CreateMockFileWithBodyWithResponse request with arbitrary body returning *CreateMockFileResp
func (*ClientWithResponses) CreateMockRawWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateMockRawWithBodyWithResponse(ctx context.Context, params *CreateMockRawParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMockRawResp, error)
CreateMockRawWithBodyWithResponse request with arbitrary body returning *CreateMockRawResp
func (*ClientWithResponses) CreateMockRawWithResponse ¶
func (c *ClientWithResponses) CreateMockRawWithResponse(ctx context.Context, params *CreateMockRawParams, body CreateMockRawJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMockRawResp, error)
func (*ClientWithResponses) DeleteMockWithResponse ¶
func (c *ClientWithResponses) DeleteMockWithResponse(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*DeleteMockResp, error)
DeleteMockWithResponse request returning *DeleteMockResp
func (*ClientWithResponses) GetMockStatsWithResponse ¶
func (c *ClientWithResponses) GetMockStatsWithResponse(ctx context.Context, mockId MockId, params *GetMockStatsParams, reqEditors ...RequestEditorFn) (*GetMockStatsResp, error)
GetMockStatsWithResponse request returning *GetMockStatsResp
func (*ClientWithResponses) GetMockWithResponse ¶
func (c *ClientWithResponses) GetMockWithResponse(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*GetMockResp, error)
GetMockWithResponse request returning *GetMockResp
func (*ClientWithResponses) HealthCheckWithResponse ¶
func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResp, error)
HealthCheckWithResponse request returning *HealthCheckResp
func (*ClientWithResponses) ListMocksWithResponse ¶
func (c *ClientWithResponses) ListMocksWithResponse(ctx context.Context, params *ListMocksParams, reqEditors ...RequestEditorFn) (*ListMocksResp, error)
ListMocksWithResponse request returning *ListMocksResp
func (*ClientWithResponses) RestartMockWithResponse ¶
func (c *ClientWithResponses) RestartMockWithResponse(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*RestartMockResp, error)
RestartMockWithResponse request returning *RestartMockResp
func (*ClientWithResponses) ValidateHarFileWithBodyWithResponse ¶
func (c *ClientWithResponses) ValidateHarFileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidateHarFileResp, error)
ValidateHarFileWithBodyWithResponse request with arbitrary body returning *ValidateHarFileResp
func (*ClientWithResponses) ValidateHarRawWithBodyWithResponse ¶
func (c *ClientWithResponses) ValidateHarRawWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidateHarRawResp, error)
ValidateHarRawWithBodyWithResponse request with arbitrary body returning *ValidateHarRawResp
func (*ClientWithResponses) ValidateHarRawWithResponse ¶
func (c *ClientWithResponses) ValidateHarRawWithResponse(ctx context.Context, body ValidateHarRawJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidateHarRawResp, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// AuthCliGoogleExchangeWithBodyWithResponse request with any body
AuthCliGoogleExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthCliGoogleExchangeResp, error)
AuthCliGoogleExchangeWithResponse(ctx context.Context, body AuthCliGoogleExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthCliGoogleExchangeResp, error)
// AuthCliGoogleStartWithResponse request
AuthCliGoogleStartWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthCliGoogleStartResp, error)
// AuthGoogleWithResponse request
AuthGoogleWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGoogleResp, error)
// AuthGoogleCallbackWithResponse request
AuthGoogleCallbackWithResponse(ctx context.Context, params *AuthGoogleCallbackParams, reqEditors ...RequestEditorFn) (*AuthGoogleCallbackResp, error)
// AuthLoginWithBodyWithResponse request with any body
AuthLoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthLoginResp, error)
AuthLoginWithResponse(ctx context.Context, body AuthLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthLoginResp, error)
// AuthMeWithResponse request
AuthMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthMeResp, error)
// AuthRegisterWithBodyWithResponse request with any body
AuthRegisterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRegisterResp, error)
AuthRegisterWithResponse(ctx context.Context, body AuthRegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRegisterResp, error)
// AuthRegistrationCompleteWithBodyWithResponse request with any body
AuthRegistrationCompleteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRegistrationCompleteResp, error)
AuthRegistrationCompleteWithResponse(ctx context.Context, body AuthRegistrationCompleteJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRegistrationCompleteResp, error)
// AuthRegistrationResendWithBodyWithResponse request with any body
AuthRegistrationResendWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRegistrationResendResp, error)
AuthRegistrationResendWithResponse(ctx context.Context, body AuthRegistrationResendJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRegistrationResendResp, error)
// AuthRegistrationStartWithBodyWithResponse request with any body
AuthRegistrationStartWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthRegistrationStartResp, error)
AuthRegistrationStartWithResponse(ctx context.Context, body AuthRegistrationStartJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRegistrationStartResp, error)
// ValidateHarRawWithBodyWithResponse request with any body
ValidateHarRawWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidateHarRawResp, error)
ValidateHarRawWithResponse(ctx context.Context, body ValidateHarRawJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidateHarRawResp, error)
// ValidateHarFileWithBodyWithResponse request with any body
ValidateHarFileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidateHarFileResp, error)
// ListMocksWithResponse request
ListMocksWithResponse(ctx context.Context, params *ListMocksParams, reqEditors ...RequestEditorFn) (*ListMocksResp, error)
// CreateMockRawWithBodyWithResponse request with any body
CreateMockRawWithBodyWithResponse(ctx context.Context, params *CreateMockRawParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMockRawResp, error)
CreateMockRawWithResponse(ctx context.Context, params *CreateMockRawParams, body CreateMockRawJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMockRawResp, error)
// CreateMockFileWithBodyWithResponse request with any body
CreateMockFileWithBodyWithResponse(ctx context.Context, params *CreateMockFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMockFileResp, error)
// DeleteMockWithResponse request
DeleteMockWithResponse(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*DeleteMockResp, error)
// GetMockWithResponse request
GetMockWithResponse(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*GetMockResp, error)
// RestartMockWithResponse request
RestartMockWithResponse(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*RestartMockResp, error)
// GetMockStatsWithResponse request
GetMockStatsWithResponse(ctx context.Context, mockId MockId, params *GetMockStatsParams, reqEditors ...RequestEditorFn) (*GetMockStatsResp, error)
// CreateManagementUserWithBodyWithResponse request with any body
CreateManagementUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateManagementUserResp, error)
CreateManagementUserWithResponse(ctx context.Context, body CreateManagementUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateManagementUserResp, error)
// HealthCheckWithResponse request
HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResp, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateManagementUserJSONBody ¶
type CreateManagementUserJSONBody struct {
// DisplayName Optional display name.
DisplayName *string `json:"display_name,omitempty"`
// Email User email address.
Email openapi_types.Email `json:"email"`
}
CreateManagementUserJSONBody defines parameters for CreateManagementUser.
type CreateManagementUserJSONRequestBody ¶
type CreateManagementUserJSONRequestBody CreateManagementUserJSONBody
CreateManagementUserJSONRequestBody defines body for CreateManagementUser for application/json ContentType.
type CreateManagementUserResp ¶
type CreateManagementUserResp struct {
Body []byte
HTTPResponse *http.Response
JSON201 *ManagementUserResponse
JSON409 *Conflict
JSON500 *InternalError
}
func ParseCreateManagementUserResp ¶
func ParseCreateManagementUserResp(rsp *http.Response) (*CreateManagementUserResp, error)
ParseCreateManagementUserResp parses an HTTP response from a CreateManagementUserWithResponse call
func (CreateManagementUserResp) Status ¶
func (r CreateManagementUserResp) Status() string
Status returns HTTPResponse.Status
func (CreateManagementUserResp) StatusCode ¶
func (r CreateManagementUserResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateMockFileMultipartBody ¶
type CreateMockFileMultipartBody struct {
// File HAR file to normalize and persist.
File openapi_types.File `json:"file"`
// MatchingRules Optional per-entry request matching customization.
MatchingRules *MatchingRules `json:"matching_rules,omitempty"`
}
CreateMockFileMultipartBody defines parameters for CreateMockFile.
type CreateMockFileMultipartRequestBody ¶
type CreateMockFileMultipartRequestBody CreateMockFileMultipartBody
CreateMockFileMultipartRequestBody defines body for CreateMockFile for multipart/form-data ContentType.
type CreateMockFileParams ¶
type CreateMockFileParams struct {
// TtlSeconds Time-to-live in seconds before the mock expires.
TtlSeconds TtlSeconds `form:"ttl_seconds" json:"ttl_seconds"`
// SslEnabled Whether generated mock URLs should use HTTPS.
SslEnabled *SslEnabled `form:"ssl_enabled,omitempty" json:"ssl_enabled,omitempty"`
// LatencyEmulation Enable runtime latency emulation based on HAR `entry.time` values.
LatencyEmulation *LatencyEmulation `form:"latency_emulation,omitempty" json:"latency_emulation,omitempty"`
// ReplaceLinks Rewrite links in response headers and text bodies from original HAR origins to generated mock base URLs. In cross-domain mode, replacements are 1-1 by domain (`original_domain -> domain_map[i].base_url`) and are applied only when this flag is true.
ReplaceLinks *ReplaceLinks `form:"replace_links,omitempty" json:"replace_links,omitempty"`
// CrossDomainMainDomain Enable cross-domain mode and choose which HAR host becomes the parent mock.
CrossDomainMainDomain *CrossDomainMainDomain `form:"cross_domain_main_domain,omitempty" json:"cross_domain_main_domain,omitempty"`
}
CreateMockFileParams defines parameters for CreateMockFile.
type CreateMockFileResp ¶
type CreateMockFileResp struct {
Body []byte
HTTPResponse *http.Response
JSON201 *CreateMockResponse
JSON400 *BadRequest
JSON401 *Unauthorized
JSON409 *Conflict
JSON413 *PayloadTooLarge
JSON500 *InternalError
}
func ParseCreateMockFileResp ¶
func ParseCreateMockFileResp(rsp *http.Response) (*CreateMockFileResp, error)
ParseCreateMockFileResp parses an HTTP response from a CreateMockFileWithResponse call
func (CreateMockFileResp) Status ¶
func (r CreateMockFileResp) Status() string
Status returns HTTPResponse.Status
func (CreateMockFileResp) StatusCode ¶
func (r CreateMockFileResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateMockRawJSONBody ¶
type CreateMockRawJSONBody struct {
// contains filtered or unexported fields
}
CreateMockRawJSONBody defines parameters for CreateMockRaw.
type CreateMockRawJSONRequestBody ¶
type CreateMockRawJSONRequestBody CreateMockRawJSONBody
CreateMockRawJSONRequestBody defines body for CreateMockRaw for application/json ContentType.
type CreateMockRawParams ¶
type CreateMockRawParams struct {
// TtlSeconds Time-to-live in seconds before the mock expires.
TtlSeconds TtlSeconds `form:"ttl_seconds" json:"ttl_seconds"`
// SslEnabled Whether generated mock URLs should use HTTPS.
SslEnabled *SslEnabled `form:"ssl_enabled,omitempty" json:"ssl_enabled,omitempty"`
// LatencyEmulation Enable runtime latency emulation based on HAR `entry.time` values.
LatencyEmulation *LatencyEmulation `form:"latency_emulation,omitempty" json:"latency_emulation,omitempty"`
// ReplaceLinks Rewrite links in response headers and text bodies from original HAR origins to generated mock base URLs. In cross-domain mode, replacements are 1-1 by domain (`original_domain -> domain_map[i].base_url`) and are applied only when this flag is true.
ReplaceLinks *ReplaceLinks `form:"replace_links,omitempty" json:"replace_links,omitempty"`
// CrossDomainMainDomain Enable cross-domain mode and choose which HAR host becomes the parent mock.
CrossDomainMainDomain *CrossDomainMainDomain `form:"cross_domain_main_domain,omitempty" json:"cross_domain_main_domain,omitempty"`
}
CreateMockRawParams defines parameters for CreateMockRaw.
type CreateMockRawResp ¶
type CreateMockRawResp struct {
Body []byte
HTTPResponse *http.Response
JSON201 *CreateMockResponse
JSON400 *BadRequest
JSON401 *Unauthorized
JSON409 *Conflict
JSON413 *PayloadTooLarge
JSON500 *InternalError
}
func ParseCreateMockRawResp ¶
func ParseCreateMockRawResp(rsp *http.Response) (*CreateMockRawResp, error)
ParseCreateMockRawResp parses an HTTP response from a CreateMockRawWithResponse call
func (CreateMockRawResp) Status ¶
func (r CreateMockRawResp) Status() string
Status returns HTTPResponse.Status
func (CreateMockRawResp) StatusCode ¶
func (r CreateMockRawResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateMockResponse ¶
type CreateMockResponse struct {
// BaseUrl Full URL where mock is accessible (for example https://abc123.mocklet.io).
BaseUrl *string `json:"base_url,omitempty"`
// DomainMap Per-domain mock mapping returned in cross-domain mode.
DomainMap *[]DomainMockInfo `json:"domain_map,omitempty"`
// ExpiresAt RFC3339 UTC timestamp when the mock automatically expires.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// HarSizeBytes Size of the normalized HAR data in bytes.
HarSizeBytes *int `json:"har_size_bytes,omitempty"`
// LatencyEmulation Whether runtime latency emulation is enabled for this mock.
LatencyEmulation *bool `json:"latency_emulation,omitempty"`
// MockId Unique identifier for the mock, used as subdomain.
MockId *string `json:"mock_id,omitempty"`
// SslEnabled Whether HTTPS is enabled for generated mock URL.
SslEnabled *bool `json:"ssl_enabled,omitempty"`
// TtlSeconds Time-to-live in seconds before the mock expires.
TtlSeconds *int `json:"ttl_seconds,omitempty"`
}
CreateMockResponse Response returned after creating a mock.
type CreateMockWrapped ¶
type CreateMockWrapped struct {
// Har HAR payload as defined by the HTTP Archive format.
Har *HarDocument `json:"har,omitempty"`
// MatchingRules Optional per-entry request matching customization.
MatchingRules *MatchingRules `json:"matching_rules,omitempty"`
}
CreateMockWrapped Wrapper payload that combines HAR data with matching rules.
type CrossDomainMainDomain ¶
type CrossDomainMainDomain = string
CrossDomainMainDomain defines model for CrossDomainMainDomain.
type DeleteMockResp ¶
type DeleteMockResp struct {
Body []byte
HTTPResponse *http.Response
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON500 *InternalError
}
func ParseDeleteMockResp ¶
func ParseDeleteMockResp(rsp *http.Response) (*DeleteMockResp, error)
ParseDeleteMockResp parses an HTTP response from a DeleteMockWithResponse call
func (DeleteMockResp) Status ¶
func (r DeleteMockResp) Status() string
Status returns HTTPResponse.Status
func (DeleteMockResp) StatusCode ¶
func (r DeleteMockResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DomainMockInfo ¶
type DomainMockInfo struct {
// BaseUrl Full URL where this domain-specific mock is accessible.
BaseUrl string `json:"base_url"`
// IsMain True for the parent domain selected by cross_domain_main_domain.
IsMain bool `json:"is_main"`
// MockId Mock identifier assigned to this domain.
MockId string `json:"mock_id"`
// OriginalDomain Original domain (origin) extracted from HAR, for example https://api.example.com.
OriginalDomain string `json:"original_domain"`
}
DomainMockInfo Describes one mock created from one domain in cross-domain mode.
type EndpointKey ¶
type EndpointKey struct {
// CanonicalQuery Canonicalized query-string used for matching.
CanonicalQuery *string `json:"canonical_query,omitempty"`
// Method HTTP method.
Method *string `json:"method,omitempty"`
// Path URL path.
Path *string `json:"path,omitempty"`
}
EndpointKey Normalized endpoint identity.
type EndpointStats ¶
type EndpointStats struct {
// AvgLatencyMs Average response latency in milliseconds.
AvgLatencyMs *float32 `json:"avg_latency_ms,omitempty"`
// Hits Number of matched requests for this endpoint.
Hits *int `json:"hits,omitempty"`
// Key Normalized endpoint identity.
Key *EndpointKey `json:"key,omitempty"`
// LastSeenAt RFC3339 UTC timestamp of the last request for this endpoint.
LastSeenAt *time.Time `json:"last_seen_at,omitempty"`
// Misses Number of unmatched requests for this endpoint.
Misses *int `json:"misses,omitempty"`
// RequestKeyHash SHA256 hash identifying a unique request pattern.
RequestKeyHash *string `json:"request_key_hash,omitempty"`
// ResponsesCount Number of response variants available for this endpoint.
ResponsesCount *int `json:"responses_count,omitempty"`
// SequenceCompletedTotal Number of completed response sequence cycles.
SequenceCompletedTotal *int `json:"sequence_completed_total,omitempty"`
}
EndpointStats Runtime statistics for a single endpoint signature.
type ErrorResponse ¶
type ErrorResponse struct {
// Code Machine-readable error code.
Code string `json:"code"`
// Details Optional path-level validation details.
Details *[]struct {
// Issue Description of the validation issue.
Issue *string `json:"issue,omitempty"`
// Path JSON path or field path where validation failed.
Path *string `json:"path,omitempty"`
} `json:"details,omitempty"`
// Message Human-readable error message.
Message string `json:"message"`
}
ErrorResponse Standard API error envelope.
type GetMockResp ¶
type GetMockResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MockSummary
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON500 *InternalError
}
func ParseGetMockResp ¶
func ParseGetMockResp(rsp *http.Response) (*GetMockResp, error)
ParseGetMockResp parses an HTTP response from a GetMockWithResponse call
func (GetMockResp) StatusCode ¶
func (r GetMockResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMockStatsParams ¶
type GetMockStatsParams struct {
// HistoryLimit Maximum number of recent request history entries to return.
HistoryLimit *int `form:"history_limit,omitempty" json:"history_limit,omitempty"`
}
GetMockStatsParams defines parameters for GetMockStats.
type GetMockStatsResp ¶
type GetMockStatsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MockStatsResponse
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON500 *InternalError
}
func ParseGetMockStatsResp ¶
func ParseGetMockStatsResp(rsp *http.Response) (*GetMockStatsResp, error)
ParseGetMockStatsResp parses an HTTP response from a GetMockStatsWithResponse call
func (GetMockStatsResp) Status ¶
func (r GetMockStatsResp) Status() string
Status returns HTTPResponse.Status
func (GetMockStatsResp) StatusCode ¶
func (r GetMockStatsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HarDocument ¶
type HarDocument struct {
// Log Root HAR log object.
Log *struct {
// Creator HAR producer metadata.
Creator map[string]interface{} `json:"creator"`
// Entries Recorded request/response entries.
Entries []map[string]interface{} `json:"entries"`
// Version HAR version string.
Version string `json:"version"`
} `json:"log,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
HarDocument HAR payload as defined by the HTTP Archive format.
func (HarDocument) Get ¶
func (a HarDocument) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for HarDocument. Returns the specified element and whether it was found
func (HarDocument) MarshalJSON ¶
func (a HarDocument) MarshalJSON() ([]byte, error)
Override default JSON handling for HarDocument to handle AdditionalProperties
func (*HarDocument) Set ¶
func (a *HarDocument) Set(fieldName string, value interface{})
Setter for additional properties for HarDocument
func (*HarDocument) UnmarshalJSON ¶
func (a *HarDocument) UnmarshalJSON(b []byte) error
Override default JSON handling for HarDocument to handle AdditionalProperties
type HarEntryValidation ¶
type HarEntryValidation struct {
// IsValid Whether this entry is accepted.
IsValid *bool `json:"is_valid,omitempty"`
// MatchingParameters Request fields participating in matching.
MatchingParameters *MatchingParameters `json:"matching_parameters,omitempty"`
// Method HTTP method extracted from the HAR entry.
Method *string `json:"method,omitempty"`
// Path URL path extracted from the HAR entry.
Path *string `json:"path,omitempty"`
// Warnings Warnings related to this specific entry.
Warnings *[]string `json:"warnings,omitempty"`
}
HarEntryValidation Validation result for a single HAR entry.
type HarValidationResult ¶
type HarValidationResult struct {
// EndpointsTotal Number of normalized endpoint groups.
EndpointsTotal *int `json:"endpoints_total,omitempty"`
// Entries Per-entry validation results.
Entries *[]HarEntryValidation `json:"entries,omitempty"`
// EntriesAccepted Number of entries accepted for mock generation.
EntriesAccepted *int `json:"entries_accepted,omitempty"`
// EntriesTotal Total number of HAR entries parsed.
EntriesTotal *int `json:"entries_total,omitempty"`
// EstimatedNormalizedBytes Estimated size of normalized HAR data in bytes.
EstimatedNormalizedBytes *int `json:"estimated_normalized_bytes,omitempty"`
// IsValid Whether HAR input passed validation checks.
IsValid *bool `json:"is_valid,omitempty"`
// MatchingParameters Request fields participating in matching.
MatchingParameters *MatchingParameters `json:"matching_parameters,omitempty"`
// Warnings File-level validation warnings not specific to any single entry (e.g. self-mock filtering, empty entries after filtering).
Warnings *[]string `json:"warnings,omitempty"`
}
HarValidationResult Validation summary produced from a HAR payload.
type HealthCheckResp ¶
type HealthCheckResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// Status Overall service health state.
Status *string `json:"status,omitempty"`
}
JSON503 *struct {
// Reason Human-readable explanation for degraded state.
Reason *string `json:"reason,omitempty"`
// Status Overall service health state.
Status *string `json:"status,omitempty"`
}
}
func ParseHealthCheckResp ¶
func ParseHealthCheckResp(rsp *http.Response) (*HealthCheckResp, error)
ParseHealthCheckResp parses an HTTP response from a HealthCheckWithResponse call
func (HealthCheckResp) Status ¶
func (r HealthCheckResp) Status() string
Status returns HTTPResponse.Status
func (HealthCheckResp) StatusCode ¶
func (r HealthCheckResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HistoryItem ¶
type HistoryItem struct {
// LatencyMs Measured response latency in milliseconds.
LatencyMs *float32 `json:"latency_ms,omitempty"`
// Matched Whether request matched a stored response.
Matched *bool `json:"matched,omitempty"`
// Method HTTP method of the runtime request.
Method *string `json:"method,omitempty"`
// OccurredAt RFC3339 UTC timestamp when the runtime request occurred.
OccurredAt *time.Time `json:"occurred_at,omitempty"`
// Path URL path of the runtime request.
Path *string `json:"path,omitempty"`
// RequestKeyHash SHA256 hash identifying a unique request pattern.
RequestKeyHash *string `json:"request_key_hash,omitempty"`
// SeqIndex Current sequence index in round-robin response rotation.
SeqIndex *int `json:"seq_index,omitempty"`
// UnmatchedReason Aggregated reason for unmatched runtime requests.
UnmatchedReason *UnmatchedReason `json:"unmatched_reason,omitempty"`
}
HistoryItem Single runtime request outcome in chronological history.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type LatencyEmulation ¶
type LatencyEmulation = bool
LatencyEmulation defines model for LatencyEmulation.
type ListMocksParams ¶
type ListMocksParams struct {
// Limit Maximum number of mocks to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Opaque cursor returned by a previous `next_cursor` value.
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}
ListMocksParams defines parameters for ListMocks.
type ListMocksResp ¶
type ListMocksResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListMocksResponse
JSON400 *BadRequest
JSON401 *Unauthorized
JSON500 *InternalError
}
func ParseListMocksResp ¶
func ParseListMocksResp(rsp *http.Response) (*ListMocksResp, error)
ParseListMocksResp parses an HTTP response from a ListMocksWithResponse call
func (ListMocksResp) Status ¶
func (r ListMocksResp) Status() string
Status returns HTTPResponse.Status
func (ListMocksResp) StatusCode ¶
func (r ListMocksResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMocksResponse ¶
type ListMocksResponse struct {
// Items Returned mock summaries.
Items *[]MockSummary `json:"items,omitempty"`
// NextCursor Opaque cursor for fetching the next page. Omitted when there are no more results.
NextCursor *string `json:"next_cursor,omitempty"`
// Totals Aggregate usage counters for a user account.
Totals *UserTotals `json:"totals,omitempty"`
}
ListMocksResponse Paginated list of mocks with aggregate user totals.
type LoginRequest ¶
type LoginRequest struct {
// Email Email address of the account.
Email openapi_types.Email `json:"email"`
// Password Account password.
Password string `json:"password"`
}
LoginRequest Email/password credentials used for authentication.
type LoginResponse ¶
type LoginResponse struct {
// Email Authenticated email address.
Email *string `json:"email,omitempty"`
// ExpiresAt Unix timestamp in seconds (UTC) when the token expires (intentionally not RFC3339).
ExpiresAt *int64 `json:"expires_at,omitempty"`
// Token JWT bearer token used for authenticated requests.
Token *string `json:"token,omitempty"`
// UserId Internal numeric user identifier.
UserId *int `json:"user_id,omitempty"`
}
LoginResponse Authentication result containing JWT and user identity data.
type ManagementUserResponse ¶
type ManagementUserResponse struct {
// CreatedAt User creation timestamp in RFC3339 UTC format.
CreatedAt *time.Time `json:"created_at,omitempty"`
// DisplayName Optional display name.
DisplayName *string `json:"display_name,omitempty"`
// Email User email address.
Email *string `json:"email,omitempty"`
// UserId Internal numeric user identifier.
UserId *int `json:"user_id,omitempty"`
}
ManagementUserResponse Internal user synchronization response used by Auth Service.
type MatchingParameters ¶
type MatchingParameters struct {
// BodyParameters JSON body field names used in matching.
BodyParameters *[]string `json:"body_parameters,omitempty"`
// Headers Header names used for matching.
Headers *[]string `json:"headers,omitempty"`
// MultipartParameters Multipart field names used in matching.
MultipartParameters *[]string `json:"multipart_parameters,omitempty"`
// QueryParameters Query parameter names used in matching.
QueryParameters *[]string `json:"query_parameters,omitempty"`
}
MatchingParameters Request fields participating in matching.
type MatchingRules ¶
type MatchingRules struct {
// Ignore Map of HAR entry index (integer) to ignore rules.
Ignore *map[string]MatchingParameters `json:"ignore,omitempty"`
}
MatchingRules Optional per-entry request matching customization.
type MeResponse ¶
type MeResponse struct {
// Email User email address.
Email *string `json:"email,omitempty"`
// UserId Internal numeric user identifier.
UserId *int `json:"user_id,omitempty"`
}
MeResponse Authenticated user profile summary.
type MockStatsResponse ¶
type MockStatsResponse struct {
// Endpoints Per-endpoint runtime statistics.
Endpoints *[]EndpointStats `json:"endpoints,omitempty"`
// History Most recent runtime request history entries.
History *[]HistoryItem `json:"history,omitempty"`
// Mock Summary details for a single mock.
Mock *MockSummary `json:"mock,omitempty"`
// UnmatchedTop Top unmatched reasons ordered by frequency.
UnmatchedTop *[]UnmatchedReason `json:"unmatched_top,omitempty"`
}
MockStatsResponse Full statistics payload for one mock.
type MockSummary ¶
type MockSummary struct {
// BaseUrl Full URL where mock is accessible (for example https://abc123.mocklet.io).
BaseUrl *string `json:"base_url,omitempty"`
// CreatedAt RFC3339 UTC timestamp when the mock was created.
CreatedAt *time.Time `json:"created_at,omitempty"`
// ExpiresAt RFC3339 UTC timestamp when the mock expires.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// HarSizeBytes Size of the normalized HAR data in bytes.
HarSizeBytes *int `json:"har_size_bytes,omitempty"`
// LastSeenAt RFC3339 UTC timestamp of the most recent runtime request.
LastSeenAt *time.Time `json:"last_seen_at,omitempty"`
// LatencyEmulation Whether runtime latency emulation is enabled for this mock.
LatencyEmulation *bool `json:"latency_emulation,omitempty"`
// MockId Unique identifier for the mock, used as subdomain.
MockId *string `json:"mock_id,omitempty"`
// ParentMockId Parent mock identifier for child mocks in cross-domain mode.
ParentMockId *string `json:"parent_mock_id,omitempty"`
// RequestsHit Number of runtime requests that matched a response.
RequestsHit *int `json:"requests_hit,omitempty"`
// RequestsMiss Number of runtime requests that missed matching.
RequestsMiss *int `json:"requests_miss,omitempty"`
// RequestsTotal Total number of runtime requests received.
RequestsTotal *int `json:"requests_total,omitempty"`
// SslEnabled Whether HTTPS is enabled for generated mock URL.
SslEnabled *bool `json:"ssl_enabled,omitempty"`
// Status Current lifecycle status of the mock.
Status *string `json:"status,omitempty"`
// TtlSeconds Time-to-live in seconds before the mock expires.
TtlSeconds *int `json:"ttl_seconds,omitempty"`
}
MockSummary Summary details for a single mock.
type PayloadTooLarge ¶
type PayloadTooLarge = ErrorResponse
PayloadTooLarge Standard API error envelope.
type RegisterRequest ¶
type RegisterRequest struct {
// DisplayName Optional display name shown in UI.
DisplayName *string `json:"display_name,omitempty"`
// Email Email address used as unique login identifier.
Email openapi_types.Email `json:"email"`
// Password Plaintext password that will be hashed server-side.
Password string `json:"password"`
}
RegisterRequest Payload to register a new user account.
type RegistrationAcceptedResponse ¶
type RegistrationAcceptedResponse struct {
// ExpiresInSeconds Optional remaining token lifetime in seconds.
ExpiresInSeconds *int `json:"expires_in_seconds,omitempty"`
// ResendAvailableInSeconds Optional resend cooldown information.
ResendAvailableInSeconds *int `json:"resend_available_in_seconds,omitempty"`
// Status Operation status value for UI flows.
Status *string `json:"status,omitempty"`
// VerificationRequired Whether email confirmation is required.
VerificationRequired *bool `json:"verification_required,omitempty"`
}
RegistrationAcceptedResponse Neutral accepted response for registration start/resend.
type RegistrationCompleteRequest ¶
type RegistrationCompleteRequest struct {
// Password Plaintext password that will be hashed server-side.
Password string `json:"password"`
// Token One-time opaque confirmation token from email link.
Token string `json:"token"`
}
RegistrationCompleteRequest Payload to complete registration with token and password.
type RegistrationCompleteResponse ¶
type RegistrationCompleteResponse struct {
// Email Registered and verified email address.
Email *string `json:"email,omitempty"`
// UserId Internal numeric user identifier.
UserId *int `json:"user_id,omitempty"`
}
RegistrationCompleteResponse Result returned after successful registration completion.
type RegistrationResendRequest ¶
type RegistrationResendRequest struct {
// Email Registration email address.
Email openapi_types.Email `json:"email"`
}
RegistrationResendRequest Payload to request a registration confirmation resend.
type RegistrationStartRequest ¶
type RegistrationStartRequest struct {
// CaptchaToken Optional captcha token reserved for anti-bot checks.
CaptchaToken *string `json:"captcha_token,omitempty"`
// DisplayName Optional display name for the future account.
DisplayName *string `json:"display_name,omitempty"`
// Email Email address used for registration.
Email openapi_types.Email `json:"email"`
}
RegistrationStartRequest Payload to start two-step email registration.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RestartMockResp ¶
type RestartMockResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// MockId Unique identifier of the restarted mock.
MockId *string `json:"mock_id,omitempty"`
// Status Result status of the restart operation.
Status *string `json:"status,omitempty"`
}
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON500 *InternalError
}
func ParseRestartMockResp ¶
func ParseRestartMockResp(rsp *http.Response) (*RestartMockResp, error)
ParseRestartMockResp parses an HTTP response from a RestartMockWithResponse call
func (RestartMockResp) Status ¶
func (r RestartMockResp) Status() string
Status returns HTTPResponse.Status
func (RestartMockResp) StatusCode ¶
func (r RestartMockResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnmatchedReason ¶
type UnmatchedReason struct {
// Count Number of requests with this unmatched reason.
Count *int `json:"count,omitempty"`
// Fields Fields associated with the unmatched reason.
Fields *[]string `json:"fields,omitempty"`
// Kind Stable machine-readable unmatched reason.
Kind *string `json:"kind,omitempty"`
// Message Human-readable unmatched reason.
Message *string `json:"message,omitempty"`
}
UnmatchedReason Aggregated reason for unmatched runtime requests.
type UnprocessableEntity ¶
type UnprocessableEntity = ErrorResponse
UnprocessableEntity Standard API error envelope.
type UserTotals ¶
type UserTotals struct {
// HarBytesTotal Total HAR bytes stored across mocks.
HarBytesTotal *int `json:"har_bytes_total,omitempty"`
// HarOver100mb Number of mocks with HAR size above 100MB.
HarOver100mb *int `json:"har_over_100mb,omitempty"`
// HarOver1mb Number of mocks with HAR size above 1MB.
HarOver1mb *int `json:"har_over_1mb,omitempty"`
// HarOver500kb Number of mocks with HAR size above 500KB.
HarOver500kb *int `json:"har_over_500kb,omitempty"`
// MocksTotal Total number of mocks created by the user.
MocksTotal *int `json:"mocks_total,omitempty"`
// RequestsHit Total matched runtime requests across all user mocks.
RequestsHit *int `json:"requests_hit,omitempty"`
// RequestsMiss Total unmatched runtime requests across all user mocks.
RequestsMiss *int `json:"requests_miss,omitempty"`
// RequestsTotal Total runtime requests across all user mocks.
RequestsTotal *int `json:"requests_total,omitempty"`
}
UserTotals Aggregate usage counters for a user account.
type ValidateHarFileMultipartBody ¶
type ValidateHarFileMultipartBody struct {
// File HAR file to validate.
File openapi_types.File `json:"file"`
}
ValidateHarFileMultipartBody defines parameters for ValidateHarFile.
type ValidateHarFileMultipartRequestBody ¶
type ValidateHarFileMultipartRequestBody ValidateHarFileMultipartBody
ValidateHarFileMultipartRequestBody defines body for ValidateHarFile for multipart/form-data ContentType.
type ValidateHarFileResp ¶
type ValidateHarFileResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *HarValidationResult
JSON400 *BadRequest
JSON401 *Unauthorized
JSON413 *PayloadTooLarge
JSON500 *InternalError
}
func ParseValidateHarFileResp ¶
func ParseValidateHarFileResp(rsp *http.Response) (*ValidateHarFileResp, error)
ParseValidateHarFileResp parses an HTTP response from a ValidateHarFileWithResponse call
func (ValidateHarFileResp) Status ¶
func (r ValidateHarFileResp) Status() string
Status returns HTTPResponse.Status
func (ValidateHarFileResp) StatusCode ¶
func (r ValidateHarFileResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ValidateHarRawJSONRequestBody ¶
type ValidateHarRawJSONRequestBody = HarDocument
ValidateHarRawJSONRequestBody defines body for ValidateHarRaw for application/json ContentType.
type ValidateHarRawResp ¶
type ValidateHarRawResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *HarValidationResult
JSON400 *BadRequest
JSON401 *Unauthorized
JSON413 *PayloadTooLarge
JSON422 *UnprocessableEntity
JSON500 *InternalError
}
func ParseValidateHarRawResp ¶
func ParseValidateHarRawResp(rsp *http.Response) (*ValidateHarRawResp, error)
ParseValidateHarRawResp parses an HTTP response from a ValidateHarRawWithResponse call
func (ValidateHarRawResp) Status ¶
func (r ValidateHarRawResp) Status() string
Status returns HTTPResponse.Status
func (ValidateHarRawResp) StatusCode ¶
func (r ValidateHarRawResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode