Documentation
¶
Overview ¶
Package generated provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- func GetSpec() (swagger *openapi3.T, err error)
- func GetSpecJSON() ([]byte, error)
- func GetSwagger() (*openapi3.T, error)deprecated
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
- func NewDeleteUploadRequest(server string, body DeleteUploadJSONRequestBody) (*http.Request, error)
- func NewDeleteUploadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewExecutePurgeRequest(server string, body ExecutePurgeJSONRequestBody) (*http.Request, error)
- func NewExecutePurgeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetCapabilitiesRequest(server string) (*http.Request, error)
- func NewGetOpenAPIRequest(server string) (*http.Request, error)
- func NewGetUploadRequest(server string, body GetUploadJSONRequestBody) (*http.Request, error)
- func NewGetUploadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewHealthRequest(server string) (*http.Request, error)
- func NewInspectUploadRequest(server string, body InspectUploadJSONRequestBody) (*http.Request, error)
- func NewInspectUploadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListManifestUploadsRequest(server string) (*http.Request, error)
- func NewListStorageUploadsRequest(server string) (*http.Request, error)
- func NewPreviewPurgeRequest(server string, body PreviewPurgeJSONRequestBody) (*http.Request, error)
- func NewPreviewPurgeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSyncManifestRequest(server string, body SyncManifestJSONRequestBody) (*http.Request, error)
- func NewSyncManifestRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUploadCollectionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUploadDocumentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type Capabilities
- type CapabilitiesAPIVersion
- type CapabilitiesUploadFormats
- type Client
- func (c *Client) DeleteUpload(ctx context.Context, body DeleteUploadJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteUploadWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ExecutePurge(ctx context.Context, body ExecutePurgeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ExecutePurgeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetCapabilities(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOpenAPI(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUpload(ctx context.Context, body GetUploadJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetUploadWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Health(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) InspectUpload(ctx context.Context, body InspectUploadJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) InspectUploadWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListManifestUploads(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListStorageUploads(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PreviewPurge(ctx context.Context, body PreviewPurgeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PreviewPurgeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SyncManifest(ctx context.Context, body SyncManifestJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SyncManifestWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UploadCollectionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UploadDocumentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteUploadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteUploadResponse, error)
- func (c *ClientWithResponses) DeleteUploadWithResponse(ctx context.Context, body DeleteUploadJSONRequestBody, ...) (*DeleteUploadResponse, error)
- func (c *ClientWithResponses) ExecutePurgeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ExecutePurgeResponse, error)
- func (c *ClientWithResponses) ExecutePurgeWithResponse(ctx context.Context, body ExecutePurgeJSONRequestBody, ...) (*ExecutePurgeResponse, error)
- func (c *ClientWithResponses) GetCapabilitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCapabilitiesResponse, error)
- func (c *ClientWithResponses) GetOpenAPIWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIResponse, error)
- func (c *ClientWithResponses) GetUploadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetUploadResponse, error)
- func (c *ClientWithResponses) GetUploadWithResponse(ctx context.Context, body GetUploadJSONRequestBody, ...) (*GetUploadResponse, error)
- func (c *ClientWithResponses) HealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthResponse, error)
- func (c *ClientWithResponses) InspectUploadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*InspectUploadResponse, error)
- func (c *ClientWithResponses) InspectUploadWithResponse(ctx context.Context, body InspectUploadJSONRequestBody, ...) (*InspectUploadResponse, error)
- func (c *ClientWithResponses) ListManifestUploadsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListManifestUploadsResponse, error)
- func (c *ClientWithResponses) ListStorageUploadsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListStorageUploadsResponse, error)
- func (c *ClientWithResponses) PreviewPurgeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PreviewPurgeResponse, error)
- func (c *ClientWithResponses) PreviewPurgeWithResponse(ctx context.Context, body PreviewPurgeJSONRequestBody, ...) (*PreviewPurgeResponse, error)
- func (c *ClientWithResponses) SyncManifestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SyncManifestResponse, error)
- func (c *ClientWithResponses) SyncManifestWithResponse(ctx context.Context, body SyncManifestJSONRequestBody, ...) (*SyncManifestResponse, error)
- func (c *ClientWithResponses) UploadCollectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UploadCollectionResponse, error)
- func (c *ClientWithResponses) UploadDocumentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UploadDocumentResponse, error)
- type ClientWithResponsesInterface
- type CollectionMetadata
- type DeleteResult
- type DeleteResultKind
- type DeleteUpload200JSONResponse
- type DeleteUploadJSONRequestBody
- type DeleteUploadRequestObject
- type DeleteUploadResponse
- func (r DeleteUploadResponse) ContentType() string
- func (r DeleteUploadResponse) GetApplicationProblemJSONDefault() *Problem
- func (r DeleteUploadResponse) GetBody() []byte
- func (r DeleteUploadResponse) GetJSON200() *DeleteResult
- func (r DeleteUploadResponse) Status() string
- func (r DeleteUploadResponse) StatusCode() int
- type DeleteUploadResponseObject
- type DeleteUploaddefaultApplicationProblemPlusJSONResponse
- type DocumentMetadata
- type DocumentMetadataFormat
- type ExecutePurge200JSONResponse
- type ExecutePurgeJSONRequestBody
- type ExecutePurgeRequestObject
- type ExecutePurgeResponse
- func (r ExecutePurgeResponse) ContentType() string
- func (r ExecutePurgeResponse) GetApplicationProblemJSONDefault() *Problem
- func (r ExecutePurgeResponse) GetBody() []byte
- func (r ExecutePurgeResponse) GetJSON200() *PurgeResult
- func (r ExecutePurgeResponse) Status() string
- func (r ExecutePurgeResponse) StatusCode() int
- type ExecutePurgeResponseObject
- type ExecutePurgedefaultApplicationProblemPlusJSONResponse
- type FileResult
- type GetCapabilities200JSONResponse
- type GetCapabilitiesRequestObject
- type GetCapabilitiesResponse
- func (r GetCapabilitiesResponse) ContentType() string
- func (r GetCapabilitiesResponse) GetApplicationProblemJSONDefault() *Problem
- func (r GetCapabilitiesResponse) GetBody() []byte
- func (r GetCapabilitiesResponse) GetJSON200() *Capabilities
- func (r GetCapabilitiesResponse) Status() string
- func (r GetCapabilitiesResponse) StatusCode() int
- type GetCapabilitiesResponseObject
- type GetCapabilitiesdefaultApplicationProblemPlusJSONResponse
- type GetOpenAPI200ApplicationYamlResponse
- type GetOpenAPIRequestObject
- type GetOpenAPIResponse
- func (r GetOpenAPIResponse) ContentType() string
- func (r GetOpenAPIResponse) GetApplicationProblemJSONDefault() *Problem
- func (r GetOpenAPIResponse) GetBody() []byte
- func (r GetOpenAPIResponse) GetYAML200() *string
- func (r GetOpenAPIResponse) Status() string
- func (r GetOpenAPIResponse) StatusCode() int
- type GetOpenAPIResponseObject
- type GetOpenAPIdefaultApplicationProblemPlusJSONResponse
- type GetUpload200ApplicationOctetStreamResponse
- type GetUpload200ResponseHeaders
- type GetUploadJSONRequestBody
- type GetUploadRequest
- type GetUploadRequestObject
- type GetUploadResponse
- type GetUploadResponse200Headers
- type GetUploadResponseObject
- type GetUploaddefaultApplicationProblemPlusJSONResponse
- type Health
- type Health200JSONResponse
- type HealthRequestObject
- type HealthResponse
- type HealthResponseObject
- type HealthStatus
- type HealthdefaultApplicationProblemPlusJSONResponse
- type HttpRequestDoer
- type InspectUpload200JSONResponse
- type InspectUploadJSONRequestBody
- type InspectUploadRequestObject
- type InspectUploadResponse
- func (r InspectUploadResponse) ContentType() string
- func (r InspectUploadResponse) GetApplicationProblemJSONDefault() *Problem
- func (r InspectUploadResponse) GetBody() []byte
- func (r InspectUploadResponse) GetJSON200() *UploadInspection
- func (r InspectUploadResponse) Status() string
- func (r InspectUploadResponse) StatusCode() int
- type InspectUploadResponseObject
- type InspectUploaddefaultApplicationProblemPlusJSONResponse
- type InspectedObject
- type InvalidParamFormatError
- type ListManifestUploads200JSONResponse
- type ListManifestUploadsRequestObject
- type ListManifestUploadsResponse
- func (r ListManifestUploadsResponse) ContentType() string
- func (r ListManifestUploadsResponse) GetApplicationProblemJSONDefault() *Problem
- func (r ListManifestUploadsResponse) GetBody() []byte
- func (r ListManifestUploadsResponse) GetJSON200() *ManifestList
- func (r ListManifestUploadsResponse) Status() string
- func (r ListManifestUploadsResponse) StatusCode() int
- type ListManifestUploadsResponseObject
- type ListManifestUploadsdefaultApplicationProblemPlusJSONResponse
- type ListStorageUploads200JSONResponse
- type ListStorageUploadsRequestObject
- type ListStorageUploadsResponse
- func (r ListStorageUploadsResponse) ContentType() string
- func (r ListStorageUploadsResponse) GetApplicationProblemJSONDefault() *Problem
- func (r ListStorageUploadsResponse) GetBody() []byte
- func (r ListStorageUploadsResponse) GetJSON200() *StorageList
- func (r ListStorageUploadsResponse) Status() string
- func (r ListStorageUploadsResponse) StatusCode() int
- type ListStorageUploadsResponseObject
- type ListStorageUploadsdefaultApplicationProblemPlusJSONResponse
- type ManifestList
- type ManifestRecord
- type ManifestRecordKind
- type ManifestRecordType
- type MiddlewareFunc
- type PreviewPurge200JSONResponse
- type PreviewPurgeJSONRequestBody
- type PreviewPurgeRequestObject
- type PreviewPurgeResponse
- func (r PreviewPurgeResponse) ContentType() string
- func (r PreviewPurgeResponse) GetApplicationProblemJSONDefault() *Problem
- func (r PreviewPurgeResponse) GetBody() []byte
- func (r PreviewPurgeResponse) GetJSON200() *PurgePreview
- func (r PreviewPurgeResponse) Status() string
- func (r PreviewPurgeResponse) StatusCode() int
- type PreviewPurgeResponseObject
- type PreviewPurgedefaultApplicationProblemPlusJSONResponse
- type Problem
- type ProblemApplicationProblemPlusJSONResponse
- type PurgeCandidate
- type PurgeItemResult
- type PurgePreview
- type PurgePreviewRequest
- type PurgePreviewRequestSource
- type PurgeRequest
- type PurgeResult
- type RemoteUpload
- type RemoteUploadKind
- type RequestEditorFn
- type RequiredHeaderError
- type RequiredParamError
- type ServeMux
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) DeleteUpload(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ExecutePurge(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCapabilities(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetOpenAPI(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetUpload(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) Health(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) InspectUpload(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListManifestUploads(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListStorageUploads(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PreviewPurge(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SyncManifest(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UploadCollection(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UploadDocument(w http.ResponseWriter, r *http.Request)
- type StdHTTPServerOptions
- type StorageList
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type SyncFailure
- type SyncFailureOperation
- type SyncManifest200JSONResponse
- type SyncManifestJSONRequestBody
- type SyncManifestRequestObject
- type SyncManifestResponse
- func (r SyncManifestResponse) ContentType() string
- func (r SyncManifestResponse) GetApplicationProblemJSONDefault() *Problem
- func (r SyncManifestResponse) GetBody() []byte
- func (r SyncManifestResponse) GetJSON200() *SyncResult
- func (r SyncManifestResponse) Status() string
- func (r SyncManifestResponse) StatusCode() int
- type SyncManifestResponseObject
- type SyncManifestdefaultApplicationProblemPlusJSONResponse
- type SyncRequest
- type SyncResult
- type TargetRequest
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type UploadCollection201JSONResponse
- type UploadCollectionMultipartBody
- type UploadCollectionMultipartRequestBody
- type UploadCollectionRequestObject
- type UploadCollectionResponse
- func (r UploadCollectionResponse) ContentType() string
- func (r UploadCollectionResponse) GetApplicationProblemJSONDefault() *Problem
- func (r UploadCollectionResponse) GetBody() []byte
- func (r UploadCollectionResponse) GetJSON201() *UploadResult
- func (r UploadCollectionResponse) Status() string
- func (r UploadCollectionResponse) StatusCode() int
- type UploadCollectionResponseObject
- type UploadCollectiondefaultApplicationProblemPlusJSONResponse
- type UploadDocument201JSONResponse
- type UploadDocumentMultipartBody
- type UploadDocumentMultipartRequestBody
- type UploadDocumentRequestObject
- type UploadDocumentResponse
- func (r UploadDocumentResponse) ContentType() string
- func (r UploadDocumentResponse) GetApplicationProblemJSONDefault() *Problem
- func (r UploadDocumentResponse) GetBody() []byte
- func (r UploadDocumentResponse) GetJSON201() *UploadResult
- func (r UploadDocumentResponse) Status() string
- func (r UploadDocumentResponse) StatusCode() int
- type UploadDocumentResponseObject
- type UploadDocumentdefaultApplicationProblemPlusJSONResponse
- type UploadInspection
- type UploadInspectionKind
- type UploadInspectionState
- type UploadLimits
- type UploadResult
- type UploadResultKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSpec ¶
GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.
func GetSpecJSON ¶
GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.
func GetSwagger
deprecated
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
func NewDeleteUploadRequest ¶
func NewDeleteUploadRequest(server string, body DeleteUploadJSONRequestBody) (*http.Request, error)
NewDeleteUploadRequest calls the generic DeleteUpload builder with application/json body
func NewDeleteUploadRequestWithBody ¶
func NewDeleteUploadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteUploadRequestWithBody constructs an http.Request for the DeleteUpload method, with any body, and a specified content type
func NewExecutePurgeRequest ¶
func NewExecutePurgeRequest(server string, body ExecutePurgeJSONRequestBody) (*http.Request, error)
NewExecutePurgeRequest calls the generic ExecutePurge builder with application/json body
func NewExecutePurgeRequestWithBody ¶
func NewExecutePurgeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewExecutePurgeRequestWithBody constructs an http.Request for the ExecutePurge method, with any body, and a specified content type
func NewGetCapabilitiesRequest ¶
NewGetCapabilitiesRequest constructs an http.Request for the GetCapabilities method
func NewGetOpenAPIRequest ¶
NewGetOpenAPIRequest constructs an http.Request for the GetOpenAPI method
func NewGetUploadRequest ¶
func NewGetUploadRequest(server string, body GetUploadJSONRequestBody) (*http.Request, error)
NewGetUploadRequest calls the generic GetUpload builder with application/json body
func NewGetUploadRequestWithBody ¶
func NewGetUploadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetUploadRequestWithBody constructs an http.Request for the GetUpload method, with any body, and a specified content type
func NewHealthRequest ¶
NewHealthRequest constructs an http.Request for the Health method
func NewInspectUploadRequest ¶
func NewInspectUploadRequest(server string, body InspectUploadJSONRequestBody) (*http.Request, error)
NewInspectUploadRequest calls the generic InspectUpload builder with application/json body
func NewInspectUploadRequestWithBody ¶
func NewInspectUploadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewInspectUploadRequestWithBody constructs an http.Request for the InspectUpload method, with any body, and a specified content type
func NewListManifestUploadsRequest ¶
NewListManifestUploadsRequest constructs an http.Request for the ListManifestUploads method
func NewListStorageUploadsRequest ¶
NewListStorageUploadsRequest constructs an http.Request for the ListStorageUploads method
func NewPreviewPurgeRequest ¶
func NewPreviewPurgeRequest(server string, body PreviewPurgeJSONRequestBody) (*http.Request, error)
NewPreviewPurgeRequest calls the generic PreviewPurge builder with application/json body
func NewPreviewPurgeRequestWithBody ¶
func NewPreviewPurgeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPreviewPurgeRequestWithBody constructs an http.Request for the PreviewPurge method, with any body, and a specified content type
func NewSyncManifestRequest ¶
func NewSyncManifestRequest(server string, body SyncManifestJSONRequestBody) (*http.Request, error)
NewSyncManifestRequest calls the generic SyncManifest builder with application/json body
func NewSyncManifestRequestWithBody ¶
func NewSyncManifestRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSyncManifestRequestWithBody constructs an http.Request for the SyncManifest method, with any body, and a specified content type
func NewUploadCollectionRequestWithBody ¶
func NewUploadCollectionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUploadCollectionRequestWithBody constructs an http.Request for the UploadCollection method, with any body, and a specified content type
Types ¶
type Capabilities ¶
type Capabilities struct {
APIVersion CapabilitiesAPIVersion `json:"api_version"`
Limits UploadLimits `json:"limits"`
MarkerVersions []int `json:"marker_versions"`
Operations []string `json:"operations"`
ServerVersion string `json:"server_version"`
UploadFormats []CapabilitiesUploadFormats `json:"upload_formats"`
}
Capabilities defines model for Capabilities.
type CapabilitiesAPIVersion ¶
type CapabilitiesAPIVersion string
CapabilitiesAPIVersion defines model for Capabilities.APIVersion.
const (
V1 CapabilitiesAPIVersion = "v1"
)
Defines values for CapabilitiesAPIVersion.
func (CapabilitiesAPIVersion) Valid ¶
func (e CapabilitiesAPIVersion) Valid() bool
Valid indicates whether the value is a known member of the CapabilitiesAPIVersion enum.
type CapabilitiesUploadFormats ¶
type CapabilitiesUploadFormats string
CapabilitiesUploadFormats defines model for Capabilities.UploadFormats.
const ( CapabilitiesUploadFormatsHTML CapabilitiesUploadFormats = "html" CapabilitiesUploadFormatsMd CapabilitiesUploadFormats = "md" CapabilitiesUploadFormatsTxt CapabilitiesUploadFormats = "txt" )
Defines values for CapabilitiesUploadFormats.
func (CapabilitiesUploadFormats) Valid ¶
func (e CapabilitiesUploadFormats) Valid() bool
Valid indicates whether the value is a known member of the CapabilitiesUploadFormats enum.
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) DeleteUpload ¶
func (c *Client) DeleteUpload(ctx context.Context, body DeleteUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteUpload performs a POST /api/v1/uploads/delete (the `DeleteUpload` operationId) request. Takes a body of the `application/json` content type.
Permanently deletes one marker-managed upload. Payloads are deleted before the ownership marker and the manifest receives a tombstone.
func (*Client) DeleteUploadWithBody ¶
func (c *Client) DeleteUploadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteUploadWithBody performs a POST /api/v1/uploads/delete (the `DeleteUpload` operationId) request, with any type of body and a specified content type.
Permanently deletes one marker-managed upload. Payloads are deleted before the ownership marker and the manifest receives a tombstone.
func (*Client) ExecutePurge ¶
func (c *Client) ExecutePurge(ctx context.Context, body ExecutePurgeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ExecutePurge performs a POST /api/v1/purge (the `ExecutePurge` operationId) request. Takes a body of the `application/json` content type.
Permanently deletes the explicit upload IDs after revalidating every ownership marker. Later targets are attempted after an item failure.
func (*Client) ExecutePurgeWithBody ¶
func (c *Client) ExecutePurgeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExecutePurgeWithBody performs a POST /api/v1/purge (the `ExecutePurge` operationId) request, with any type of body and a specified content type.
Permanently deletes the explicit upload IDs after revalidating every ownership marker. Later targets are attempted after an item failure.
func (*Client) GetCapabilities ¶
func (c *Client) GetCapabilities(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetCapabilities performs a GET /api/v1/capabilities (the `GetCapabilities` operationId) request.
func (*Client) GetOpenAPI ¶
func (c *Client) GetOpenAPI(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetOpenAPI performs a GET /openapi.yaml (the `GetOpenAPI` operationId) request.
func (*Client) GetUpload ¶
func (c *Client) GetUpload(ctx context.Context, body GetUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
GetUpload performs a POST /api/v1/uploads/get (the `GetUpload` operationId) request. Takes a body of the `application/json` content type.
func (*Client) GetUploadWithBody ¶
func (c *Client) GetUploadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetUploadWithBody performs a POST /api/v1/uploads/get (the `GetUpload` operationId) request, with any type of body and a specified content type.
func (*Client) InspectUpload ¶
func (c *Client) InspectUpload(ctx context.Context, body InspectUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
InspectUpload performs a POST /api/v1/uploads/inspect (the `InspectUpload` operationId) request. Takes a body of the `application/json` content type.
func (*Client) InspectUploadWithBody ¶
func (c *Client) InspectUploadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
InspectUploadWithBody performs a POST /api/v1/uploads/inspect (the `InspectUpload` operationId) request, with any type of body and a specified content type.
func (*Client) ListManifestUploads ¶
func (c *Client) ListManifestUploads(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListManifestUploads performs a GET /api/v1/uploads (the `ListManifestUploads` operationId) request.
Reads the server manifest without contacting storage. Results are scoped to the server profile, bucket, and key prefix.
func (*Client) ListStorageUploads ¶
func (c *Client) ListStorageUploads(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListStorageUploads performs a GET /api/v1/storage/uploads (the `ListStorageUploads` operationId) request.
Lists marker candidates from one direct storage snapshot.
func (*Client) PreviewPurge ¶
func (c *Client) PreviewPurge(ctx context.Context, body PreviewPurgeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PreviewPurge performs a POST /api/v1/purge/preview (the `PreviewPurge` operationId) request. Takes a body of the `application/json` content type.
Plans candidates without deleting anything.
func (*Client) PreviewPurgeWithBody ¶
func (c *Client) PreviewPurgeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PreviewPurgeWithBody performs a POST /api/v1/purge/preview (the `PreviewPurge` operationId) request, with any type of body and a specified content type.
Plans candidates without deleting anything.
func (*Client) SyncManifest ¶
func (c *Client) SyncManifest(ctx context.Context, body SyncManifestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
SyncManifest performs a POST /api/v1/sync (the `SyncManifest` operationId) request. Takes a body of the `application/json` content type.
func (*Client) SyncManifestWithBody ¶
func (c *Client) SyncManifestWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SyncManifestWithBody performs a POST /api/v1/sync (the `SyncManifest` operationId) request, with any type of body and a specified content type.
func (*Client) UploadCollectionWithBody ¶
func (c *Client) UploadCollectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UploadCollectionWithBody performs a POST /api/v1/uploads/collections (the `UploadCollection` operationId) request, with any type of body and a specified content type.
func (*Client) UploadDocumentWithBody ¶
func (c *Client) UploadDocumentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UploadDocumentWithBody performs a POST /api/v1/uploads/documents (the `UploadDocument` operationId) request, with any type of body and a specified content type.
type ClientInterface ¶
type ClientInterface interface {
// GetCapabilities performs a GET /api/v1/capabilities (the `GetCapabilities` operationId) request.
GetCapabilities(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExecutePurgeWithBody performs a POST /api/v1/purge (the `ExecutePurge` operationId) request,
// with any type of body and a specified content type.
//
// Permanently deletes the explicit upload IDs after revalidating every
// ownership marker. Later targets are attempted after an item failure.
ExecutePurgeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExecutePurge performs a POST /api/v1/purge (the `ExecutePurge` operationId) request.
// Takes a body of the `application/json` content type.
//
// Permanently deletes the explicit upload IDs after revalidating every
// ownership marker. Later targets are attempted after an item failure.
ExecutePurge(ctx context.Context, body ExecutePurgeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PreviewPurgeWithBody performs a POST /api/v1/purge/preview (the `PreviewPurge` operationId) request,
// with any type of body and a specified content type.
//
// Plans candidates without deleting anything.
PreviewPurgeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PreviewPurge performs a POST /api/v1/purge/preview (the `PreviewPurge` operationId) request.
// Takes a body of the `application/json` content type.
//
// Plans candidates without deleting anything.
PreviewPurge(ctx context.Context, body PreviewPurgeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListStorageUploads performs a GET /api/v1/storage/uploads (the `ListStorageUploads` operationId) request.
//
// Lists marker candidates from one direct storage snapshot.
ListStorageUploads(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// SyncManifestWithBody performs a POST /api/v1/sync (the `SyncManifest` operationId) request,
// with any type of body and a specified content type.
SyncManifestWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// SyncManifest performs a POST /api/v1/sync (the `SyncManifest` operationId) request.
// Takes a body of the `application/json` content type.
SyncManifest(ctx context.Context, body SyncManifestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListManifestUploads performs a GET /api/v1/uploads (the `ListManifestUploads` operationId) request.
//
// Reads the server manifest without contacting storage. Results are
// scoped to the server profile, bucket, and key prefix.
ListManifestUploads(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadCollectionWithBody performs a POST /api/v1/uploads/collections (the `UploadCollection` operationId) request,
// with any type of body and a specified content type.
UploadCollectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteUploadWithBody performs a POST /api/v1/uploads/delete (the `DeleteUpload` operationId) request,
// with any type of body and a specified content type.
//
// Permanently deletes one marker-managed upload. Payloads are deleted
// before the ownership marker and the manifest receives a tombstone.
DeleteUploadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteUpload performs a POST /api/v1/uploads/delete (the `DeleteUpload` operationId) request.
// Takes a body of the `application/json` content type.
//
// Permanently deletes one marker-managed upload. Payloads are deleted
// before the ownership marker and the manifest receives a tombstone.
DeleteUpload(ctx context.Context, body DeleteUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadDocumentWithBody performs a POST /api/v1/uploads/documents (the `UploadDocument` operationId) request,
// with any type of body and a specified content type.
UploadDocumentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUploadWithBody performs a POST /api/v1/uploads/get (the `GetUpload` operationId) request,
// with any type of body and a specified content type.
GetUploadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUpload performs a POST /api/v1/uploads/get (the `GetUpload` operationId) request.
// Takes a body of the `application/json` content type.
GetUpload(ctx context.Context, body GetUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// InspectUploadWithBody performs a POST /api/v1/uploads/inspect (the `InspectUpload` operationId) request,
// with any type of body and a specified content type.
InspectUploadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// InspectUpload performs a POST /api/v1/uploads/inspect (the `InspectUpload` operationId) request.
// Takes a body of the `application/json` content type.
InspectUpload(ctx context.Context, body InspectUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// Health performs a GET /healthz (the `Health` operationId) request.
Health(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOpenAPI performs a GET /openapi.yaml (the `GetOpenAPI` operationId) request.
GetOpenAPI(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) DeleteUploadWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteUploadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteUploadResponse, error)
DeleteUploadWithBodyWithResponse performs a POST /api/v1/uploads/delete (the `DeleteUpload` operationId) request, with any type of body and a specified content type.
Permanently deletes one marker-managed upload. Payloads are deleted before the ownership marker and the manifest receives a tombstone.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) DeleteUploadWithResponse ¶
func (c *ClientWithResponses) DeleteUploadWithResponse(ctx context.Context, body DeleteUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteUploadResponse, error)
DeleteUploadWithResponse performs a POST /api/v1/uploads/delete (the `DeleteUpload` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Permanently deletes one marker-managed upload. Payloads are deleted before the ownership marker and the manifest receives a tombstone.
func (*ClientWithResponses) ExecutePurgeWithBodyWithResponse ¶
func (c *ClientWithResponses) ExecutePurgeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecutePurgeResponse, error)
ExecutePurgeWithBodyWithResponse performs a POST /api/v1/purge (the `ExecutePurge` operationId) request, with any type of body and a specified content type.
Permanently deletes the explicit upload IDs after revalidating every ownership marker. Later targets are attempted after an item failure.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ExecutePurgeWithResponse ¶
func (c *ClientWithResponses) ExecutePurgeWithResponse(ctx context.Context, body ExecutePurgeJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecutePurgeResponse, error)
ExecutePurgeWithResponse performs a POST /api/v1/purge (the `ExecutePurge` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Permanently deletes the explicit upload IDs after revalidating every ownership marker. Later targets are attempted after an item failure.
func (*ClientWithResponses) GetCapabilitiesWithResponse ¶
func (c *ClientWithResponses) GetCapabilitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCapabilitiesResponse, error)
GetCapabilitiesWithResponse performs a GET /api/v1/capabilities (the `GetCapabilities` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) GetOpenAPIWithResponse ¶
func (c *ClientWithResponses) GetOpenAPIWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIResponse, error)
GetOpenAPIWithResponse performs a GET /openapi.yaml (the `GetOpenAPI` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) GetUploadWithBodyWithResponse ¶
func (c *ClientWithResponses) GetUploadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUploadResponse, error)
GetUploadWithBodyWithResponse performs a POST /api/v1/uploads/get (the `GetUpload` operationId) request, with any type of body and a specified content type.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) GetUploadWithResponse ¶
func (c *ClientWithResponses) GetUploadWithResponse(ctx context.Context, body GetUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUploadResponse, error)
GetUploadWithResponse performs a POST /api/v1/uploads/get (the `GetUpload` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) HealthWithResponse ¶
func (c *ClientWithResponses) HealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthResponse, error)
HealthWithResponse performs a GET /healthz (the `Health` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) InspectUploadWithBodyWithResponse ¶
func (c *ClientWithResponses) InspectUploadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InspectUploadResponse, error)
InspectUploadWithBodyWithResponse performs a POST /api/v1/uploads/inspect (the `InspectUpload` operationId) request, with any type of body and a specified content type.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) InspectUploadWithResponse ¶
func (c *ClientWithResponses) InspectUploadWithResponse(ctx context.Context, body InspectUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*InspectUploadResponse, error)
InspectUploadWithResponse performs a POST /api/v1/uploads/inspect (the `InspectUpload` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListManifestUploadsWithResponse ¶
func (c *ClientWithResponses) ListManifestUploadsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListManifestUploadsResponse, error)
ListManifestUploadsWithResponse performs a GET /api/v1/uploads (the `ListManifestUploads` operationId) request.
Reads the server manifest without contacting storage. Results are scoped to the server profile, bucket, and key prefix.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListStorageUploadsWithResponse ¶
func (c *ClientWithResponses) ListStorageUploadsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListStorageUploadsResponse, error)
ListStorageUploadsWithResponse performs a GET /api/v1/storage/uploads (the `ListStorageUploads` operationId) request.
Lists marker candidates from one direct storage snapshot.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) PreviewPurgeWithBodyWithResponse ¶
func (c *ClientWithResponses) PreviewPurgeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewPurgeResponse, error)
PreviewPurgeWithBodyWithResponse performs a POST /api/v1/purge/preview (the `PreviewPurge` operationId) request, with any type of body and a specified content type.
Plans candidates without deleting anything.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) PreviewPurgeWithResponse ¶
func (c *ClientWithResponses) PreviewPurgeWithResponse(ctx context.Context, body PreviewPurgeJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewPurgeResponse, error)
PreviewPurgeWithResponse performs a POST /api/v1/purge/preview (the `PreviewPurge` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Plans candidates without deleting anything.
func (*ClientWithResponses) SyncManifestWithBodyWithResponse ¶
func (c *ClientWithResponses) SyncManifestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncManifestResponse, error)
SyncManifestWithBodyWithResponse performs a POST /api/v1/sync (the `SyncManifest` operationId) request, with any type of body and a specified content type.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) SyncManifestWithResponse ¶
func (c *ClientWithResponses) SyncManifestWithResponse(ctx context.Context, body SyncManifestJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncManifestResponse, error)
SyncManifestWithResponse performs a POST /api/v1/sync (the `SyncManifest` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) UploadCollectionWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadCollectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadCollectionResponse, error)
UploadCollectionWithBodyWithResponse performs a POST /api/v1/uploads/collections (the `UploadCollection` operationId) request, with any type of body and a specified content type.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) UploadDocumentWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadDocumentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadDocumentResponse, error)
UploadDocumentWithBodyWithResponse performs a POST /api/v1/uploads/documents (the `UploadDocument` operationId) request, with any type of body and a specified content type.
Returns a wrapper object for the known response body format(s).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetCapabilitiesWithResponse performs a GET /api/v1/capabilities (the `GetCapabilities` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
GetCapabilitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCapabilitiesResponse, error)
// ExecutePurgeWithBodyWithResponse performs a POST /api/v1/purge (the `ExecutePurge` operationId) request,
// with any type of body and a specified content type.
//
// Permanently deletes the explicit upload IDs after revalidating every
// ownership marker. Later targets are attempted after an item failure.
//
// Returns a wrapper object for the known response body format(s).
ExecutePurgeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecutePurgeResponse, error)
// ExecutePurgeWithResponse performs a POST /api/v1/purge (the `ExecutePurge` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Permanently deletes the explicit upload IDs after revalidating every
// ownership marker. Later targets are attempted after an item failure.
ExecutePurgeWithResponse(ctx context.Context, body ExecutePurgeJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecutePurgeResponse, error)
// PreviewPurgeWithBodyWithResponse performs a POST /api/v1/purge/preview (the `PreviewPurge` operationId) request,
// with any type of body and a specified content type.
//
// Plans candidates without deleting anything.
//
// Returns a wrapper object for the known response body format(s).
PreviewPurgeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewPurgeResponse, error)
// PreviewPurgeWithResponse performs a POST /api/v1/purge/preview (the `PreviewPurge` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Plans candidates without deleting anything.
PreviewPurgeWithResponse(ctx context.Context, body PreviewPurgeJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewPurgeResponse, error)
// ListStorageUploadsWithResponse performs a GET /api/v1/storage/uploads (the `ListStorageUploads` operationId) request.
//
// Lists marker candidates from one direct storage snapshot.
//
// Returns a wrapper object for the known response body format(s).
ListStorageUploadsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListStorageUploadsResponse, error)
// SyncManifestWithBodyWithResponse performs a POST /api/v1/sync (the `SyncManifest` operationId) request,
// with any type of body and a specified content type.
//
// Returns a wrapper object for the known response body format(s).
SyncManifestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncManifestResponse, error)
// SyncManifestWithResponse performs a POST /api/v1/sync (the `SyncManifest` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
SyncManifestWithResponse(ctx context.Context, body SyncManifestJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncManifestResponse, error)
// ListManifestUploadsWithResponse performs a GET /api/v1/uploads (the `ListManifestUploads` operationId) request.
//
// Reads the server manifest without contacting storage. Results are
// scoped to the server profile, bucket, and key prefix.
//
// Returns a wrapper object for the known response body format(s).
ListManifestUploadsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListManifestUploadsResponse, error)
// UploadCollectionWithBodyWithResponse performs a POST /api/v1/uploads/collections (the `UploadCollection` operationId) request,
// with any type of body and a specified content type.
//
// Returns a wrapper object for the known response body format(s).
UploadCollectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadCollectionResponse, error)
// DeleteUploadWithBodyWithResponse performs a POST /api/v1/uploads/delete (the `DeleteUpload` operationId) request,
// with any type of body and a specified content type.
//
// Permanently deletes one marker-managed upload. Payloads are deleted
// before the ownership marker and the manifest receives a tombstone.
//
// Returns a wrapper object for the known response body format(s).
DeleteUploadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteUploadResponse, error)
// DeleteUploadWithResponse performs a POST /api/v1/uploads/delete (the `DeleteUpload` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Permanently deletes one marker-managed upload. Payloads are deleted
// before the ownership marker and the manifest receives a tombstone.
DeleteUploadWithResponse(ctx context.Context, body DeleteUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteUploadResponse, error)
// UploadDocumentWithBodyWithResponse performs a POST /api/v1/uploads/documents (the `UploadDocument` operationId) request,
// with any type of body and a specified content type.
//
// Returns a wrapper object for the known response body format(s).
UploadDocumentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadDocumentResponse, error)
// GetUploadWithBodyWithResponse performs a POST /api/v1/uploads/get (the `GetUpload` operationId) request,
// with any type of body and a specified content type.
//
// Returns a wrapper object for the known response body format(s).
GetUploadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUploadResponse, error)
// GetUploadWithResponse performs a POST /api/v1/uploads/get (the `GetUpload` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
GetUploadWithResponse(ctx context.Context, body GetUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUploadResponse, error)
// InspectUploadWithBodyWithResponse performs a POST /api/v1/uploads/inspect (the `InspectUpload` operationId) request,
// with any type of body and a specified content type.
//
// Returns a wrapper object for the known response body format(s).
InspectUploadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InspectUploadResponse, error)
// InspectUploadWithResponse performs a POST /api/v1/uploads/inspect (the `InspectUpload` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
InspectUploadWithResponse(ctx context.Context, body InspectUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*InspectUploadResponse, error)
// HealthWithResponse performs a GET /healthz (the `Health` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
HealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthResponse, error)
// GetOpenAPIWithResponse performs a GET /openapi.yaml (the `GetOpenAPI` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
GetOpenAPIWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CollectionMetadata ¶
type CollectionMetadata struct {
MaxSize int64 `json:"max_size,omitempty"`
MaxTotalSize int64 `json:"max_total_size,omitempty"`
RepositoryURL string `json:"repository_url,omitempty"`
Title string `json:"title,omitempty"`
}
CollectionMetadata defines model for CollectionMetadata.
type DeleteResult ¶
type DeleteResult struct {
ID string `json:"id"`
Keys []string `json:"keys"`
Kind DeleteResultKind `json:"kind"`
MarkerKey string `json:"marker_key"`
PageKey string `json:"page_key"`
Warnings []string `json:"warnings"`
}
DeleteResult defines model for DeleteResult.
type DeleteResultKind ¶
type DeleteResultKind string
DeleteResultKind defines model for DeleteResult.Kind.
const ( DeleteResultKindCollection DeleteResultKind = "collection" DeleteResultKindDocument DeleteResultKind = "document" )
Defines values for DeleteResultKind.
func (DeleteResultKind) Valid ¶
func (e DeleteResultKind) Valid() bool
Valid indicates whether the value is a known member of the DeleteResultKind enum.
type DeleteUpload200JSONResponse ¶
type DeleteUpload200JSONResponse DeleteResult
func (DeleteUpload200JSONResponse) VisitDeleteUploadResponse ¶
func (response DeleteUpload200JSONResponse) VisitDeleteUploadResponse(w http.ResponseWriter) error
type DeleteUploadJSONRequestBody ¶
type DeleteUploadJSONRequestBody = TargetRequest
DeleteUploadJSONRequestBody defines body for DeleteUpload for application/json ContentType.
type DeleteUploadRequestObject ¶
type DeleteUploadRequestObject struct {
Body *DeleteUploadJSONRequestBody
}
type DeleteUploadResponse ¶
type DeleteUploadResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DeleteResult
// ApplicationProblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationProblemJSONDefault *Problem
}
func ParseDeleteUploadResponse ¶
func ParseDeleteUploadResponse(rsp *http.Response) (*DeleteUploadResponse, error)
ParseDeleteUploadResponse parses an HTTP response from a DeleteUploadWithResponse call
func (DeleteUploadResponse) ContentType ¶
func (r DeleteUploadResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteUploadResponse) GetApplicationProblemJSONDefault ¶
func (r DeleteUploadResponse) GetApplicationProblemJSONDefault() *Problem
GetApplicationProblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (DeleteUploadResponse) GetBody ¶
func (r DeleteUploadResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteUploadResponse) GetJSON200 ¶
func (r DeleteUploadResponse) GetJSON200() *DeleteResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DeleteUploadResponse) Status ¶
func (r DeleteUploadResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteUploadResponse) StatusCode ¶
func (r DeleteUploadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteUploadResponseObject ¶
type DeleteUploadResponseObject interface {
VisitDeleteUploadResponse(w http.ResponseWriter) error
}
type DeleteUploaddefaultApplicationProblemPlusJSONResponse ¶
func (DeleteUploaddefaultApplicationProblemPlusJSONResponse) VisitDeleteUploadResponse ¶
func (response DeleteUploaddefaultApplicationProblemPlusJSONResponse) VisitDeleteUploadResponse(w http.ResponseWriter) error
type DocumentMetadata ¶
type DocumentMetadata struct {
Format DocumentMetadataFormat `json:"format,omitempty"`
Lang string `json:"lang,omitempty"`
MaxSize int64 `json:"max_size,omitempty"`
Name string `json:"name,omitempty"`
RepositoryURL string `json:"repository_url,omitempty"`
Slug string `json:"slug,omitempty"`
Title string `json:"title,omitempty"`
}
DocumentMetadata defines model for DocumentMetadata.
type DocumentMetadataFormat ¶
type DocumentMetadataFormat string
DocumentMetadataFormat defines model for DocumentMetadata.Format.
const ( DocumentMetadataFormatHTML DocumentMetadataFormat = "html" DocumentMetadataFormatMd DocumentMetadataFormat = "md" DocumentMetadataFormatTxt DocumentMetadataFormat = "txt" )
Defines values for DocumentMetadataFormat.
func (DocumentMetadataFormat) Valid ¶
func (e DocumentMetadataFormat) Valid() bool
Valid indicates whether the value is a known member of the DocumentMetadataFormat enum.
type ExecutePurge200JSONResponse ¶
type ExecutePurge200JSONResponse PurgeResult
func (ExecutePurge200JSONResponse) VisitExecutePurgeResponse ¶
func (response ExecutePurge200JSONResponse) VisitExecutePurgeResponse(w http.ResponseWriter) error
type ExecutePurgeJSONRequestBody ¶
type ExecutePurgeJSONRequestBody = PurgeRequest
ExecutePurgeJSONRequestBody defines body for ExecutePurge for application/json ContentType.
type ExecutePurgeRequestObject ¶
type ExecutePurgeRequestObject struct {
Body *ExecutePurgeJSONRequestBody
}
type ExecutePurgeResponse ¶
type ExecutePurgeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PurgeResult
// ApplicationProblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationProblemJSONDefault *Problem
}
func ParseExecutePurgeResponse ¶
func ParseExecutePurgeResponse(rsp *http.Response) (*ExecutePurgeResponse, error)
ParseExecutePurgeResponse parses an HTTP response from a ExecutePurgeWithResponse call
func (ExecutePurgeResponse) ContentType ¶
func (r ExecutePurgeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ExecutePurgeResponse) GetApplicationProblemJSONDefault ¶
func (r ExecutePurgeResponse) GetApplicationProblemJSONDefault() *Problem
GetApplicationProblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (ExecutePurgeResponse) GetBody ¶
func (r ExecutePurgeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ExecutePurgeResponse) GetJSON200 ¶
func (r ExecutePurgeResponse) GetJSON200() *PurgeResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ExecutePurgeResponse) Status ¶
func (r ExecutePurgeResponse) Status() string
Status returns HTTPResponse.Status
func (ExecutePurgeResponse) StatusCode ¶
func (r ExecutePurgeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExecutePurgeResponseObject ¶
type ExecutePurgeResponseObject interface {
VisitExecutePurgeResponse(w http.ResponseWriter) error
}
type ExecutePurgedefaultApplicationProblemPlusJSONResponse ¶
func (ExecutePurgedefaultApplicationProblemPlusJSONResponse) VisitExecutePurgeResponse ¶
func (response ExecutePurgedefaultApplicationProblemPlusJSONResponse) VisitExecutePurgeResponse(w http.ResponseWriter) error
type FileResult ¶
type FileResult struct {
Bytes int64 `json:"bytes"`
ContentType string `json:"content_type"`
Key string `json:"key"`
Name string `json:"name"`
URL string `json:"url"`
}
FileResult defines model for FileResult.
type GetCapabilities200JSONResponse ¶
type GetCapabilities200JSONResponse Capabilities
func (GetCapabilities200JSONResponse) VisitGetCapabilitiesResponse ¶
func (response GetCapabilities200JSONResponse) VisitGetCapabilitiesResponse(w http.ResponseWriter) error
type GetCapabilitiesRequestObject ¶
type GetCapabilitiesRequestObject struct {
}
type GetCapabilitiesResponse ¶
type GetCapabilitiesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Capabilities
// ApplicationProblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationProblemJSONDefault *Problem
}
func ParseGetCapabilitiesResponse ¶
func ParseGetCapabilitiesResponse(rsp *http.Response) (*GetCapabilitiesResponse, error)
ParseGetCapabilitiesResponse parses an HTTP response from a GetCapabilitiesWithResponse call
func (GetCapabilitiesResponse) ContentType ¶
func (r GetCapabilitiesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetCapabilitiesResponse) GetApplicationProblemJSONDefault ¶
func (r GetCapabilitiesResponse) GetApplicationProblemJSONDefault() *Problem
GetApplicationProblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (GetCapabilitiesResponse) GetBody ¶
func (r GetCapabilitiesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetCapabilitiesResponse) GetJSON200 ¶
func (r GetCapabilitiesResponse) GetJSON200() *Capabilities
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetCapabilitiesResponse) Status ¶
func (r GetCapabilitiesResponse) Status() string
Status returns HTTPResponse.Status
func (GetCapabilitiesResponse) StatusCode ¶
func (r GetCapabilitiesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCapabilitiesResponseObject ¶
type GetCapabilitiesResponseObject interface {
VisitGetCapabilitiesResponse(w http.ResponseWriter) error
}
type GetCapabilitiesdefaultApplicationProblemPlusJSONResponse ¶
type GetCapabilitiesdefaultApplicationProblemPlusJSONResponse struct {
Body Problem
StatusCode int
}
func (GetCapabilitiesdefaultApplicationProblemPlusJSONResponse) VisitGetCapabilitiesResponse ¶
func (response GetCapabilitiesdefaultApplicationProblemPlusJSONResponse) VisitGetCapabilitiesResponse(w http.ResponseWriter) error
type GetOpenAPI200ApplicationYamlResponse ¶
func (GetOpenAPI200ApplicationYamlResponse) VisitGetOpenAPIResponse ¶
func (response GetOpenAPI200ApplicationYamlResponse) VisitGetOpenAPIResponse(w http.ResponseWriter) error
type GetOpenAPIRequestObject ¶
type GetOpenAPIRequestObject struct {
}
type GetOpenAPIResponse ¶
type GetOpenAPIResponse struct {
Body []byte
HTTPResponse *http.Response
// YAML200 the response for an HTTP 200 `application/yaml` response
YAML200 *string
// ApplicationProblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationProblemJSONDefault *Problem
}
func ParseGetOpenAPIResponse ¶
func ParseGetOpenAPIResponse(rsp *http.Response) (*GetOpenAPIResponse, error)
ParseGetOpenAPIResponse parses an HTTP response from a GetOpenAPIWithResponse call
func (GetOpenAPIResponse) ContentType ¶
func (r GetOpenAPIResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOpenAPIResponse) GetApplicationProblemJSONDefault ¶
func (r GetOpenAPIResponse) GetApplicationProblemJSONDefault() *Problem
GetApplicationProblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (GetOpenAPIResponse) GetBody ¶
func (r GetOpenAPIResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetOpenAPIResponse) GetYAML200 ¶
func (r GetOpenAPIResponse) GetYAML200() *string
GetYAML200 returns the response for an HTTP 200 `application/yaml` response
func (GetOpenAPIResponse) Status ¶
func (r GetOpenAPIResponse) Status() string
Status returns HTTPResponse.Status
func (GetOpenAPIResponse) StatusCode ¶
func (r GetOpenAPIResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOpenAPIResponseObject ¶
type GetOpenAPIResponseObject interface {
VisitGetOpenAPIResponse(w http.ResponseWriter) error
}
type GetOpenAPIdefaultApplicationProblemPlusJSONResponse ¶
func (GetOpenAPIdefaultApplicationProblemPlusJSONResponse) VisitGetOpenAPIResponse ¶
func (response GetOpenAPIdefaultApplicationProblemPlusJSONResponse) VisitGetOpenAPIResponse(w http.ResponseWriter) error
type GetUpload200ApplicationOctetStreamResponse ¶
type GetUpload200ApplicationOctetStreamResponse struct {
Body io.Reader
Headers GetUpload200ResponseHeaders
ContentLength int64
}
func (GetUpload200ApplicationOctetStreamResponse) VisitGetUploadResponse ¶
func (response GetUpload200ApplicationOctetStreamResponse) VisitGetUploadResponse(w http.ResponseWriter) error
type GetUploadJSONRequestBody ¶
type GetUploadJSONRequestBody = GetUploadRequest
GetUploadJSONRequestBody defines body for GetUpload for application/json ContentType.
type GetUploadRequest ¶
type GetUploadRequest struct {
Source bool `json:"source,omitempty"`
URLOrKey string `json:"url_or_key"`
}
GetUploadRequest defines model for GetUploadRequest.
type GetUploadRequestObject ¶
type GetUploadRequestObject struct {
Body *GetUploadJSONRequestBody
}
type GetUploadResponse ¶
type GetUploadResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationProblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationProblemJSONDefault *Problem
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetUploadResponse200Headers
}
func ParseGetUploadResponse ¶
func ParseGetUploadResponse(rsp *http.Response) (*GetUploadResponse, error)
ParseGetUploadResponse parses an HTTP response from a GetUploadWithResponse call
func (GetUploadResponse) ContentType ¶
func (r GetUploadResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetUploadResponse) GetApplicationProblemJSONDefault ¶
func (r GetUploadResponse) GetApplicationProblemJSONDefault() *Problem
GetApplicationProblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (GetUploadResponse) GetBody ¶
func (r GetUploadResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetUploadResponse) Status ¶
func (r GetUploadResponse) Status() string
Status returns HTTPResponse.Status
func (GetUploadResponse) StatusCode ¶
func (r GetUploadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUploadResponse200Headers ¶
type GetUploadResponse200Headers struct {
ContentDisposition string
ContentType string
XAirplanObjectKey string
}
GetUploadResponse200Headers the declared response headers of an HTTP 200 response for GetUpload
type GetUploadResponseObject ¶
type GetUploadResponseObject interface {
VisitGetUploadResponse(w http.ResponseWriter) error
}
type GetUploaddefaultApplicationProblemPlusJSONResponse ¶
func (GetUploaddefaultApplicationProblemPlusJSONResponse) VisitGetUploadResponse ¶
func (response GetUploaddefaultApplicationProblemPlusJSONResponse) VisitGetUploadResponse(w http.ResponseWriter) error
type Health ¶
type Health struct {
Status HealthStatus `json:"status"`
}
Health defines model for Health.
type Health200JSONResponse ¶
type Health200JSONResponse Health
func (Health200JSONResponse) VisitHealthResponse ¶
func (response Health200JSONResponse) VisitHealthResponse(w http.ResponseWriter) error
type HealthRequestObject ¶
type HealthRequestObject struct {
}
type HealthResponse ¶
type HealthResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Health
// ApplicationProblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationProblemJSONDefault *Problem
}
func ParseHealthResponse ¶
func ParseHealthResponse(rsp *http.Response) (*HealthResponse, error)
ParseHealthResponse parses an HTTP response from a HealthWithResponse call
func (HealthResponse) ContentType ¶
func (r HealthResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (HealthResponse) GetApplicationProblemJSONDefault ¶
func (r HealthResponse) GetApplicationProblemJSONDefault() *Problem
GetApplicationProblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (HealthResponse) GetBody ¶
func (r HealthResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (HealthResponse) GetJSON200 ¶
func (r HealthResponse) GetJSON200() *Health
GetJSON200 returns the response for an HTTP 200 `application/json` response
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 HealthResponseObject ¶
type HealthResponseObject interface {
VisitHealthResponse(w http.ResponseWriter) error
}
type HealthStatus ¶
type HealthStatus string
HealthStatus defines model for Health.Status.
const (
Ok HealthStatus = "ok"
)
Defines values for HealthStatus.
func (HealthStatus) Valid ¶
func (e HealthStatus) Valid() bool
Valid indicates whether the value is a known member of the HealthStatus enum.
type HealthdefaultApplicationProblemPlusJSONResponse ¶
func (HealthdefaultApplicationProblemPlusJSONResponse) VisitHealthResponse ¶
func (response HealthdefaultApplicationProblemPlusJSONResponse) VisitHealthResponse(w http.ResponseWriter) error
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InspectUpload200JSONResponse ¶
type InspectUpload200JSONResponse UploadInspection
func (InspectUpload200JSONResponse) VisitInspectUploadResponse ¶
func (response InspectUpload200JSONResponse) VisitInspectUploadResponse(w http.ResponseWriter) error
type InspectUploadJSONRequestBody ¶
type InspectUploadJSONRequestBody = TargetRequest
InspectUploadJSONRequestBody defines body for InspectUpload for application/json ContentType.
type InspectUploadRequestObject ¶
type InspectUploadRequestObject struct {
Body *InspectUploadJSONRequestBody
}
type InspectUploadResponse ¶
type InspectUploadResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *UploadInspection
// ApplicationProblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationProblemJSONDefault *Problem
}
func ParseInspectUploadResponse ¶
func ParseInspectUploadResponse(rsp *http.Response) (*InspectUploadResponse, error)
ParseInspectUploadResponse parses an HTTP response from a InspectUploadWithResponse call
func (InspectUploadResponse) ContentType ¶
func (r InspectUploadResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (InspectUploadResponse) GetApplicationProblemJSONDefault ¶
func (r InspectUploadResponse) GetApplicationProblemJSONDefault() *Problem
GetApplicationProblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (InspectUploadResponse) GetBody ¶
func (r InspectUploadResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (InspectUploadResponse) GetJSON200 ¶
func (r InspectUploadResponse) GetJSON200() *UploadInspection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (InspectUploadResponse) Status ¶
func (r InspectUploadResponse) Status() string
Status returns HTTPResponse.Status
func (InspectUploadResponse) StatusCode ¶
func (r InspectUploadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type InspectUploadResponseObject ¶
type InspectUploadResponseObject interface {
VisitInspectUploadResponse(w http.ResponseWriter) error
}
type InspectUploaddefaultApplicationProblemPlusJSONResponse ¶
func (InspectUploaddefaultApplicationProblemPlusJSONResponse) VisitInspectUploadResponse ¶
func (response InspectUploaddefaultApplicationProblemPlusJSONResponse) VisitInspectUploadResponse(w http.ResponseWriter) error
type InspectedObject ¶
type InspectedObject struct {
Bytes int64 `json:"bytes"`
Exists bool `json:"exists"`
ExpectedBytes int64 `json:"expected_bytes"`
ExpectedKnown bool `json:"expected_known"`
Key string `json:"key"`
URL string `json:"url,omitempty"`
}
InspectedObject defines model for InspectedObject.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type ListManifestUploads200JSONResponse ¶
type ListManifestUploads200JSONResponse ManifestList
func (ListManifestUploads200JSONResponse) VisitListManifestUploadsResponse ¶
func (response ListManifestUploads200JSONResponse) VisitListManifestUploadsResponse(w http.ResponseWriter) error
type ListManifestUploadsRequestObject ¶
type ListManifestUploadsRequestObject struct {
}
type ListManifestUploadsResponse ¶
type ListManifestUploadsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ManifestList
// ApplicationProblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationProblemJSONDefault *Problem
}
func ParseListManifestUploadsResponse ¶
func ParseListManifestUploadsResponse(rsp *http.Response) (*ListManifestUploadsResponse, error)
ParseListManifestUploadsResponse parses an HTTP response from a ListManifestUploadsWithResponse call
func (ListManifestUploadsResponse) ContentType ¶
func (r ListManifestUploadsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListManifestUploadsResponse) GetApplicationProblemJSONDefault ¶
func (r ListManifestUploadsResponse) GetApplicationProblemJSONDefault() *Problem
GetApplicationProblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (ListManifestUploadsResponse) GetBody ¶
func (r ListManifestUploadsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListManifestUploadsResponse) GetJSON200 ¶
func (r ListManifestUploadsResponse) GetJSON200() *ManifestList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListManifestUploadsResponse) Status ¶
func (r ListManifestUploadsResponse) Status() string
Status returns HTTPResponse.Status
func (ListManifestUploadsResponse) StatusCode ¶
func (r ListManifestUploadsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListManifestUploadsResponseObject ¶
type ListManifestUploadsResponseObject interface {
VisitListManifestUploadsResponse(w http.ResponseWriter) error
}
type ListManifestUploadsdefaultApplicationProblemPlusJSONResponse ¶
type ListManifestUploadsdefaultApplicationProblemPlusJSONResponse struct {
Body Problem
StatusCode int
}
func (ListManifestUploadsdefaultApplicationProblemPlusJSONResponse) VisitListManifestUploadsResponse ¶
func (response ListManifestUploadsdefaultApplicationProblemPlusJSONResponse) VisitListManifestUploadsResponse(w http.ResponseWriter) error
type ListStorageUploads200JSONResponse ¶
type ListStorageUploads200JSONResponse StorageList
func (ListStorageUploads200JSONResponse) VisitListStorageUploadsResponse ¶
func (response ListStorageUploads200JSONResponse) VisitListStorageUploadsResponse(w http.ResponseWriter) error
type ListStorageUploadsRequestObject ¶
type ListStorageUploadsRequestObject struct {
}
type ListStorageUploadsResponse ¶
type ListStorageUploadsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *StorageList
// ApplicationProblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationProblemJSONDefault *Problem
}
func ParseListStorageUploadsResponse ¶
func ParseListStorageUploadsResponse(rsp *http.Response) (*ListStorageUploadsResponse, error)
ParseListStorageUploadsResponse parses an HTTP response from a ListStorageUploadsWithResponse call
func (ListStorageUploadsResponse) ContentType ¶
func (r ListStorageUploadsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListStorageUploadsResponse) GetApplicationProblemJSONDefault ¶
func (r ListStorageUploadsResponse) GetApplicationProblemJSONDefault() *Problem
GetApplicationProblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (ListStorageUploadsResponse) GetBody ¶
func (r ListStorageUploadsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListStorageUploadsResponse) GetJSON200 ¶
func (r ListStorageUploadsResponse) GetJSON200() *StorageList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListStorageUploadsResponse) Status ¶
func (r ListStorageUploadsResponse) Status() string
Status returns HTTPResponse.Status
func (ListStorageUploadsResponse) StatusCode ¶
func (r ListStorageUploadsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListStorageUploadsResponseObject ¶
type ListStorageUploadsResponseObject interface {
VisitListStorageUploadsResponse(w http.ResponseWriter) error
}
type ListStorageUploadsdefaultApplicationProblemPlusJSONResponse ¶
type ListStorageUploadsdefaultApplicationProblemPlusJSONResponse struct {
Body Problem
StatusCode int
}
func (ListStorageUploadsdefaultApplicationProblemPlusJSONResponse) VisitListStorageUploadsResponse ¶
func (response ListStorageUploadsdefaultApplicationProblemPlusJSONResponse) VisitListStorageUploadsResponse(w http.ResponseWriter) error
type ManifestList ¶
type ManifestList struct {
Records []ManifestRecord `json:"records"`
Warnings []string `json:"warnings"`
}
ManifestList defines model for ManifestList.
type ManifestRecord ¶
type ManifestRecord struct {
Bucket string `json:"bucket,omitempty"`
Bytes int64 `json:"bytes,omitempty"`
Format string `json:"format,omitempty"`
Key string `json:"key"`
Kind ManifestRecordKind `json:"kind,omitempty"`
MarkerKey string `json:"marker_key,omitempty"`
MarkerVersion int `json:"marker_version,omitempty"`
Reason string `json:"reason,omitempty"`
RepositoryURL string `json:"repository_url,omitempty"`
Slug string `json:"slug,omitempty"`
SourceKey string `json:"source_key,omitempty"`
Time time.Time `json:"time"`
Title string `json:"title,omitempty"`
Type ManifestRecordType `json:"type"`
URL string `json:"url,omitempty"`
}
ManifestRecord defines model for ManifestRecord.
type ManifestRecordKind ¶
type ManifestRecordKind string
ManifestRecordKind defines model for ManifestRecord.Kind.
const ( ManifestRecordKindCollection ManifestRecordKind = "collection" ManifestRecordKindDocument ManifestRecordKind = "document" )
Defines values for ManifestRecordKind.
func (ManifestRecordKind) Valid ¶
func (e ManifestRecordKind) Valid() bool
Valid indicates whether the value is a known member of the ManifestRecordKind enum.
type ManifestRecordType ¶
type ManifestRecordType string
ManifestRecordType defines model for ManifestRecord.Type.
const ( Delete ManifestRecordType = "delete" Upload ManifestRecordType = "upload" )
Defines values for ManifestRecordType.
func (ManifestRecordType) Valid ¶
func (e ManifestRecordType) Valid() bool
Valid indicates whether the value is a known member of the ManifestRecordType enum.
type PreviewPurge200JSONResponse ¶
type PreviewPurge200JSONResponse PurgePreview
func (PreviewPurge200JSONResponse) VisitPreviewPurgeResponse ¶
func (response PreviewPurge200JSONResponse) VisitPreviewPurgeResponse(w http.ResponseWriter) error
type PreviewPurgeJSONRequestBody ¶
type PreviewPurgeJSONRequestBody = PurgePreviewRequest
PreviewPurgeJSONRequestBody defines body for PreviewPurge for application/json ContentType.
type PreviewPurgeRequestObject ¶
type PreviewPurgeRequestObject struct {
Body *PreviewPurgeJSONRequestBody
}
type PreviewPurgeResponse ¶
type PreviewPurgeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PurgePreview
// ApplicationProblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationProblemJSONDefault *Problem
}
func ParsePreviewPurgeResponse ¶
func ParsePreviewPurgeResponse(rsp *http.Response) (*PreviewPurgeResponse, error)
ParsePreviewPurgeResponse parses an HTTP response from a PreviewPurgeWithResponse call
func (PreviewPurgeResponse) ContentType ¶
func (r PreviewPurgeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PreviewPurgeResponse) GetApplicationProblemJSONDefault ¶
func (r PreviewPurgeResponse) GetApplicationProblemJSONDefault() *Problem
GetApplicationProblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (PreviewPurgeResponse) GetBody ¶
func (r PreviewPurgeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PreviewPurgeResponse) GetJSON200 ¶
func (r PreviewPurgeResponse) GetJSON200() *PurgePreview
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PreviewPurgeResponse) Status ¶
func (r PreviewPurgeResponse) Status() string
Status returns HTTPResponse.Status
func (PreviewPurgeResponse) StatusCode ¶
func (r PreviewPurgeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PreviewPurgeResponseObject ¶
type PreviewPurgeResponseObject interface {
VisitPreviewPurgeResponse(w http.ResponseWriter) error
}
type PreviewPurgedefaultApplicationProblemPlusJSONResponse ¶
func (PreviewPurgedefaultApplicationProblemPlusJSONResponse) VisitPreviewPurgeResponse ¶
func (response PreviewPurgedefaultApplicationProblemPlusJSONResponse) VisitPreviewPurgeResponse(w http.ResponseWriter) error
type Problem ¶
type Problem struct {
Code string `json:"code"`
Detail string `json:"detail,omitempty"`
Instance string `json:"instance,omitempty"`
RequestID string `json:"request_id"`
Status int `json:"status"`
Title string `json:"title"`
Type string `json:"type"`
}
Problem defines model for Problem.
type ProblemApplicationProblemPlusJSONResponse ¶
type ProblemApplicationProblemPlusJSONResponse Problem
type PurgeCandidate ¶
type PurgeCandidate struct {
Inspection *UploadInspection `json:"inspection,omitempty"`
Record ManifestRecord `json:"record"`
UploadID string `json:"upload_id"`
Warnings []string `json:"warnings"`
}
PurgeCandidate defines model for PurgeCandidate.
type PurgeItemResult ¶
type PurgeItemResult struct {
Deleted *DeleteResult `json:"deleted,omitempty"`
Error string `json:"error,omitempty"`
UploadID string `json:"upload_id"`
}
PurgeItemResult defines model for PurgeItemResult.
type PurgePreview ¶
type PurgePreview struct {
Candidates []PurgeCandidate `json:"candidates"`
Invalid int `json:"invalid"`
Warnings []string `json:"warnings"`
}
PurgePreview defines model for PurgePreview.
type PurgePreviewRequest ¶
type PurgePreviewRequest struct {
All bool `json:"all,omitempty"`
Concurrency int `json:"concurrency,omitempty"`
CreatedBefore *time.Time `json:"created_before,omitempty"`
Slug string `json:"slug,omitempty"`
Source PurgePreviewRequestSource `json:"source"`
}
PurgePreviewRequest defines model for PurgePreviewRequest.
type PurgePreviewRequestSource ¶
type PurgePreviewRequestSource string
PurgePreviewRequestSource defines model for PurgePreviewRequest.Source.
const ( Manifest PurgePreviewRequestSource = "manifest" Storage PurgePreviewRequestSource = "storage" )
Defines values for PurgePreviewRequestSource.
func (PurgePreviewRequestSource) Valid ¶
func (e PurgePreviewRequestSource) Valid() bool
Valid indicates whether the value is a known member of the PurgePreviewRequestSource enum.
type PurgeRequest ¶
type PurgeRequest struct {
UploadIds []string `json:"upload_ids"`
}
PurgeRequest defines model for PurgeRequest.
type PurgeResult ¶
type PurgeResult struct {
Items []PurgeItemResult `json:"items"`
}
PurgeResult defines model for PurgeResult.
type RemoteUpload ¶
type RemoteUpload struct {
Bytes int64 `json:"bytes"`
Conflict bool `json:"conflict"`
ID string `json:"id"`
Key string `json:"key,omitempty"`
Keys []string `json:"keys"`
Kind RemoteUploadKind `json:"kind"`
LastModified time.Time `json:"last_modified"`
MarkerKey string `json:"marker_key"`
Objects int `json:"objects"`
Slug string `json:"slug,omitempty"`
URL string `json:"url,omitempty"`
}
RemoteUpload defines model for RemoteUpload.
type RemoteUploadKind ¶
type RemoteUploadKind string
RemoteUploadKind defines model for RemoteUpload.Kind.
const ( RemoteUploadKindCollection RemoteUploadKind = "collection" RemoteUploadKindDocument RemoteUploadKind = "document" )
Defines values for RemoteUploadKind.
func (RemoteUploadKind) Valid ¶
func (e RemoteUploadKind) Valid() bool
Valid indicates whether the value is a known member of the RemoteUploadKind enum.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type ServeMux ¶
type ServeMux interface {
HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
http.Handler
}
ServeMux is an abstraction of http.ServeMux.
type ServerInterface ¶
type ServerInterface interface {
// (GET /api/v1/capabilities)
GetCapabilities(w http.ResponseWriter, r *http.Request)
// (POST /api/v1/purge)
ExecutePurge(w http.ResponseWriter, r *http.Request)
// (POST /api/v1/purge/preview)
PreviewPurge(w http.ResponseWriter, r *http.Request)
// (GET /api/v1/storage/uploads)
ListStorageUploads(w http.ResponseWriter, r *http.Request)
// (POST /api/v1/sync)
SyncManifest(w http.ResponseWriter, r *http.Request)
// (GET /api/v1/uploads)
ListManifestUploads(w http.ResponseWriter, r *http.Request)
// (POST /api/v1/uploads/collections)
UploadCollection(w http.ResponseWriter, r *http.Request)
// (POST /api/v1/uploads/delete)
DeleteUpload(w http.ResponseWriter, r *http.Request)
// (POST /api/v1/uploads/documents)
UploadDocument(w http.ResponseWriter, r *http.Request)
// (POST /api/v1/uploads/get)
GetUpload(w http.ResponseWriter, r *http.Request)
// (POST /api/v1/uploads/inspect)
InspectUpload(w http.ResponseWriter, r *http.Request)
// (GET /healthz)
Health(w http.ResponseWriter, r *http.Request)
// (GET /openapi.yaml)
GetOpenAPI(w http.ResponseWriter, r *http.Request)
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
func NewStrictHandlerWithOptions ¶
func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) DeleteUpload ¶
func (siw *ServerInterfaceWrapper) DeleteUpload(w http.ResponseWriter, r *http.Request)
DeleteUpload operation middleware
func (*ServerInterfaceWrapper) ExecutePurge ¶
func (siw *ServerInterfaceWrapper) ExecutePurge(w http.ResponseWriter, r *http.Request)
ExecutePurge operation middleware
func (*ServerInterfaceWrapper) GetCapabilities ¶
func (siw *ServerInterfaceWrapper) GetCapabilities(w http.ResponseWriter, r *http.Request)
GetCapabilities operation middleware
func (*ServerInterfaceWrapper) GetOpenAPI ¶
func (siw *ServerInterfaceWrapper) GetOpenAPI(w http.ResponseWriter, r *http.Request)
GetOpenAPI operation middleware
func (*ServerInterfaceWrapper) GetUpload ¶
func (siw *ServerInterfaceWrapper) GetUpload(w http.ResponseWriter, r *http.Request)
GetUpload operation middleware
func (*ServerInterfaceWrapper) Health ¶
func (siw *ServerInterfaceWrapper) Health(w http.ResponseWriter, r *http.Request)
Health operation middleware
func (*ServerInterfaceWrapper) InspectUpload ¶
func (siw *ServerInterfaceWrapper) InspectUpload(w http.ResponseWriter, r *http.Request)
InspectUpload operation middleware
func (*ServerInterfaceWrapper) ListManifestUploads ¶
func (siw *ServerInterfaceWrapper) ListManifestUploads(w http.ResponseWriter, r *http.Request)
ListManifestUploads operation middleware
func (*ServerInterfaceWrapper) ListStorageUploads ¶
func (siw *ServerInterfaceWrapper) ListStorageUploads(w http.ResponseWriter, r *http.Request)
ListStorageUploads operation middleware
func (*ServerInterfaceWrapper) PreviewPurge ¶
func (siw *ServerInterfaceWrapper) PreviewPurge(w http.ResponseWriter, r *http.Request)
PreviewPurge operation middleware
func (*ServerInterfaceWrapper) SyncManifest ¶
func (siw *ServerInterfaceWrapper) SyncManifest(w http.ResponseWriter, r *http.Request)
SyncManifest operation middleware
func (*ServerInterfaceWrapper) UploadCollection ¶
func (siw *ServerInterfaceWrapper) UploadCollection(w http.ResponseWriter, r *http.Request)
UploadCollection operation middleware
func (*ServerInterfaceWrapper) UploadDocument ¶
func (siw *ServerInterfaceWrapper) UploadDocument(w http.ResponseWriter, r *http.Request)
UploadDocument operation middleware
type StdHTTPServerOptions ¶
type StdHTTPServerOptions struct {
BaseURL string
BaseRouter ServeMux
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StorageList ¶
type StorageList struct {
Uploads []RemoteUpload `json:"uploads"`
Warnings []string `json:"warnings"`
}
StorageList defines model for StorageList.
type StrictHTTPServerOptions ¶
type StrictHTTPServerOptions struct {
RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHandlerFunc ¶
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// (GET /api/v1/capabilities)
GetCapabilities(ctx context.Context, request GetCapabilitiesRequestObject) (GetCapabilitiesResponseObject, error)
// (POST /api/v1/purge)
ExecutePurge(ctx context.Context, request ExecutePurgeRequestObject) (ExecutePurgeResponseObject, error)
// (POST /api/v1/purge/preview)
PreviewPurge(ctx context.Context, request PreviewPurgeRequestObject) (PreviewPurgeResponseObject, error)
// (GET /api/v1/storage/uploads)
ListStorageUploads(ctx context.Context, request ListStorageUploadsRequestObject) (ListStorageUploadsResponseObject, error)
// (POST /api/v1/sync)
SyncManifest(ctx context.Context, request SyncManifestRequestObject) (SyncManifestResponseObject, error)
// (GET /api/v1/uploads)
ListManifestUploads(ctx context.Context, request ListManifestUploadsRequestObject) (ListManifestUploadsResponseObject, error)
// (POST /api/v1/uploads/collections)
UploadCollection(ctx context.Context, request UploadCollectionRequestObject) (UploadCollectionResponseObject, error)
// (POST /api/v1/uploads/delete)
DeleteUpload(ctx context.Context, request DeleteUploadRequestObject) (DeleteUploadResponseObject, error)
// (POST /api/v1/uploads/documents)
UploadDocument(ctx context.Context, request UploadDocumentRequestObject) (UploadDocumentResponseObject, error)
// (POST /api/v1/uploads/get)
GetUpload(ctx context.Context, request GetUploadRequestObject) (GetUploadResponseObject, error)
// (POST /api/v1/uploads/inspect)
InspectUpload(ctx context.Context, request InspectUploadRequestObject) (InspectUploadResponseObject, error)
// (GET /healthz)
Health(ctx context.Context, request HealthRequestObject) (HealthResponseObject, error)
// (GET /openapi.yaml)
GetOpenAPI(ctx context.Context, request GetOpenAPIRequestObject) (GetOpenAPIResponseObject, error)
}
StrictServerInterface represents all server handlers.
type SyncFailure ¶
type SyncFailure struct {
Error string `json:"error"`
MarkerKey string `json:"marker_key"`
Operation SyncFailureOperation `json:"operation"`
}
SyncFailure defines model for SyncFailure.
type SyncFailureOperation ¶
type SyncFailureOperation string
SyncFailureOperation defines model for SyncFailure.Operation.
const ( ConfirmAbsence SyncFailureOperation = "confirm_absence" Fetch SyncFailureOperation = "fetch" )
Defines values for SyncFailureOperation.
func (SyncFailureOperation) Valid ¶
func (e SyncFailureOperation) Valid() bool
Valid indicates whether the value is a known member of the SyncFailureOperation enum.
type SyncManifest200JSONResponse ¶
type SyncManifest200JSONResponse SyncResult
func (SyncManifest200JSONResponse) VisitSyncManifestResponse ¶
func (response SyncManifest200JSONResponse) VisitSyncManifestResponse(w http.ResponseWriter) error
type SyncManifestJSONRequestBody ¶
type SyncManifestJSONRequestBody = SyncRequest
SyncManifestJSONRequestBody defines body for SyncManifest for application/json ContentType.
type SyncManifestRequestObject ¶
type SyncManifestRequestObject struct {
Body *SyncManifestJSONRequestBody
}
type SyncManifestResponse ¶
type SyncManifestResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SyncResult
// ApplicationProblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationProblemJSONDefault *Problem
}
func ParseSyncManifestResponse ¶
func ParseSyncManifestResponse(rsp *http.Response) (*SyncManifestResponse, error)
ParseSyncManifestResponse parses an HTTP response from a SyncManifestWithResponse call
func (SyncManifestResponse) ContentType ¶
func (r SyncManifestResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SyncManifestResponse) GetApplicationProblemJSONDefault ¶
func (r SyncManifestResponse) GetApplicationProblemJSONDefault() *Problem
GetApplicationProblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (SyncManifestResponse) GetBody ¶
func (r SyncManifestResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SyncManifestResponse) GetJSON200 ¶
func (r SyncManifestResponse) GetJSON200() *SyncResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (SyncManifestResponse) Status ¶
func (r SyncManifestResponse) Status() string
Status returns HTTPResponse.Status
func (SyncManifestResponse) StatusCode ¶
func (r SyncManifestResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SyncManifestResponseObject ¶
type SyncManifestResponseObject interface {
VisitSyncManifestResponse(w http.ResponseWriter) error
}
type SyncManifestdefaultApplicationProblemPlusJSONResponse ¶
func (SyncManifestdefaultApplicationProblemPlusJSONResponse) VisitSyncManifestResponse ¶
func (response SyncManifestdefaultApplicationProblemPlusJSONResponse) VisitSyncManifestResponse(w http.ResponseWriter) error
type SyncRequest ¶
type SyncRequest struct {
Concurrency int `json:"concurrency,omitempty"`
DryRun bool `json:"dry_run,omitempty"`
Prune bool `json:"prune,omitempty"`
}
SyncRequest defines model for SyncRequest.
type SyncResult ¶
type SyncResult struct {
AddedRecords []ManifestRecord `json:"added_records"`
Complete bool `json:"complete"`
Failures []SyncFailure `json:"failures"`
Incomplete int `json:"incomplete"`
Invalid int `json:"invalid"`
Retained int `json:"retained"`
TombstoneRecords []ManifestRecord `json:"tombstone_records"`
Unchanged int `json:"unchanged"`
Warnings []string `json:"warnings"`
}
SyncResult defines model for SyncResult.
type TargetRequest ¶
type TargetRequest struct {
URLOrKey string `json:"url_or_key"`
}
TargetRequest defines model for TargetRequest.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type UploadCollection201JSONResponse ¶
type UploadCollection201JSONResponse UploadResult
func (UploadCollection201JSONResponse) VisitUploadCollectionResponse ¶
func (response UploadCollection201JSONResponse) VisitUploadCollectionResponse(w http.ResponseWriter) error
type UploadCollectionMultipartBody ¶
type UploadCollectionMultipartBody struct {
Files []openapi_types.File `json:"files"`
Metadata CollectionMetadata `json:"metadata"`
}
UploadCollectionMultipartBody defines parameters for UploadCollection.
type UploadCollectionMultipartRequestBody ¶
type UploadCollectionMultipartRequestBody UploadCollectionMultipartBody
UploadCollectionMultipartRequestBody defines body for UploadCollection for multipart/form-data ContentType.
type UploadCollectionResponse ¶
type UploadCollectionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *UploadResult
// ApplicationProblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationProblemJSONDefault *Problem
}
func ParseUploadCollectionResponse ¶
func ParseUploadCollectionResponse(rsp *http.Response) (*UploadCollectionResponse, error)
ParseUploadCollectionResponse parses an HTTP response from a UploadCollectionWithResponse call
func (UploadCollectionResponse) ContentType ¶
func (r UploadCollectionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UploadCollectionResponse) GetApplicationProblemJSONDefault ¶
func (r UploadCollectionResponse) GetApplicationProblemJSONDefault() *Problem
GetApplicationProblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (UploadCollectionResponse) GetBody ¶
func (r UploadCollectionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UploadCollectionResponse) GetJSON201 ¶
func (r UploadCollectionResponse) GetJSON201() *UploadResult
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (UploadCollectionResponse) Status ¶
func (r UploadCollectionResponse) Status() string
Status returns HTTPResponse.Status
func (UploadCollectionResponse) StatusCode ¶
func (r UploadCollectionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadCollectionResponseObject ¶
type UploadCollectionResponseObject interface {
VisitUploadCollectionResponse(w http.ResponseWriter) error
}
type UploadCollectiondefaultApplicationProblemPlusJSONResponse ¶
type UploadCollectiondefaultApplicationProblemPlusJSONResponse struct {
Body Problem
StatusCode int
}
func (UploadCollectiondefaultApplicationProblemPlusJSONResponse) VisitUploadCollectionResponse ¶
func (response UploadCollectiondefaultApplicationProblemPlusJSONResponse) VisitUploadCollectionResponse(w http.ResponseWriter) error
type UploadDocument201JSONResponse ¶
type UploadDocument201JSONResponse UploadResult
func (UploadDocument201JSONResponse) VisitUploadDocumentResponse ¶
func (response UploadDocument201JSONResponse) VisitUploadDocumentResponse(w http.ResponseWriter) error
type UploadDocumentMultipartBody ¶
type UploadDocumentMultipartBody struct {
Document openapi_types.File `json:"document"`
Metadata DocumentMetadata `json:"metadata"`
}
UploadDocumentMultipartBody defines parameters for UploadDocument.
type UploadDocumentMultipartRequestBody ¶
type UploadDocumentMultipartRequestBody UploadDocumentMultipartBody
UploadDocumentMultipartRequestBody defines body for UploadDocument for multipart/form-data ContentType.
type UploadDocumentResponse ¶
type UploadDocumentResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *UploadResult
// ApplicationProblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationProblemJSONDefault *Problem
}
func ParseUploadDocumentResponse ¶
func ParseUploadDocumentResponse(rsp *http.Response) (*UploadDocumentResponse, error)
ParseUploadDocumentResponse parses an HTTP response from a UploadDocumentWithResponse call
func (UploadDocumentResponse) ContentType ¶
func (r UploadDocumentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UploadDocumentResponse) GetApplicationProblemJSONDefault ¶
func (r UploadDocumentResponse) GetApplicationProblemJSONDefault() *Problem
GetApplicationProblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (UploadDocumentResponse) GetBody ¶
func (r UploadDocumentResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UploadDocumentResponse) GetJSON201 ¶
func (r UploadDocumentResponse) GetJSON201() *UploadResult
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (UploadDocumentResponse) Status ¶
func (r UploadDocumentResponse) Status() string
Status returns HTTPResponse.Status
func (UploadDocumentResponse) StatusCode ¶
func (r UploadDocumentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadDocumentResponseObject ¶
type UploadDocumentResponseObject interface {
VisitUploadDocumentResponse(w http.ResponseWriter) error
}
type UploadDocumentdefaultApplicationProblemPlusJSONResponse ¶
func (UploadDocumentdefaultApplicationProblemPlusJSONResponse) VisitUploadDocumentResponse ¶
func (response UploadDocumentdefaultApplicationProblemPlusJSONResponse) VisitUploadDocumentResponse(w http.ResponseWriter) error
type UploadInspection ¶
type UploadInspection struct {
Bytes int64 `json:"bytes"`
CreatedAt *time.Time `json:"created_at,omitempty"`
Error string `json:"error,omitempty"`
Files []InspectedObject `json:"files"`
Format string `json:"format,omitempty"`
ID string `json:"id"`
Kind UploadInspectionKind `json:"kind,omitempty"`
MarkerKey string `json:"marker_key"`
MarkerVersion int `json:"marker_version,omitempty"`
Objects int `json:"objects"`
Page *InspectedObject `json:"page,omitempty"`
RepositoryURL string `json:"repository_url,omitempty"`
Source *InspectedObject `json:"source,omitempty"`
State UploadInspectionState `json:"state"`
Title string `json:"title,omitempty"`
Warnings []string `json:"warnings"`
}
UploadInspection defines model for UploadInspection.
type UploadInspectionKind ¶
type UploadInspectionKind string
UploadInspectionKind defines model for UploadInspection.Kind.
const ( UploadInspectionKindCollection UploadInspectionKind = "collection" UploadInspectionKindDocument UploadInspectionKind = "document" )
Defines values for UploadInspectionKind.
func (UploadInspectionKind) Valid ¶
func (e UploadInspectionKind) Valid() bool
Valid indicates whether the value is a known member of the UploadInspectionKind enum.
type UploadInspectionState ¶
type UploadInspectionState string
UploadInspectionState defines model for UploadInspection.State.
const ( Complete UploadInspectionState = "complete" Incomplete UploadInspectionState = "incomplete" Invalid UploadInspectionState = "invalid" )
Defines values for UploadInspectionState.
func (UploadInspectionState) Valid ¶
func (e UploadInspectionState) Valid() bool
Valid indicates whether the value is a known member of the UploadInspectionState enum.
type UploadLimits ¶
type UploadLimits struct {
CollectionFileBytes int64 `json:"collection_file_bytes"`
CollectionTotalBytes int64 `json:"collection_total_bytes"`
DocumentBytes int64 `json:"document_bytes"`
}
UploadLimits defines model for UploadLimits.
type UploadResult ¶
type UploadResult struct {
Bucket string `json:"bucket"`
Bytes int64 `json:"bytes"`
ContentType string `json:"content_type"`
CreatedAt time.Time `json:"created_at"`
Files []FileResult `json:"files,omitempty"`
Format string `json:"format,omitempty"`
ID string `json:"id"`
Key string `json:"key"`
Kind UploadResultKind `json:"kind"`
MarkerKey string `json:"marker_key"`
MarkerVersion int `json:"marker_version"`
RepositoryURL string `json:"repository_url,omitempty"`
Slug string `json:"slug,omitempty"`
SourceKey string `json:"source_key,omitempty"`
SourceURL string `json:"source_url,omitempty"`
Title string `json:"title,omitempty"`
URL string `json:"url"`
Warnings []string `json:"warnings"`
}
UploadResult defines model for UploadResult.
type UploadResultKind ¶
type UploadResultKind string
UploadResultKind defines model for UploadResult.Kind.
const ( UploadResultKindCollection UploadResultKind = "collection" UploadResultKindDocument UploadResultKind = "document" )
Defines values for UploadResultKind.
func (UploadResultKind) Valid ¶
func (e UploadResultKind) Valid() bool
Valid indicates whether the value is a known member of the UploadResultKind enum.