Documentation
¶
Overview ¶
Package client provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.
Index ¶
- func NewCancelJobRequest(server string, id int64) (*http.Request, error)
- func NewCreateAssessmentRequest(server string, body CreateAssessmentJSONRequestBody) (*http.Request, error)
- func NewCreateAssessmentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateRVToolsAssessmentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSourceRequest(server string, body CreateSourceJSONRequestBody) (*http.Request, error)
- func NewCreateSourceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteAssessmentRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewDeleteSourceRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewDeleteSourcesRequest(server string) (*http.Request, error)
- func NewGetAssessmentRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetInfoRequest(server string) (*http.Request, error)
- func NewGetJobRequest(server string, id int64) (*http.Request, error)
- func NewGetSourceDownloadURLRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetSourceRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewHeadImageRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewHealthRequest(server string) (*http.Request, error)
- func NewListAssessmentsRequest(server string) (*http.Request, error)
- func NewListSourcesRequest(server string) (*http.Request, error)
- func NewUpdateAssessmentRequest(server string, id openapi_types.UUID, body UpdateAssessmentJSONRequestBody) (*http.Request, error)
- func NewUpdateAssessmentRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateInventoryRequest(server string, id openapi_types.UUID, body UpdateInventoryJSONRequestBody) (*http.Request, error)
- func NewUpdateInventoryRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateSourceRequest(server string, id openapi_types.UUID, body UpdateSourceJSONRequestBody) (*http.Request, error)
- func NewUpdateSourceRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- type CancelJobResponse
- type Client
- func (c *Client) CancelJob(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CreateAssessment(ctx context.Context, body CreateAssessmentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAssessmentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateRVToolsAssessmentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateSource(ctx context.Context, body CreateSourceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateSourceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteAssessment(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteSource(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteSources(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAssessment(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetJob(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSource(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSourceDownloadURL(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) HeadImage(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) Health(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListAssessments(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListSources(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateAssessment(ctx context.Context, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) UpdateAssessmentWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateInventory(ctx context.Context, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) UpdateInventoryWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateSource(ctx context.Context, id openapi_types.UUID, body UpdateSourceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateSourceWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CancelJobWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*CancelJobResponse, error)
- func (c *ClientWithResponses) CreateAssessmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAssessmentResponse, error)
- func (c *ClientWithResponses) CreateAssessmentWithResponse(ctx context.Context, body CreateAssessmentJSONRequestBody, ...) (*CreateAssessmentResponse, error)
- func (c *ClientWithResponses) CreateRVToolsAssessmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateRVToolsAssessmentResponse, error)
- func (c *ClientWithResponses) CreateSourceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSourceResponse, error)
- func (c *ClientWithResponses) CreateSourceWithResponse(ctx context.Context, body CreateSourceJSONRequestBody, ...) (*CreateSourceResponse, error)
- func (c *ClientWithResponses) DeleteAssessmentWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAssessmentResponse, error)
- func (c *ClientWithResponses) DeleteSourceWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteSourceResponse, error)
- func (c *ClientWithResponses) DeleteSourcesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteSourcesResponse, error)
- func (c *ClientWithResponses) GetAssessmentWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAssessmentResponse, error)
- func (c *ClientWithResponses) GetInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetInfoResponse, error)
- func (c *ClientWithResponses) GetJobWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetJobResponse, error)
- func (c *ClientWithResponses) GetSourceDownloadURLWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSourceDownloadURLResponse, error)
- func (c *ClientWithResponses) GetSourceWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSourceResponse, error)
- func (c *ClientWithResponses) HeadImageWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*HeadImageResponse, error)
- func (c *ClientWithResponses) HealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthResponse, error)
- func (c *ClientWithResponses) ListAssessmentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAssessmentsResponse, error)
- func (c *ClientWithResponses) ListSourcesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSourcesResponse, error)
- func (c *ClientWithResponses) UpdateAssessmentWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*UpdateAssessmentResponse, error)
- func (c *ClientWithResponses) UpdateAssessmentWithResponse(ctx context.Context, id openapi_types.UUID, ...) (*UpdateAssessmentResponse, error)
- func (c *ClientWithResponses) UpdateInventoryWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*UpdateInventoryResponse, error)
- func (c *ClientWithResponses) UpdateInventoryWithResponse(ctx context.Context, id openapi_types.UUID, ...) (*UpdateInventoryResponse, error)
- func (c *ClientWithResponses) UpdateSourceWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*UpdateSourceResponse, error)
- func (c *ClientWithResponses) UpdateSourceWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateSourceJSONRequestBody, ...) (*UpdateSourceResponse, error)
- type ClientWithResponsesInterface
- type CreateAssessmentResponse
- type CreateRVToolsAssessmentResponse
- type CreateSourceResponse
- type DeleteAssessmentResponse
- type DeleteSourceResponse
- type DeleteSourcesResponse
- type GetAssessmentResponse
- type GetInfoResponse
- type GetJobResponse
- type GetSourceDownloadURLResponse
- type GetSourceResponse
- type HeadImageResponse
- type HealthResponse
- type HttpRequestDoer
- type ListAssessmentsResponse
- type ListSourcesResponse
- type RequestEditorFn
- type UpdateAssessmentResponse
- type UpdateInventoryResponse
- type UpdateSourceResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCancelJobRequest ¶ added in v0.3.0
NewCancelJobRequest generates requests for CancelJob
func NewCreateAssessmentRequest ¶
func NewCreateAssessmentRequest(server string, body CreateAssessmentJSONRequestBody) (*http.Request, error)
NewCreateAssessmentRequest calls the generic CreateAssessment builder with application/json body
func NewCreateAssessmentRequestWithBody ¶
func NewCreateAssessmentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAssessmentRequestWithBody generates requests for CreateAssessment with any type of body
func NewCreateRVToolsAssessmentRequestWithBody ¶ added in v0.3.0
func NewCreateRVToolsAssessmentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateRVToolsAssessmentRequestWithBody generates requests for CreateRVToolsAssessment with any type of body
func NewCreateSourceRequest ¶
NewCreateSourceRequest calls the generic CreateSource builder with application/json body
func NewCreateSourceRequestWithBody ¶
func NewCreateSourceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSourceRequestWithBody generates requests for CreateSource with any type of body
func NewDeleteAssessmentRequest ¶
NewDeleteAssessmentRequest generates requests for DeleteAssessment
func NewDeleteSourceRequest ¶
NewDeleteSourceRequest generates requests for DeleteSource
func NewDeleteSourcesRequest ¶
NewDeleteSourcesRequest generates requests for DeleteSources
func NewGetAssessmentRequest ¶
NewGetAssessmentRequest generates requests for GetAssessment
func NewGetInfoRequest ¶
NewGetInfoRequest generates requests for GetInfo
func NewGetJobRequest ¶ added in v0.3.0
NewGetJobRequest generates requests for GetJob
func NewGetSourceDownloadURLRequest ¶
NewGetSourceDownloadURLRequest generates requests for GetSourceDownloadURL
func NewGetSourceRequest ¶
NewGetSourceRequest generates requests for GetSource
func NewHeadImageRequest ¶
NewHeadImageRequest generates requests for HeadImage
func NewHealthRequest ¶
NewHealthRequest generates requests for Health
func NewListAssessmentsRequest ¶
NewListAssessmentsRequest generates requests for ListAssessments
func NewListSourcesRequest ¶
NewListSourcesRequest generates requests for ListSources
func NewUpdateAssessmentRequest ¶
func NewUpdateAssessmentRequest(server string, id openapi_types.UUID, body UpdateAssessmentJSONRequestBody) (*http.Request, error)
NewUpdateAssessmentRequest calls the generic UpdateAssessment builder with application/json body
func NewUpdateAssessmentRequestWithBody ¶
func NewUpdateAssessmentRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateAssessmentRequestWithBody generates requests for UpdateAssessment with any type of body
func NewUpdateInventoryRequest ¶
func NewUpdateInventoryRequest(server string, id openapi_types.UUID, body UpdateInventoryJSONRequestBody) (*http.Request, error)
NewUpdateInventoryRequest calls the generic UpdateInventory builder with application/json body
func NewUpdateInventoryRequestWithBody ¶
func NewUpdateInventoryRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateInventoryRequestWithBody generates requests for UpdateInventory with any type of body
func NewUpdateSourceRequest ¶
func NewUpdateSourceRequest(server string, id openapi_types.UUID, body UpdateSourceJSONRequestBody) (*http.Request, error)
NewUpdateSourceRequest calls the generic UpdateSource builder with application/json body
Types ¶
type CancelJobResponse ¶ added in v0.3.0
type CancelJobResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Job
JSON400 *Error
JSON401 *Error
JSON403 *Error
JSON404 *Error
JSON409 *Error
JSON500 *Error
}
func ParseCancelJobResponse ¶ added in v0.3.0
func ParseCancelJobResponse(rsp *http.Response) (*CancelJobResponse, error)
ParseCancelJobResponse parses an HTTP response from a CancelJobWithResponse call
func (CancelJobResponse) Status ¶ added in v0.3.0
func (r CancelJobResponse) Status() string
Status returns HTTPResponse.Status
func (CancelJobResponse) StatusCode ¶ added in v0.3.0
func (r CancelJobResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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) CreateAssessment ¶
func (*Client) CreateAssessmentWithBody ¶
func (*Client) CreateRVToolsAssessmentWithBody ¶ added in v0.3.0
func (*Client) CreateSource ¶
func (*Client) CreateSourceWithBody ¶
func (*Client) DeleteAssessment ¶
func (c *Client) DeleteAssessment(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteSource ¶
func (c *Client) DeleteSource(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteSources ¶
func (*Client) GetAssessment ¶
func (c *Client) GetAssessment(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSource ¶
func (c *Client) GetSource(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSourceDownloadURL ¶
func (c *Client) GetSourceDownloadURL(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) HeadImage ¶
func (c *Client) HeadImage(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListAssessments ¶
func (*Client) ListSources ¶
func (*Client) UpdateAssessment ¶
func (c *Client) UpdateAssessment(ctx context.Context, id openapi_types.UUID, body UpdateAssessmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateAssessmentWithBody ¶
func (*Client) UpdateInventory ¶
func (c *Client) UpdateInventory(ctx context.Context, id openapi_types.UUID, body UpdateInventoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateInventoryWithBody ¶
func (*Client) UpdateSource ¶
func (c *Client) UpdateSource(ctx context.Context, id openapi_types.UUID, body UpdateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateSourceWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// ListAssessments request
ListAssessments(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAssessmentWithBody request with any body
CreateAssessmentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAssessment(ctx context.Context, body CreateAssessmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CancelJob request
CancelJob(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetJob request
GetJob(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateRVToolsAssessmentWithBody request with any body
CreateRVToolsAssessmentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteAssessment request
DeleteAssessment(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAssessment request
GetAssessment(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateAssessmentWithBody request with any body
UpdateAssessmentWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateAssessment(ctx context.Context, id openapi_types.UUID, body UpdateAssessmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetInfo request
GetInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSources request
DeleteSources(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSources request
ListSources(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSourceWithBody request with any body
CreateSourceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSource(ctx context.Context, body CreateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSource request
DeleteSource(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSource request
GetSource(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateSourceWithBody request with any body
UpdateSourceWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateSource(ctx context.Context, id openapi_types.UUID, body UpdateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// HeadImage request
HeadImage(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSourceDownloadURL request
GetSourceDownloadURL(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateInventoryWithBody request with any body
UpdateInventoryWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateInventory(ctx context.Context, id openapi_types.UUID, body UpdateInventoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// Health request
Health(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) CancelJobWithResponse ¶ added in v0.3.0
func (c *ClientWithResponses) CancelJobWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*CancelJobResponse, error)
CancelJobWithResponse request returning *CancelJobResponse
func (*ClientWithResponses) CreateAssessmentWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAssessmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAssessmentResponse, error)
CreateAssessmentWithBodyWithResponse request with arbitrary body returning *CreateAssessmentResponse
func (*ClientWithResponses) CreateAssessmentWithResponse ¶
func (c *ClientWithResponses) CreateAssessmentWithResponse(ctx context.Context, body CreateAssessmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAssessmentResponse, error)
func (*ClientWithResponses) CreateRVToolsAssessmentWithBodyWithResponse ¶ added in v0.3.0
func (c *ClientWithResponses) CreateRVToolsAssessmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRVToolsAssessmentResponse, error)
CreateRVToolsAssessmentWithBodyWithResponse request with arbitrary body returning *CreateRVToolsAssessmentResponse
func (*ClientWithResponses) CreateSourceWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSourceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSourceResponse, error)
CreateSourceWithBodyWithResponse request with arbitrary body returning *CreateSourceResponse
func (*ClientWithResponses) CreateSourceWithResponse ¶
func (c *ClientWithResponses) CreateSourceWithResponse(ctx context.Context, body CreateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSourceResponse, error)
func (*ClientWithResponses) DeleteAssessmentWithResponse ¶
func (c *ClientWithResponses) DeleteAssessmentWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAssessmentResponse, error)
DeleteAssessmentWithResponse request returning *DeleteAssessmentResponse
func (*ClientWithResponses) DeleteSourceWithResponse ¶
func (c *ClientWithResponses) DeleteSourceWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteSourceResponse, error)
DeleteSourceWithResponse request returning *DeleteSourceResponse
func (*ClientWithResponses) DeleteSourcesWithResponse ¶
func (c *ClientWithResponses) DeleteSourcesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteSourcesResponse, error)
DeleteSourcesWithResponse request returning *DeleteSourcesResponse
func (*ClientWithResponses) GetAssessmentWithResponse ¶
func (c *ClientWithResponses) GetAssessmentWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAssessmentResponse, error)
GetAssessmentWithResponse request returning *GetAssessmentResponse
func (*ClientWithResponses) GetInfoWithResponse ¶
func (c *ClientWithResponses) GetInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetInfoResponse, error)
GetInfoWithResponse request returning *GetInfoResponse
func (*ClientWithResponses) GetJobWithResponse ¶ added in v0.3.0
func (c *ClientWithResponses) GetJobWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetJobResponse, error)
GetJobWithResponse request returning *GetJobResponse
func (*ClientWithResponses) GetSourceDownloadURLWithResponse ¶
func (c *ClientWithResponses) GetSourceDownloadURLWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSourceDownloadURLResponse, error)
GetSourceDownloadURLWithResponse request returning *GetSourceDownloadURLResponse
func (*ClientWithResponses) GetSourceWithResponse ¶
func (c *ClientWithResponses) GetSourceWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSourceResponse, error)
GetSourceWithResponse request returning *GetSourceResponse
func (*ClientWithResponses) HeadImageWithResponse ¶
func (c *ClientWithResponses) HeadImageWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*HeadImageResponse, error)
HeadImageWithResponse request returning *HeadImageResponse
func (*ClientWithResponses) HealthWithResponse ¶
func (c *ClientWithResponses) HealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthResponse, error)
HealthWithResponse request returning *HealthResponse
func (*ClientWithResponses) ListAssessmentsWithResponse ¶
func (c *ClientWithResponses) ListAssessmentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAssessmentsResponse, error)
ListAssessmentsWithResponse request returning *ListAssessmentsResponse
func (*ClientWithResponses) ListSourcesWithResponse ¶
func (c *ClientWithResponses) ListSourcesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSourcesResponse, error)
ListSourcesWithResponse request returning *ListSourcesResponse
func (*ClientWithResponses) UpdateAssessmentWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateAssessmentWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAssessmentResponse, error)
UpdateAssessmentWithBodyWithResponse request with arbitrary body returning *UpdateAssessmentResponse
func (*ClientWithResponses) UpdateAssessmentWithResponse ¶
func (c *ClientWithResponses) UpdateAssessmentWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateAssessmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAssessmentResponse, error)
func (*ClientWithResponses) UpdateInventoryWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateInventoryWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInventoryResponse, error)
UpdateInventoryWithBodyWithResponse request with arbitrary body returning *UpdateInventoryResponse
func (*ClientWithResponses) UpdateInventoryWithResponse ¶
func (c *ClientWithResponses) UpdateInventoryWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateInventoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInventoryResponse, error)
func (*ClientWithResponses) UpdateSourceWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateSourceWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSourceResponse, error)
UpdateSourceWithBodyWithResponse request with arbitrary body returning *UpdateSourceResponse
func (*ClientWithResponses) UpdateSourceWithResponse ¶
func (c *ClientWithResponses) UpdateSourceWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSourceResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListAssessmentsWithResponse request
ListAssessmentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAssessmentsResponse, error)
// CreateAssessmentWithBodyWithResponse request with any body
CreateAssessmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAssessmentResponse, error)
CreateAssessmentWithResponse(ctx context.Context, body CreateAssessmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAssessmentResponse, error)
// CancelJobWithResponse request
CancelJobWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*CancelJobResponse, error)
// GetJobWithResponse request
GetJobWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetJobResponse, error)
// CreateRVToolsAssessmentWithBodyWithResponse request with any body
CreateRVToolsAssessmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRVToolsAssessmentResponse, error)
// DeleteAssessmentWithResponse request
DeleteAssessmentWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAssessmentResponse, error)
// GetAssessmentWithResponse request
GetAssessmentWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAssessmentResponse, error)
// UpdateAssessmentWithBodyWithResponse request with any body
UpdateAssessmentWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAssessmentResponse, error)
UpdateAssessmentWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateAssessmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAssessmentResponse, error)
// GetInfoWithResponse request
GetInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetInfoResponse, error)
// DeleteSourcesWithResponse request
DeleteSourcesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteSourcesResponse, error)
// ListSourcesWithResponse request
ListSourcesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSourcesResponse, error)
// CreateSourceWithBodyWithResponse request with any body
CreateSourceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSourceResponse, error)
CreateSourceWithResponse(ctx context.Context, body CreateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSourceResponse, error)
// DeleteSourceWithResponse request
DeleteSourceWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteSourceResponse, error)
// GetSourceWithResponse request
GetSourceWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSourceResponse, error)
// UpdateSourceWithBodyWithResponse request with any body
UpdateSourceWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSourceResponse, error)
UpdateSourceWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSourceResponse, error)
// HeadImageWithResponse request
HeadImageWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*HeadImageResponse, error)
// GetSourceDownloadURLWithResponse request
GetSourceDownloadURLWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSourceDownloadURLResponse, error)
// UpdateInventoryWithBodyWithResponse request with any body
UpdateInventoryWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInventoryResponse, error)
UpdateInventoryWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateInventoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInventoryResponse, error)
// HealthWithResponse request
HealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateAssessmentResponse ¶
type CreateAssessmentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Assessment
JSON400 *Error
JSON401 *Error
JSON500 *Error
}
func ParseCreateAssessmentResponse ¶
func ParseCreateAssessmentResponse(rsp *http.Response) (*CreateAssessmentResponse, error)
ParseCreateAssessmentResponse parses an HTTP response from a CreateAssessmentWithResponse call
func (CreateAssessmentResponse) Status ¶
func (r CreateAssessmentResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAssessmentResponse) StatusCode ¶
func (r CreateAssessmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateRVToolsAssessmentResponse ¶ added in v0.3.0
type CreateRVToolsAssessmentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *Job
JSON400 *Error
JSON401 *Error
JSON500 *Error
}
func ParseCreateRVToolsAssessmentResponse ¶ added in v0.3.0
func ParseCreateRVToolsAssessmentResponse(rsp *http.Response) (*CreateRVToolsAssessmentResponse, error)
ParseCreateRVToolsAssessmentResponse parses an HTTP response from a CreateRVToolsAssessmentWithResponse call
func (CreateRVToolsAssessmentResponse) Status ¶ added in v0.3.0
func (r CreateRVToolsAssessmentResponse) Status() string
Status returns HTTPResponse.Status
func (CreateRVToolsAssessmentResponse) StatusCode ¶ added in v0.3.0
func (r CreateRVToolsAssessmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSourceResponse ¶
type CreateSourceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Source
JSON400 *Error
JSON401 *Error
JSON500 *Error
}
func ParseCreateSourceResponse ¶
func ParseCreateSourceResponse(rsp *http.Response) (*CreateSourceResponse, error)
ParseCreateSourceResponse parses an HTTP response from a CreateSourceWithResponse call
func (CreateSourceResponse) Status ¶
func (r CreateSourceResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSourceResponse) StatusCode ¶
func (r CreateSourceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteAssessmentResponse ¶
type DeleteAssessmentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Assessment
JSON400 *Error
JSON401 *Error
JSON403 *Error
JSON404 *Error
JSON500 *Error
}
func ParseDeleteAssessmentResponse ¶
func ParseDeleteAssessmentResponse(rsp *http.Response) (*DeleteAssessmentResponse, error)
ParseDeleteAssessmentResponse parses an HTTP response from a DeleteAssessmentWithResponse call
func (DeleteAssessmentResponse) Status ¶
func (r DeleteAssessmentResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteAssessmentResponse) StatusCode ¶
func (r DeleteAssessmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSourceResponse ¶
type DeleteSourceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Source
JSON400 *Error
JSON401 *Error
JSON403 *Error
JSON404 *Error
JSON500 *Error
}
func ParseDeleteSourceResponse ¶
func ParseDeleteSourceResponse(rsp *http.Response) (*DeleteSourceResponse, error)
ParseDeleteSourceResponse parses an HTTP response from a DeleteSourceWithResponse call
func (DeleteSourceResponse) Status ¶
func (r DeleteSourceResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSourceResponse) StatusCode ¶
func (r DeleteSourceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSourcesResponse ¶
type DeleteSourcesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Status
JSON401 *Error
JSON500 *Error
}
func ParseDeleteSourcesResponse ¶
func ParseDeleteSourcesResponse(rsp *http.Response) (*DeleteSourcesResponse, error)
ParseDeleteSourcesResponse parses an HTTP response from a DeleteSourcesWithResponse call
func (DeleteSourcesResponse) Status ¶
func (r DeleteSourcesResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSourcesResponse) StatusCode ¶
func (r DeleteSourcesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAssessmentResponse ¶
type GetAssessmentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Assessment
JSON400 *Error
JSON401 *Error
JSON403 *Error
JSON404 *Error
JSON500 *Error
}
func ParseGetAssessmentResponse ¶
func ParseGetAssessmentResponse(rsp *http.Response) (*GetAssessmentResponse, error)
ParseGetAssessmentResponse parses an HTTP response from a GetAssessmentWithResponse call
func (GetAssessmentResponse) Status ¶
func (r GetAssessmentResponse) Status() string
Status returns HTTPResponse.Status
func (GetAssessmentResponse) StatusCode ¶
func (r GetAssessmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInfoResponse ¶
type GetInfoResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Info
JSON500 *Error
}
func ParseGetInfoResponse ¶
func ParseGetInfoResponse(rsp *http.Response) (*GetInfoResponse, error)
ParseGetInfoResponse parses an HTTP response from a GetInfoWithResponse call
func (GetInfoResponse) Status ¶
func (r GetInfoResponse) Status() string
Status returns HTTPResponse.Status
func (GetInfoResponse) StatusCode ¶
func (r GetInfoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetJobResponse ¶ added in v0.3.0
type GetJobResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Job
JSON400 *Error
JSON401 *Error
JSON403 *Error
JSON404 *Error
JSON500 *Error
}
func ParseGetJobResponse ¶ added in v0.3.0
func ParseGetJobResponse(rsp *http.Response) (*GetJobResponse, error)
ParseGetJobResponse parses an HTTP response from a GetJobWithResponse call
func (GetJobResponse) Status ¶ added in v0.3.0
func (r GetJobResponse) Status() string
Status returns HTTPResponse.Status
func (GetJobResponse) StatusCode ¶ added in v0.3.0
func (r GetJobResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSourceDownloadURLResponse ¶
type GetSourceDownloadURLResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PresignedUrl
JSON400 *Error
JSON401 *Error
JSON404 *Error
}
func ParseGetSourceDownloadURLResponse ¶
func ParseGetSourceDownloadURLResponse(rsp *http.Response) (*GetSourceDownloadURLResponse, error)
ParseGetSourceDownloadURLResponse parses an HTTP response from a GetSourceDownloadURLWithResponse call
func (GetSourceDownloadURLResponse) Status ¶
func (r GetSourceDownloadURLResponse) Status() string
Status returns HTTPResponse.Status
func (GetSourceDownloadURLResponse) StatusCode ¶
func (r GetSourceDownloadURLResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSourceResponse ¶
type GetSourceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Source
JSON400 *Error
JSON401 *Error
JSON403 *Error
JSON404 *Error
JSON500 *Error
}
func ParseGetSourceResponse ¶
func ParseGetSourceResponse(rsp *http.Response) (*GetSourceResponse, error)
ParseGetSourceResponse parses an HTTP response from a GetSourceWithResponse call
func (GetSourceResponse) Status ¶
func (r GetSourceResponse) Status() string
Status returns HTTPResponse.Status
func (GetSourceResponse) StatusCode ¶
func (r GetSourceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HeadImageResponse ¶
func ParseHeadImageResponse ¶
func ParseHeadImageResponse(rsp *http.Response) (*HeadImageResponse, error)
ParseHeadImageResponse parses an HTTP response from a HeadImageWithResponse call
func (HeadImageResponse) Status ¶
func (r HeadImageResponse) Status() string
Status returns HTTPResponse.Status
func (HeadImageResponse) StatusCode ¶
func (r HeadImageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HealthResponse ¶
func ParseHealthResponse ¶
func ParseHealthResponse(rsp *http.Response) (*HealthResponse, error)
ParseHealthResponse parses an HTTP response from a HealthWithResponse call
func (HealthResponse) Status ¶
func (r HealthResponse) Status() string
Status returns HTTPResponse.Status
func (HealthResponse) StatusCode ¶
func (r HealthResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ListAssessmentsResponse ¶
type ListAssessmentsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AssessmentList
JSON401 *Error
JSON500 *Error
}
func ParseListAssessmentsResponse ¶
func ParseListAssessmentsResponse(rsp *http.Response) (*ListAssessmentsResponse, error)
ParseListAssessmentsResponse parses an HTTP response from a ListAssessmentsWithResponse call
func (ListAssessmentsResponse) Status ¶
func (r ListAssessmentsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAssessmentsResponse) StatusCode ¶
func (r ListAssessmentsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSourcesResponse ¶
type ListSourcesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SourceList
JSON401 *Error
JSON500 *Error
}
func ParseListSourcesResponse ¶
func ParseListSourcesResponse(rsp *http.Response) (*ListSourcesResponse, error)
ParseListSourcesResponse parses an HTTP response from a ListSourcesWithResponse call
func (ListSourcesResponse) Status ¶
func (r ListSourcesResponse) Status() string
Status returns HTTPResponse.Status
func (ListSourcesResponse) StatusCode ¶
func (r ListSourcesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type UpdateAssessmentResponse ¶
type UpdateAssessmentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Assessment
JSON400 *Error
JSON401 *Error
JSON403 *Error
JSON404 *Error
JSON500 *Error
}
func ParseUpdateAssessmentResponse ¶
func ParseUpdateAssessmentResponse(rsp *http.Response) (*UpdateAssessmentResponse, error)
ParseUpdateAssessmentResponse parses an HTTP response from a UpdateAssessmentWithResponse call
func (UpdateAssessmentResponse) Status ¶
func (r UpdateAssessmentResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateAssessmentResponse) StatusCode ¶
func (r UpdateAssessmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateInventoryResponse ¶
type UpdateInventoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Source
JSON400 *Error
JSON401 *Error
JSON403 *Error
JSON404 *Error
JSON500 *Error
}
func ParseUpdateInventoryResponse ¶
func ParseUpdateInventoryResponse(rsp *http.Response) (*UpdateInventoryResponse, error)
ParseUpdateInventoryResponse parses an HTTP response from a UpdateInventoryWithResponse call
func (UpdateInventoryResponse) Status ¶
func (r UpdateInventoryResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateInventoryResponse) StatusCode ¶
func (r UpdateInventoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateSourceResponse ¶
type UpdateSourceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Source
JSON400 *Error
JSON401 *Error
JSON403 *Error
JSON404 *Error
JSON500 *Error
}
func ParseUpdateSourceResponse ¶
func ParseUpdateSourceResponse(rsp *http.Response) (*UpdateSourceResponse, error)
ParseUpdateSourceResponse parses an HTTP response from a UpdateSourceWithResponse call
func (UpdateSourceResponse) Status ¶
func (r UpdateSourceResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateSourceResponse) StatusCode ¶
func (r UpdateSourceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode