internalapi

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package internalapi provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInternalBulkCreateRequest

func NewInternalBulkCreateRequest(server string, body InternalBulkCreateJSONRequestBody) (*http.Request, error)

NewInternalBulkCreateRequest calls the generic InternalBulkCreate builder with application/json body

func NewInternalBulkCreateRequestWithBody

func NewInternalBulkCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewInternalBulkCreateRequestWithBody generates requests for InternalBulkCreate with any type of body

func NewInternalBulkDeleteHashesRequest

func NewInternalBulkDeleteHashesRequest(server string, body InternalBulkDeleteHashesJSONRequestBody) (*http.Request, error)

NewInternalBulkDeleteHashesRequest calls the generic InternalBulkDeleteHashes builder with application/json body

func NewInternalBulkDeleteHashesRequestWithBody

func NewInternalBulkDeleteHashesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewInternalBulkDeleteHashesRequestWithBody generates requests for InternalBulkDeleteHashes with any type of body

func NewInternalBulkDocumentsRequest

func NewInternalBulkDocumentsRequest(server string, body InternalBulkDocumentsJSONRequestBody) (*http.Request, error)

NewInternalBulkDocumentsRequest calls the generic InternalBulkDocuments builder with application/json body

func NewInternalBulkDocumentsRequestWithBody

func NewInternalBulkDocumentsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewInternalBulkDocumentsRequestWithBody generates requests for InternalBulkDocuments with any type of body

func NewInternalBulkHashesRequest

func NewInternalBulkHashesRequest(server string, body InternalBulkHashesJSONRequestBody) (*http.Request, error)

NewInternalBulkHashesRequest calls the generic InternalBulkHashes builder with application/json body

func NewInternalBulkHashesRequestWithBody

func NewInternalBulkHashesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewInternalBulkHashesRequestWithBody generates requests for InternalBulkHashes with any type of body

func NewInternalBulkSHA256ValidityRequest

func NewInternalBulkSHA256ValidityRequest(server string, body InternalBulkSHA256ValidityJSONRequestBody) (*http.Request, error)

NewInternalBulkSHA256ValidityRequest calls the generic InternalBulkSHA256Validity builder with application/json body

func NewInternalBulkSHA256ValidityRequestWithBody

func NewInternalBulkSHA256ValidityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewInternalBulkSHA256ValidityRequestWithBody generates requests for InternalBulkSHA256Validity with any type of body

func NewInternalCreateRequest

func NewInternalCreateRequest(server string, body InternalCreateJSONRequestBody) (*http.Request, error)

NewInternalCreateRequest calls the generic InternalCreate builder with application/json body

func NewInternalCreateRequestWithBody

func NewInternalCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewInternalCreateRequestWithBody generates requests for InternalCreate with any type of body

func NewInternalDeleteByQueryRequest

func NewInternalDeleteByQueryRequest(server string, params *InternalDeleteByQueryParams) (*http.Request, error)

NewInternalDeleteByQueryRequest generates requests for InternalDeleteByQuery

func NewInternalDeleteRequest

func NewInternalDeleteRequest(server string, id string) (*http.Request, error)

NewInternalDeleteRequest generates requests for InternalDelete

func NewInternalDownloadPartRequest

func NewInternalDownloadPartRequest(server string, fileId string, params *InternalDownloadPartParams) (*http.Request, error)

NewInternalDownloadPartRequest generates requests for InternalDownloadPart

func NewInternalDownloadRequest

func NewInternalDownloadRequest(server string, fileId string, params *InternalDownloadParams) (*http.Request, error)

NewInternalDownloadRequest generates requests for InternalDownload

func NewInternalGetRequest

func NewInternalGetRequest(server string, id string) (*http.Request, error)

NewInternalGetRequest generates requests for InternalGet

func NewInternalListRequest

func NewInternalListRequest(server string, params *InternalListParams) (*http.Request, error)

NewInternalListRequest generates requests for InternalList

func NewInternalMultipartCompleteRequest

func NewInternalMultipartCompleteRequest(server string, body InternalMultipartCompleteJSONRequestBody) (*http.Request, error)

NewInternalMultipartCompleteRequest calls the generic InternalMultipartComplete builder with application/json body

func NewInternalMultipartCompleteRequestWithBody

func NewInternalMultipartCompleteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewInternalMultipartCompleteRequestWithBody generates requests for InternalMultipartComplete with any type of body

func NewInternalMultipartInitRequest

func NewInternalMultipartInitRequest(server string, body InternalMultipartInitJSONRequestBody) (*http.Request, error)

NewInternalMultipartInitRequest calls the generic InternalMultipartInit builder with application/json body

func NewInternalMultipartInitRequestWithBody

func NewInternalMultipartInitRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewInternalMultipartInitRequestWithBody generates requests for InternalMultipartInit with any type of body

func NewInternalMultipartUploadRequest

func NewInternalMultipartUploadRequest(server string, body InternalMultipartUploadJSONRequestBody) (*http.Request, error)

NewInternalMultipartUploadRequest calls the generic InternalMultipartUpload builder with application/json body

func NewInternalMultipartUploadRequestWithBody

func NewInternalMultipartUploadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewInternalMultipartUploadRequestWithBody generates requests for InternalMultipartUpload with any type of body

func NewInternalUpdateRequest

func NewInternalUpdateRequest(server string, id string, body InternalUpdateJSONRequestBody) (*http.Request, error)

NewInternalUpdateRequest calls the generic InternalUpdate builder with application/json body

func NewInternalUpdateRequestWithBody

func NewInternalUpdateRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewInternalUpdateRequestWithBody generates requests for InternalUpdate with any type of body

func NewInternalUploadBlankRequest

func NewInternalUploadBlankRequest(server string, body InternalUploadBlankJSONRequestBody) (*http.Request, error)

NewInternalUploadBlankRequest calls the generic InternalUploadBlank builder with application/json body

func NewInternalUploadBlankRequestWithBody

func NewInternalUploadBlankRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewInternalUploadBlankRequestWithBody generates requests for InternalUploadBlank with any type of body

func NewInternalUploadBulkRequest

func NewInternalUploadBulkRequest(server string, body InternalUploadBulkJSONRequestBody) (*http.Request, error)

NewInternalUploadBulkRequest calls the generic InternalUploadBulk builder with application/json body

func NewInternalUploadBulkRequestWithBody

func NewInternalUploadBulkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewInternalUploadBulkRequestWithBody generates requests for InternalUploadBulk with any type of body

func NewInternalUploadURLRequest

func NewInternalUploadURLRequest(server string, fileId string, params *InternalUploadURLParams) (*http.Request, error)

NewInternalUploadURLRequest generates requests for InternalUploadURL

Types

type AuthPathMap added in v0.2.5

type AuthPathMap map[string]map[string][]string

AuthPathMap Organization/project keyed storage paths. Values are concrete object paths such as s3://bucket/path/to/file.

type BulkCreateRequest

type BulkCreateRequest struct {
	Records []InternalRecord `json:"records"`
}

BulkCreateRequest defines model for BulkCreateRequest.

type BulkDocumentsRequest

type BulkDocumentsRequest struct {
	// contains filtered or unexported fields
}

BulkDocumentsRequest defines model for BulkDocumentsRequest.

func (BulkDocumentsRequest) AsBulkDocumentsRequest0

func (t BulkDocumentsRequest) AsBulkDocumentsRequest0() (BulkDocumentsRequest0, error)

AsBulkDocumentsRequest0 returns the union data inside the BulkDocumentsRequest as a BulkDocumentsRequest0

func (BulkDocumentsRequest) AsBulkDocumentsRequest1

func (t BulkDocumentsRequest) AsBulkDocumentsRequest1() (BulkDocumentsRequest1, error)

AsBulkDocumentsRequest1 returns the union data inside the BulkDocumentsRequest as a BulkDocumentsRequest1

func (*BulkDocumentsRequest) FromBulkDocumentsRequest0

func (t *BulkDocumentsRequest) FromBulkDocumentsRequest0(v BulkDocumentsRequest0) error

FromBulkDocumentsRequest0 overwrites any union data inside the BulkDocumentsRequest as the provided BulkDocumentsRequest0

func (*BulkDocumentsRequest) FromBulkDocumentsRequest1

func (t *BulkDocumentsRequest) FromBulkDocumentsRequest1(v BulkDocumentsRequest1) error

FromBulkDocumentsRequest1 overwrites any union data inside the BulkDocumentsRequest as the provided BulkDocumentsRequest1

func (BulkDocumentsRequest) MarshalJSON

func (t BulkDocumentsRequest) MarshalJSON() ([]byte, error)

func (*BulkDocumentsRequest) MergeBulkDocumentsRequest0

func (t *BulkDocumentsRequest) MergeBulkDocumentsRequest0(v BulkDocumentsRequest0) error

MergeBulkDocumentsRequest0 performs a merge with any union data inside the BulkDocumentsRequest, using the provided BulkDocumentsRequest0

func (*BulkDocumentsRequest) MergeBulkDocumentsRequest1

func (t *BulkDocumentsRequest) MergeBulkDocumentsRequest1(v BulkDocumentsRequest1) error

MergeBulkDocumentsRequest1 performs a merge with any union data inside the BulkDocumentsRequest, using the provided BulkDocumentsRequest1

func (*BulkDocumentsRequest) UnmarshalJSON

func (t *BulkDocumentsRequest) UnmarshalJSON(b []byte) error

type BulkDocumentsRequest0

type BulkDocumentsRequest0 = []string

BulkDocumentsRequest0 defines model for .

type BulkDocumentsRequest1

type BulkDocumentsRequest1 struct {
	Dids *[]string `json:"dids,omitempty"`
	Ids  *[]string `json:"ids,omitempty"`
}

BulkDocumentsRequest1 defines model for .

type BulkHashesRequest

type BulkHashesRequest struct {
	Hashes []string `json:"hashes"`
}

BulkHashesRequest defines model for BulkHashesRequest.

type BulkSHA256ValidityRequest

type BulkSHA256ValidityRequest struct {
	Hashes *[]string `json:"hashes,omitempty"`
	Sha256 *[]string `json:"sha256,omitempty"`
}

BulkSHA256ValidityRequest defines model for BulkSHA256ValidityRequest.

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) InternalBulkCreate

func (c *Client) InternalBulkCreate(ctx context.Context, body InternalBulkCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalBulkCreateWithBody

func (c *Client) InternalBulkCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalBulkDeleteHashes

func (c *Client) InternalBulkDeleteHashes(ctx context.Context, body InternalBulkDeleteHashesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalBulkDeleteHashesWithBody

func (c *Client) InternalBulkDeleteHashesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalBulkDocuments

func (c *Client) InternalBulkDocuments(ctx context.Context, body InternalBulkDocumentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalBulkDocumentsWithBody

func (c *Client) InternalBulkDocumentsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalBulkHashes

func (c *Client) InternalBulkHashes(ctx context.Context, body InternalBulkHashesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalBulkHashesWithBody

func (c *Client) InternalBulkHashesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalBulkSHA256Validity

func (c *Client) InternalBulkSHA256Validity(ctx context.Context, body InternalBulkSHA256ValidityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalBulkSHA256ValidityWithBody

func (c *Client) InternalBulkSHA256ValidityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalCreate

func (c *Client) InternalCreate(ctx context.Context, body InternalCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalCreateWithBody

func (c *Client) InternalCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalDelete

func (c *Client) InternalDelete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalDeleteByQuery

func (c *Client) InternalDeleteByQuery(ctx context.Context, params *InternalDeleteByQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalDownload

func (c *Client) InternalDownload(ctx context.Context, fileId string, params *InternalDownloadParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalDownloadPart

func (c *Client) InternalDownloadPart(ctx context.Context, fileId string, params *InternalDownloadPartParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalGet

func (c *Client) InternalGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalList

func (c *Client) InternalList(ctx context.Context, params *InternalListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalMultipartComplete

func (c *Client) InternalMultipartComplete(ctx context.Context, body InternalMultipartCompleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalMultipartCompleteWithBody

func (c *Client) InternalMultipartCompleteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalMultipartInit

func (c *Client) InternalMultipartInit(ctx context.Context, body InternalMultipartInitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalMultipartInitWithBody

func (c *Client) InternalMultipartInitWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalMultipartUpload

func (c *Client) InternalMultipartUpload(ctx context.Context, body InternalMultipartUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalMultipartUploadWithBody

func (c *Client) InternalMultipartUploadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalUpdate

func (c *Client) InternalUpdate(ctx context.Context, id string, body InternalUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalUpdateWithBody

func (c *Client) InternalUpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalUploadBlank

func (c *Client) InternalUploadBlank(ctx context.Context, body InternalUploadBlankJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalUploadBlankWithBody

func (c *Client) InternalUploadBlankWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalUploadBulk

func (c *Client) InternalUploadBulk(ctx context.Context, body InternalUploadBulkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalUploadBulkWithBody

func (c *Client) InternalUploadBulkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InternalUploadURL

func (c *Client) InternalUploadURL(ctx context.Context, fileId string, params *InternalUploadURLParams, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// InternalDownload request
	InternalDownload(ctx context.Context, fileId string, params *InternalDownloadParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalDownloadPart request
	InternalDownloadPart(ctx context.Context, fileId string, params *InternalDownloadPartParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalMultipartCompleteWithBody request with any body
	InternalMultipartCompleteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InternalMultipartComplete(ctx context.Context, body InternalMultipartCompleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalMultipartInitWithBody request with any body
	InternalMultipartInitWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InternalMultipartInit(ctx context.Context, body InternalMultipartInitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalMultipartUploadWithBody request with any body
	InternalMultipartUploadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InternalMultipartUpload(ctx context.Context, body InternalMultipartUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalUploadBlankWithBody request with any body
	InternalUploadBlankWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InternalUploadBlank(ctx context.Context, body InternalUploadBlankJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalUploadBulkWithBody request with any body
	InternalUploadBulkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InternalUploadBulk(ctx context.Context, body InternalUploadBulkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalUploadURL request
	InternalUploadURL(ctx context.Context, fileId string, params *InternalUploadURLParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalDeleteByQuery request
	InternalDeleteByQuery(ctx context.Context, params *InternalDeleteByQueryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalList request
	InternalList(ctx context.Context, params *InternalListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalCreateWithBody request with any body
	InternalCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InternalCreate(ctx context.Context, body InternalCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalBulkCreateWithBody request with any body
	InternalBulkCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InternalBulkCreate(ctx context.Context, body InternalBulkCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalBulkDeleteHashesWithBody request with any body
	InternalBulkDeleteHashesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InternalBulkDeleteHashes(ctx context.Context, body InternalBulkDeleteHashesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalBulkDocumentsWithBody request with any body
	InternalBulkDocumentsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InternalBulkDocuments(ctx context.Context, body InternalBulkDocumentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalBulkHashesWithBody request with any body
	InternalBulkHashesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InternalBulkHashes(ctx context.Context, body InternalBulkHashesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalBulkSHA256ValidityWithBody request with any body
	InternalBulkSHA256ValidityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InternalBulkSHA256Validity(ctx context.Context, body InternalBulkSHA256ValidityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalDelete request
	InternalDelete(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalGet request
	InternalGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalUpdateWithBody request with any body
	InternalUpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InternalUpdate(ctx context.Context, id string, body InternalUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) InternalBulkCreateWithBodyWithResponse

func (c *ClientWithResponses) InternalBulkCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalBulkCreateResponse, error)

InternalBulkCreateWithBodyWithResponse request with arbitrary body returning *InternalBulkCreateResponse

func (*ClientWithResponses) InternalBulkCreateWithResponse

func (c *ClientWithResponses) InternalBulkCreateWithResponse(ctx context.Context, body InternalBulkCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalBulkCreateResponse, error)

func (*ClientWithResponses) InternalBulkDeleteHashesWithBodyWithResponse

func (c *ClientWithResponses) InternalBulkDeleteHashesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalBulkDeleteHashesResponse, error)

InternalBulkDeleteHashesWithBodyWithResponse request with arbitrary body returning *InternalBulkDeleteHashesResponse

func (*ClientWithResponses) InternalBulkDeleteHashesWithResponse

func (c *ClientWithResponses) InternalBulkDeleteHashesWithResponse(ctx context.Context, body InternalBulkDeleteHashesJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalBulkDeleteHashesResponse, error)

func (*ClientWithResponses) InternalBulkDocumentsWithBodyWithResponse

func (c *ClientWithResponses) InternalBulkDocumentsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalBulkDocumentsResponse, error)

InternalBulkDocumentsWithBodyWithResponse request with arbitrary body returning *InternalBulkDocumentsResponse

func (*ClientWithResponses) InternalBulkDocumentsWithResponse

func (c *ClientWithResponses) InternalBulkDocumentsWithResponse(ctx context.Context, body InternalBulkDocumentsJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalBulkDocumentsResponse, error)

func (*ClientWithResponses) InternalBulkHashesWithBodyWithResponse

func (c *ClientWithResponses) InternalBulkHashesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalBulkHashesResponse, error)

InternalBulkHashesWithBodyWithResponse request with arbitrary body returning *InternalBulkHashesResponse

func (*ClientWithResponses) InternalBulkHashesWithResponse

func (c *ClientWithResponses) InternalBulkHashesWithResponse(ctx context.Context, body InternalBulkHashesJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalBulkHashesResponse, error)

func (*ClientWithResponses) InternalBulkSHA256ValidityWithBodyWithResponse

func (c *ClientWithResponses) InternalBulkSHA256ValidityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalBulkSHA256ValidityResponse, error)

InternalBulkSHA256ValidityWithBodyWithResponse request with arbitrary body returning *InternalBulkSHA256ValidityResponse

func (*ClientWithResponses) InternalBulkSHA256ValidityWithResponse

func (c *ClientWithResponses) InternalBulkSHA256ValidityWithResponse(ctx context.Context, body InternalBulkSHA256ValidityJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalBulkSHA256ValidityResponse, error)

func (*ClientWithResponses) InternalCreateWithBodyWithResponse

func (c *ClientWithResponses) InternalCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalCreateResponse, error)

InternalCreateWithBodyWithResponse request with arbitrary body returning *InternalCreateResponse

func (*ClientWithResponses) InternalCreateWithResponse

func (c *ClientWithResponses) InternalCreateWithResponse(ctx context.Context, body InternalCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalCreateResponse, error)

func (*ClientWithResponses) InternalDeleteByQueryWithResponse

func (c *ClientWithResponses) InternalDeleteByQueryWithResponse(ctx context.Context, params *InternalDeleteByQueryParams, reqEditors ...RequestEditorFn) (*InternalDeleteByQueryResponse, error)

InternalDeleteByQueryWithResponse request returning *InternalDeleteByQueryResponse

func (*ClientWithResponses) InternalDeleteWithResponse

func (c *ClientWithResponses) InternalDeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*InternalDeleteResponse, error)

InternalDeleteWithResponse request returning *InternalDeleteResponse

func (*ClientWithResponses) InternalDownloadPartWithResponse

func (c *ClientWithResponses) InternalDownloadPartWithResponse(ctx context.Context, fileId string, params *InternalDownloadPartParams, reqEditors ...RequestEditorFn) (*InternalDownloadPartResponse, error)

InternalDownloadPartWithResponse request returning *InternalDownloadPartResponse

func (*ClientWithResponses) InternalDownloadWithResponse

func (c *ClientWithResponses) InternalDownloadWithResponse(ctx context.Context, fileId string, params *InternalDownloadParams, reqEditors ...RequestEditorFn) (*InternalDownloadResponse, error)

InternalDownloadWithResponse request returning *InternalDownloadResponse

func (*ClientWithResponses) InternalGetWithResponse

func (c *ClientWithResponses) InternalGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*InternalGetResponse, error)

InternalGetWithResponse request returning *InternalGetResponse

func (*ClientWithResponses) InternalListWithResponse

func (c *ClientWithResponses) InternalListWithResponse(ctx context.Context, params *InternalListParams, reqEditors ...RequestEditorFn) (*InternalListResponse, error)

InternalListWithResponse request returning *InternalListResponse

func (*ClientWithResponses) InternalMultipartCompleteWithBodyWithResponse

func (c *ClientWithResponses) InternalMultipartCompleteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalMultipartCompleteResponse, error)

InternalMultipartCompleteWithBodyWithResponse request with arbitrary body returning *InternalMultipartCompleteResponse

func (*ClientWithResponses) InternalMultipartCompleteWithResponse

func (c *ClientWithResponses) InternalMultipartCompleteWithResponse(ctx context.Context, body InternalMultipartCompleteJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalMultipartCompleteResponse, error)

func (*ClientWithResponses) InternalMultipartInitWithBodyWithResponse

func (c *ClientWithResponses) InternalMultipartInitWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalMultipartInitResponse, error)

InternalMultipartInitWithBodyWithResponse request with arbitrary body returning *InternalMultipartInitResponse

func (*ClientWithResponses) InternalMultipartInitWithResponse

func (c *ClientWithResponses) InternalMultipartInitWithResponse(ctx context.Context, body InternalMultipartInitJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalMultipartInitResponse, error)

func (*ClientWithResponses) InternalMultipartUploadWithBodyWithResponse

func (c *ClientWithResponses) InternalMultipartUploadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalMultipartUploadResponse, error)

InternalMultipartUploadWithBodyWithResponse request with arbitrary body returning *InternalMultipartUploadResponse

func (*ClientWithResponses) InternalMultipartUploadWithResponse

func (c *ClientWithResponses) InternalMultipartUploadWithResponse(ctx context.Context, body InternalMultipartUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalMultipartUploadResponse, error)

func (*ClientWithResponses) InternalUpdateWithBodyWithResponse

func (c *ClientWithResponses) InternalUpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalUpdateResponse, error)

InternalUpdateWithBodyWithResponse request with arbitrary body returning *InternalUpdateResponse

func (*ClientWithResponses) InternalUpdateWithResponse

func (c *ClientWithResponses) InternalUpdateWithResponse(ctx context.Context, id string, body InternalUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalUpdateResponse, error)

func (*ClientWithResponses) InternalUploadBlankWithBodyWithResponse

func (c *ClientWithResponses) InternalUploadBlankWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalUploadBlankResponse, error)

InternalUploadBlankWithBodyWithResponse request with arbitrary body returning *InternalUploadBlankResponse

func (*ClientWithResponses) InternalUploadBlankWithResponse

func (c *ClientWithResponses) InternalUploadBlankWithResponse(ctx context.Context, body InternalUploadBlankJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalUploadBlankResponse, error)

func (*ClientWithResponses) InternalUploadBulkWithBodyWithResponse

func (c *ClientWithResponses) InternalUploadBulkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalUploadBulkResponse, error)

InternalUploadBulkWithBodyWithResponse request with arbitrary body returning *InternalUploadBulkResponse

func (*ClientWithResponses) InternalUploadBulkWithResponse

func (c *ClientWithResponses) InternalUploadBulkWithResponse(ctx context.Context, body InternalUploadBulkJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalUploadBulkResponse, error)

func (*ClientWithResponses) InternalUploadURLWithResponse

func (c *ClientWithResponses) InternalUploadURLWithResponse(ctx context.Context, fileId string, params *InternalUploadURLParams, reqEditors ...RequestEditorFn) (*InternalUploadURLResponse, error)

InternalUploadURLWithResponse request returning *InternalUploadURLResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// InternalDownloadWithResponse request
	InternalDownloadWithResponse(ctx context.Context, fileId string, params *InternalDownloadParams, reqEditors ...RequestEditorFn) (*InternalDownloadResponse, error)

	// InternalDownloadPartWithResponse request
	InternalDownloadPartWithResponse(ctx context.Context, fileId string, params *InternalDownloadPartParams, reqEditors ...RequestEditorFn) (*InternalDownloadPartResponse, error)

	// InternalMultipartCompleteWithBodyWithResponse request with any body
	InternalMultipartCompleteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalMultipartCompleteResponse, error)

	InternalMultipartCompleteWithResponse(ctx context.Context, body InternalMultipartCompleteJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalMultipartCompleteResponse, error)

	// InternalMultipartInitWithBodyWithResponse request with any body
	InternalMultipartInitWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalMultipartInitResponse, error)

	InternalMultipartInitWithResponse(ctx context.Context, body InternalMultipartInitJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalMultipartInitResponse, error)

	// InternalMultipartUploadWithBodyWithResponse request with any body
	InternalMultipartUploadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalMultipartUploadResponse, error)

	InternalMultipartUploadWithResponse(ctx context.Context, body InternalMultipartUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalMultipartUploadResponse, error)

	// InternalUploadBlankWithBodyWithResponse request with any body
	InternalUploadBlankWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalUploadBlankResponse, error)

	InternalUploadBlankWithResponse(ctx context.Context, body InternalUploadBlankJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalUploadBlankResponse, error)

	// InternalUploadBulkWithBodyWithResponse request with any body
	InternalUploadBulkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalUploadBulkResponse, error)

	InternalUploadBulkWithResponse(ctx context.Context, body InternalUploadBulkJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalUploadBulkResponse, error)

	// InternalUploadURLWithResponse request
	InternalUploadURLWithResponse(ctx context.Context, fileId string, params *InternalUploadURLParams, reqEditors ...RequestEditorFn) (*InternalUploadURLResponse, error)

	// InternalDeleteByQueryWithResponse request
	InternalDeleteByQueryWithResponse(ctx context.Context, params *InternalDeleteByQueryParams, reqEditors ...RequestEditorFn) (*InternalDeleteByQueryResponse, error)

	// InternalListWithResponse request
	InternalListWithResponse(ctx context.Context, params *InternalListParams, reqEditors ...RequestEditorFn) (*InternalListResponse, error)

	// InternalCreateWithBodyWithResponse request with any body
	InternalCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalCreateResponse, error)

	InternalCreateWithResponse(ctx context.Context, body InternalCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalCreateResponse, error)

	// InternalBulkCreateWithBodyWithResponse request with any body
	InternalBulkCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalBulkCreateResponse, error)

	InternalBulkCreateWithResponse(ctx context.Context, body InternalBulkCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalBulkCreateResponse, error)

	// InternalBulkDeleteHashesWithBodyWithResponse request with any body
	InternalBulkDeleteHashesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalBulkDeleteHashesResponse, error)

	InternalBulkDeleteHashesWithResponse(ctx context.Context, body InternalBulkDeleteHashesJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalBulkDeleteHashesResponse, error)

	// InternalBulkDocumentsWithBodyWithResponse request with any body
	InternalBulkDocumentsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalBulkDocumentsResponse, error)

	InternalBulkDocumentsWithResponse(ctx context.Context, body InternalBulkDocumentsJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalBulkDocumentsResponse, error)

	// InternalBulkHashesWithBodyWithResponse request with any body
	InternalBulkHashesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalBulkHashesResponse, error)

	InternalBulkHashesWithResponse(ctx context.Context, body InternalBulkHashesJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalBulkHashesResponse, error)

	// InternalBulkSHA256ValidityWithBodyWithResponse request with any body
	InternalBulkSHA256ValidityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalBulkSHA256ValidityResponse, error)

	InternalBulkSHA256ValidityWithResponse(ctx context.Context, body InternalBulkSHA256ValidityJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalBulkSHA256ValidityResponse, error)

	// InternalDeleteWithResponse request
	InternalDeleteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*InternalDeleteResponse, error)

	// InternalGetWithResponse request
	InternalGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*InternalGetResponse, error)

	// InternalUpdateWithBodyWithResponse request with any body
	InternalUpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalUpdateResponse, error)

	InternalUpdateWithResponse(ctx context.Context, id string, body InternalUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalUpdateResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type DeleteByQueryResponse

type DeleteByQueryResponse struct {
	Deleted *int `json:"deleted,omitempty"`
}

DeleteByQueryResponse defines model for DeleteByQueryResponse.

type HashInfo

type HashInfo map[string]string

HashInfo Hash map, e.g. {"sha256":"..."}

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InternalBulkCreateJSONRequestBody

type InternalBulkCreateJSONRequestBody = BulkCreateRequest

InternalBulkCreateJSONRequestBody defines body for InternalBulkCreate for application/json ContentType.

type InternalBulkCreateResponse

type InternalBulkCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ListRecordsResponse
}

func ParseInternalBulkCreateResponse

func ParseInternalBulkCreateResponse(rsp *http.Response) (*InternalBulkCreateResponse, error)

ParseInternalBulkCreateResponse parses an HTTP response from a InternalBulkCreateWithResponse call

func (InternalBulkCreateResponse) Status

Status returns HTTPResponse.Status

func (InternalBulkCreateResponse) StatusCode

func (r InternalBulkCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InternalBulkDeleteHashesJSONRequestBody

type InternalBulkDeleteHashesJSONRequestBody = BulkHashesRequest

InternalBulkDeleteHashesJSONRequestBody defines body for InternalBulkDeleteHashes for application/json ContentType.

type InternalBulkDeleteHashesResponse

type InternalBulkDeleteHashesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DeleteByQueryResponse
}

func ParseInternalBulkDeleteHashesResponse

func ParseInternalBulkDeleteHashesResponse(rsp *http.Response) (*InternalBulkDeleteHashesResponse, error)

ParseInternalBulkDeleteHashesResponse parses an HTTP response from a InternalBulkDeleteHashesWithResponse call

func (InternalBulkDeleteHashesResponse) Status

Status returns HTTPResponse.Status

func (InternalBulkDeleteHashesResponse) StatusCode

func (r InternalBulkDeleteHashesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InternalBulkDocumentsJSONRequestBody

type InternalBulkDocumentsJSONRequestBody = BulkDocumentsRequest

InternalBulkDocumentsJSONRequestBody defines body for InternalBulkDocuments for application/json ContentType.

type InternalBulkDocumentsResponse

type InternalBulkDocumentsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]InternalRecordResponse
}

func ParseInternalBulkDocumentsResponse

func ParseInternalBulkDocumentsResponse(rsp *http.Response) (*InternalBulkDocumentsResponse, error)

ParseInternalBulkDocumentsResponse parses an HTTP response from a InternalBulkDocumentsWithResponse call

func (InternalBulkDocumentsResponse) Status

Status returns HTTPResponse.Status

func (InternalBulkDocumentsResponse) StatusCode

func (r InternalBulkDocumentsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InternalBulkHashesJSONRequestBody

type InternalBulkHashesJSONRequestBody = BulkHashesRequest

InternalBulkHashesJSONRequestBody defines body for InternalBulkHashes for application/json ContentType.

type InternalBulkHashesResponse

type InternalBulkHashesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListRecordsResponse
}

func ParseInternalBulkHashesResponse

func ParseInternalBulkHashesResponse(rsp *http.Response) (*InternalBulkHashesResponse, error)

ParseInternalBulkHashesResponse parses an HTTP response from a InternalBulkHashesWithResponse call

func (InternalBulkHashesResponse) Status

Status returns HTTPResponse.Status

func (InternalBulkHashesResponse) StatusCode

func (r InternalBulkHashesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InternalBulkSHA256ValidityJSONRequestBody

type InternalBulkSHA256ValidityJSONRequestBody = BulkSHA256ValidityRequest

InternalBulkSHA256ValidityJSONRequestBody defines body for InternalBulkSHA256Validity for application/json ContentType.

type InternalBulkSHA256ValidityResponse

type InternalBulkSHA256ValidityResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]bool
}

func ParseInternalBulkSHA256ValidityResponse

func ParseInternalBulkSHA256ValidityResponse(rsp *http.Response) (*InternalBulkSHA256ValidityResponse, error)

ParseInternalBulkSHA256ValidityResponse parses an HTTP response from a InternalBulkSHA256ValidityWithResponse call

func (InternalBulkSHA256ValidityResponse) Status

Status returns HTTPResponse.Status

func (InternalBulkSHA256ValidityResponse) StatusCode

func (r InternalBulkSHA256ValidityResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InternalCreateJSONRequestBody

type InternalCreateJSONRequestBody = InternalRecord

InternalCreateJSONRequestBody defines body for InternalCreate for application/json ContentType.

type InternalCreateResponse

type InternalCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *InternalRecordResponse
}

func ParseInternalCreateResponse

func ParseInternalCreateResponse(rsp *http.Response) (*InternalCreateResponse, error)

ParseInternalCreateResponse parses an HTTP response from a InternalCreateWithResponse call

func (InternalCreateResponse) Status

func (r InternalCreateResponse) Status() string

Status returns HTTPResponse.Status

func (InternalCreateResponse) StatusCode

func (r InternalCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InternalDeleteByQueryParams

type InternalDeleteByQueryParams struct {
	Organization *string `form:"organization,omitempty" json:"organization,omitempty"`
	Program      *string `form:"program,omitempty" json:"program,omitempty"`
	Project      *string `form:"project,omitempty" json:"project,omitempty"`
	Hash         *string `form:"hash,omitempty" json:"hash,omitempty"`
	HashType     *string `form:"hash_type,omitempty" json:"hash_type,omitempty"`
}

InternalDeleteByQueryParams defines parameters for InternalDeleteByQuery.

type InternalDeleteByQueryResponse

type InternalDeleteByQueryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DeleteByQueryResponse
}

func ParseInternalDeleteByQueryResponse

func ParseInternalDeleteByQueryResponse(rsp *http.Response) (*InternalDeleteByQueryResponse, error)

ParseInternalDeleteByQueryResponse parses an HTTP response from a InternalDeleteByQueryWithResponse call

func (InternalDeleteByQueryResponse) Status

Status returns HTTPResponse.Status

func (InternalDeleteByQueryResponse) StatusCode

func (r InternalDeleteByQueryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InternalDeleteResponse

type InternalDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseInternalDeleteResponse

func ParseInternalDeleteResponse(rsp *http.Response) (*InternalDeleteResponse, error)

ParseInternalDeleteResponse parses an HTTP response from a InternalDeleteWithResponse call

func (InternalDeleteResponse) Status

func (r InternalDeleteResponse) Status() string

Status returns HTTPResponse.Status

func (InternalDeleteResponse) StatusCode

func (r InternalDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InternalDownloadParams

type InternalDownloadParams struct {
	Redirect  *bool `form:"redirect,omitempty" json:"redirect,omitempty"`
	ExpiresIn *int  `form:"expires_in,omitempty" json:"expires_in,omitempty"`
}

InternalDownloadParams defines parameters for InternalDownload.

type InternalDownloadPartParams

type InternalDownloadPartParams struct {
	Start int64 `form:"start" json:"start"`
	End   int64 `form:"end" json:"end"`
}

InternalDownloadPartParams defines parameters for InternalDownloadPart.

type InternalDownloadPartResponse

type InternalDownloadPartResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InternalSignedURL
}

func ParseInternalDownloadPartResponse

func ParseInternalDownloadPartResponse(rsp *http.Response) (*InternalDownloadPartResponse, error)

ParseInternalDownloadPartResponse parses an HTTP response from a InternalDownloadPartWithResponse call

func (InternalDownloadPartResponse) Status

Status returns HTTPResponse.Status

func (InternalDownloadPartResponse) StatusCode

func (r InternalDownloadPartResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InternalDownloadResponse

type InternalDownloadResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InternalSignedURL
}

func ParseInternalDownloadResponse

func ParseInternalDownloadResponse(rsp *http.Response) (*InternalDownloadResponse, error)

ParseInternalDownloadResponse parses an HTTP response from a InternalDownloadWithResponse call

func (InternalDownloadResponse) Status

func (r InternalDownloadResponse) Status() string

Status returns HTTPResponse.Status

func (InternalDownloadResponse) StatusCode

func (r InternalDownloadResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InternalGetResponse

type InternalGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InternalRecordResponse
}

func ParseInternalGetResponse

func ParseInternalGetResponse(rsp *http.Response) (*InternalGetResponse, error)

ParseInternalGetResponse parses an HTTP response from a InternalGetWithResponse call

func (InternalGetResponse) Status

func (r InternalGetResponse) Status() string

Status returns HTTPResponse.Status

func (InternalGetResponse) StatusCode

func (r InternalGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InternalListParams

type InternalListParams struct {
	Hash         *string `form:"hash,omitempty" json:"hash,omitempty"`
	Organization *string `form:"organization,omitempty" json:"organization,omitempty"`
	Program      *string `form:"program,omitempty" json:"program,omitempty"`
	Project      *string `form:"project,omitempty" json:"project,omitempty"`
	Limit        *int    `form:"limit,omitempty" json:"limit,omitempty"`
	Page         *int    `form:"page,omitempty" json:"page,omitempty"`
}

InternalListParams defines parameters for InternalList.

type InternalListResponse

type InternalListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListRecordsResponse
}

func ParseInternalListResponse

func ParseInternalListResponse(rsp *http.Response) (*InternalListResponse, error)

ParseInternalListResponse parses an HTTP response from a InternalListWithResponse call

func (InternalListResponse) Status

func (r InternalListResponse) Status() string

Status returns HTTPResponse.Status

func (InternalListResponse) StatusCode

func (r InternalListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InternalMultipartCompleteJSONRequestBody

type InternalMultipartCompleteJSONRequestBody = InternalMultipartCompleteRequest

InternalMultipartCompleteJSONRequestBody defines body for InternalMultipartComplete for application/json ContentType.

type InternalMultipartCompleteRequest

type InternalMultipartCompleteRequest struct {
	Bucket   *string                 `json:"bucket,omitempty"`
	Key      string                  `json:"key"`
	Parts    []InternalMultipartPart `json:"parts"`
	UploadId string                  `json:"uploadId"`
}

InternalMultipartCompleteRequest defines model for InternalMultipartCompleteRequest.

type InternalMultipartCompleteResponse

type InternalMultipartCompleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseInternalMultipartCompleteResponse

func ParseInternalMultipartCompleteResponse(rsp *http.Response) (*InternalMultipartCompleteResponse, error)

ParseInternalMultipartCompleteResponse parses an HTTP response from a InternalMultipartCompleteWithResponse call

func (InternalMultipartCompleteResponse) Status

Status returns HTTPResponse.Status

func (InternalMultipartCompleteResponse) StatusCode

func (r InternalMultipartCompleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InternalMultipartInitJSONRequestBody

type InternalMultipartInitJSONRequestBody = InternalMultipartInitRequest

InternalMultipartInitJSONRequestBody defines body for InternalMultipartInit for application/json ContentType.

type InternalMultipartInitOutput

type InternalMultipartInitOutput struct {
	Guid     *string `json:"guid,omitempty"`
	UploadId *string `json:"uploadId,omitempty"`
}

InternalMultipartInitOutput defines model for InternalMultipartInitOutput.

type InternalMultipartInitRequest

type InternalMultipartInitRequest struct {
	Bucket   *string `json:"bucket,omitempty"`
	FileName *string `json:"file_name,omitempty"`
	Guid     *string `json:"guid,omitempty"`
}

InternalMultipartInitRequest defines model for InternalMultipartInitRequest.

type InternalMultipartInitResponse

type InternalMultipartInitResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InternalMultipartInitOutput
}

func ParseInternalMultipartInitResponse

func ParseInternalMultipartInitResponse(rsp *http.Response) (*InternalMultipartInitResponse, error)

ParseInternalMultipartInitResponse parses an HTTP response from a InternalMultipartInitWithResponse call

func (InternalMultipartInitResponse) Status

Status returns HTTPResponse.Status

func (InternalMultipartInitResponse) StatusCode

func (r InternalMultipartInitResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InternalMultipartPart

type InternalMultipartPart struct {
	ETag       string `json:"ETag"`
	PartNumber int32  `json:"PartNumber"`
}

InternalMultipartPart defines model for InternalMultipartPart.

type InternalMultipartUploadJSONRequestBody

type InternalMultipartUploadJSONRequestBody = InternalMultipartUploadRequest

InternalMultipartUploadJSONRequestBody defines body for InternalMultipartUpload for application/json ContentType.

type InternalMultipartUploadOutput

type InternalMultipartUploadOutput struct {
	PresignedUrl *string `json:"presigned_url,omitempty"`
}

InternalMultipartUploadOutput defines model for InternalMultipartUploadOutput.

type InternalMultipartUploadRequest

type InternalMultipartUploadRequest struct {
	Bucket     *string `json:"bucket,omitempty"`
	Key        string  `json:"key"`
	PartNumber int32   `json:"partNumber"`
	UploadId   string  `json:"uploadId"`
}

InternalMultipartUploadRequest defines model for InternalMultipartUploadRequest.

type InternalMultipartUploadResponse

type InternalMultipartUploadResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InternalMultipartUploadOutput
}

func ParseInternalMultipartUploadResponse

func ParseInternalMultipartUploadResponse(rsp *http.Response) (*InternalMultipartUploadResponse, error)

ParseInternalMultipartUploadResponse parses an HTTP response from a InternalMultipartUploadWithResponse call

func (InternalMultipartUploadResponse) Status

Status returns HTTPResponse.Status

func (InternalMultipartUploadResponse) StatusCode

func (r InternalMultipartUploadResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InternalRecord

type InternalRecord struct {
	// Auth Organization/project keyed storage paths. Values are concrete object paths such as s3://bucket/path/to/file.
	Auth        *AuthPathMap `json:"auth,omitempty"`
	CreatedTime *string      `json:"created_time,omitempty"`
	Description *string      `json:"description,omitempty"`
	Did         string       `json:"did"`
	FileName    *string      `json:"file_name,omitempty"`

	// Hashes Hash map, e.g. {"sha256":"..."}
	Hashes       *HashInfo `json:"hashes,omitempty"`
	Organization *string   `json:"organization,omitempty"`
	Project      *string   `json:"project,omitempty"`
	Size         *int64    `json:"size,omitempty"`
	UpdatedTime  *string   `json:"updated_time,omitempty"`
	Version      *string   `json:"version,omitempty"`
}

InternalRecord defines model for InternalRecord.

type InternalRecordResponse

type InternalRecordResponse struct {
	// Auth Organization/project keyed storage paths. Values are concrete object paths such as s3://bucket/path/to/file.
	Auth        *AuthPathMap `json:"auth,omitempty"`
	Baseid      *string      `json:"baseid,omitempty"`
	CreatedDate *string      `json:"created_date,omitempty"`
	CreatedTime *string      `json:"created_time,omitempty"`
	Description *string      `json:"description,omitempty"`
	Did         string       `json:"did"`
	FileName    *string      `json:"file_name,omitempty"`

	// Hashes Hash map, e.g. {"sha256":"..."}
	Hashes       *HashInfo `json:"hashes,omitempty"`
	Organization *string   `json:"organization,omitempty"`
	Project      *string   `json:"project,omitempty"`
	Rev          *string   `json:"rev,omitempty"`
	Size         *int64    `json:"size,omitempty"`
	UpdatedDate  *string   `json:"updated_date,omitempty"`
	UpdatedTime  *string   `json:"updated_time,omitempty"`
	Uploader     *string   `json:"uploader,omitempty"`
	Version      *string   `json:"version,omitempty"`
}

InternalRecordResponse defines model for InternalRecordResponse.

type InternalSignedURL

type InternalSignedURL struct {
	Url *string `json:"url,omitempty"`
}

InternalSignedURL defines model for InternalSignedURL.

type InternalUpdateJSONRequestBody

type InternalUpdateJSONRequestBody = InternalRecord

InternalUpdateJSONRequestBody defines body for InternalUpdate for application/json ContentType.

type InternalUpdateResponse

type InternalUpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InternalRecordResponse
}

func ParseInternalUpdateResponse

func ParseInternalUpdateResponse(rsp *http.Response) (*InternalUpdateResponse, error)

ParseInternalUpdateResponse parses an HTTP response from a InternalUpdateWithResponse call

func (InternalUpdateResponse) Status

func (r InternalUpdateResponse) Status() string

Status returns HTTPResponse.Status

func (InternalUpdateResponse) StatusCode

func (r InternalUpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InternalUploadBlankJSONRequestBody

type InternalUploadBlankJSONRequestBody = InternalUploadBlankRequest

InternalUploadBlankJSONRequestBody defines body for InternalUploadBlank for application/json ContentType.

type InternalUploadBlankOutput

type InternalUploadBlankOutput struct {
	Bucket *string `json:"bucket,omitempty"`
	Guid   *string `json:"guid,omitempty"`
	Url    *string `json:"url,omitempty"`
}

InternalUploadBlankOutput defines model for InternalUploadBlankOutput.

type InternalUploadBlankRequest

type InternalUploadBlankRequest struct {
	Guid *string `json:"guid,omitempty"`
}

InternalUploadBlankRequest defines model for InternalUploadBlankRequest.

type InternalUploadBlankResponse

type InternalUploadBlankResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *InternalUploadBlankOutput
}

func ParseInternalUploadBlankResponse

func ParseInternalUploadBlankResponse(rsp *http.Response) (*InternalUploadBlankResponse, error)

ParseInternalUploadBlankResponse parses an HTTP response from a InternalUploadBlankWithResponse call

func (InternalUploadBlankResponse) Status

Status returns HTTPResponse.Status

func (InternalUploadBlankResponse) StatusCode

func (r InternalUploadBlankResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InternalUploadBulkItem

type InternalUploadBulkItem struct {
	Bucket    *string `json:"bucket,omitempty"`
	ExpiresIn *int32  `json:"expires_in,omitempty"`
	FileId    string  `json:"file_id"`
	FileName  *string `json:"file_name,omitempty"`
}

InternalUploadBulkItem defines model for InternalUploadBulkItem.

type InternalUploadBulkJSONRequestBody

type InternalUploadBulkJSONRequestBody = InternalUploadBulkRequest

InternalUploadBulkJSONRequestBody defines body for InternalUploadBulk for application/json ContentType.

type InternalUploadBulkOutput

type InternalUploadBulkOutput struct {
	Results *[]InternalUploadBulkResult `json:"results,omitempty"`
}

InternalUploadBulkOutput defines model for InternalUploadBulkOutput.

type InternalUploadBulkRequest

type InternalUploadBulkRequest struct {
	Requests []InternalUploadBulkItem `json:"requests"`
}

InternalUploadBulkRequest defines model for InternalUploadBulkRequest.

type InternalUploadBulkResponse

type InternalUploadBulkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InternalUploadBulkOutput
	JSON207      *InternalUploadBulkOutput
}

func ParseInternalUploadBulkResponse

func ParseInternalUploadBulkResponse(rsp *http.Response) (*InternalUploadBulkResponse, error)

ParseInternalUploadBulkResponse parses an HTTP response from a InternalUploadBulkWithResponse call

func (InternalUploadBulkResponse) Status

Status returns HTTPResponse.Status

func (InternalUploadBulkResponse) StatusCode

func (r InternalUploadBulkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InternalUploadBulkResult

type InternalUploadBulkResult struct {
	Bucket   *string `json:"bucket,omitempty"`
	Error    *string `json:"error,omitempty"`
	FileId   string  `json:"file_id"`
	FileName *string `json:"file_name,omitempty"`
	Status   int32   `json:"status"`
	Url      *string `json:"url,omitempty"`
}

InternalUploadBulkResult defines model for InternalUploadBulkResult.

type InternalUploadURLParams

type InternalUploadURLParams struct {
	Bucket    *string `form:"bucket,omitempty" json:"bucket,omitempty"`
	FileName  *string `form:"file_name,omitempty" json:"file_name,omitempty"`
	ExpiresIn *int32  `form:"expires_in,omitempty" json:"expires_in,omitempty"`
}

InternalUploadURLParams defines parameters for InternalUploadURL.

type InternalUploadURLResponse

type InternalUploadURLResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InternalSignedURL
}

func ParseInternalUploadURLResponse

func ParseInternalUploadURLResponse(rsp *http.Response) (*InternalUploadURLResponse, error)

ParseInternalUploadURLResponse parses an HTTP response from a InternalUploadURLWithResponse call

func (InternalUploadURLResponse) Status

func (r InternalUploadURLResponse) Status() string

Status returns HTTPResponse.Status

func (InternalUploadURLResponse) StatusCode

func (r InternalUploadURLResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRecordsResponse

type ListRecordsResponse struct {
	Records *[]InternalRecord `json:"records,omitempty"`
}

ListRecordsResponse defines model for ListRecordsResponse.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

Jump to

Keyboard shortcuts

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