package
0.0.0-20241002184308-f6bf85192d9f
Repository: https://github.com/artefactual-sdps/enduro.git
Documentation: pkg.go.dev
# Functions
ConfirmPackagePath returns the URL path to the package service confirm HTTP endpoint.
DecodeConfirmRequest returns a decoder for requests sent to the package confirm endpoint.
DecodeListRequest returns a decoder for requests sent to the package list endpoint.
DecodeMonitorRequest returns a decoder for requests sent to the package monitor endpoint.
DecodeMonitorRequestRequest returns a decoder for requests sent to the package monitor_request endpoint.
DecodeMoveRequest returns a decoder for requests sent to the package move endpoint.
DecodeMoveStatusRequest returns a decoder for requests sent to the package move_status endpoint.
DecodePreservationActionsRequest returns a decoder for requests sent to the package preservation_actions endpoint.
DecodeRejectRequest returns a decoder for requests sent to the package reject endpoint.
DecodeShowRequest returns a decoder for requests sent to the package show endpoint.
DecodeUploadRequest returns a decoder for requests sent to the package upload endpoint.
EncodeConfirmError returns an encoder for errors returned by the confirm package endpoint.
EncodeConfirmResponse returns an encoder for responses returned by the package confirm endpoint.
EncodeListError returns an encoder for errors returned by the list package endpoint.
EncodeListResponse returns an encoder for responses returned by the package list endpoint.
EncodeMonitorError returns an encoder for errors returned by the monitor package endpoint.
EncodeMonitorRequestError returns an encoder for errors returned by the monitor_request package endpoint.
EncodeMonitorRequestResponse returns an encoder for responses returned by the package monitor_request endpoint.
EncodeMoveError returns an encoder for errors returned by the move package endpoint.
EncodeMoveResponse returns an encoder for responses returned by the package move endpoint.
EncodeMoveStatusError returns an encoder for errors returned by the move_status package endpoint.
EncodeMoveStatusResponse returns an encoder for responses returned by the package move_status endpoint.
EncodePreservationActionsError returns an encoder for errors returned by the preservation_actions package endpoint.
EncodePreservationActionsResponse returns an encoder for responses returned by the package preservation_actions endpoint.
EncodeRejectError returns an encoder for errors returned by the reject package endpoint.
EncodeRejectResponse returns an encoder for responses returned by the package reject endpoint.
EncodeShowError returns an encoder for errors returned by the show package endpoint.
EncodeShowResponse returns an encoder for responses returned by the package show endpoint.
EncodeUploadError returns an encoder for errors returned by the upload package endpoint.
EncodeUploadResponse returns an encoder for responses returned by the package upload endpoint.
HandlePackageOrigin applies the CORS response headers corresponding to the origin for the service package.
ListPackagePath returns the URL path to the package service list HTTP endpoint.
MonitorPackagePath returns the URL path to the package service monitor HTTP endpoint.
MonitorRequestPackagePath returns the URL path to the package service monitor_request HTTP endpoint.
Mount configures the mux to serve the package endpoints.
MountConfirmHandler configures the mux to serve the "package" service "confirm" endpoint.
MountCORSHandler configures the mux to serve the CORS endpoints for the service package.
MountListHandler configures the mux to serve the "package" service "list" endpoint.
MountMonitorHandler configures the mux to serve the "package" service "monitor" endpoint.
MountMonitorRequestHandler configures the mux to serve the "package" service "monitor_request" endpoint.
MountMoveHandler configures the mux to serve the "package" service "move" endpoint.
MountMoveStatusHandler configures the mux to serve the "package" service "move_status" endpoint.
MountPreservationActionsHandler configures the mux to serve the "package" service "preservation_actions" endpoint.
MountRejectHandler configures the mux to serve the "package" service "reject" endpoint.
MountShowHandler configures the mux to serve the "package" service "show" endpoint.
MountUploadHandler configures the mux to serve the "package" service "upload" endpoint.
MovePackagePath returns the URL path to the package service move HTTP endpoint.
MoveStatusPackagePath returns the URL path to the package service move_status HTTP endpoint.
New instantiates HTTP handlers for all the package service endpoints using the provided encoder and decoder.
NewConfirmHandler creates a HTTP handler which loads the HTTP request and calls the "package" service "confirm" endpoint.
NewConfirmNotAvailableResponseBody builds the HTTP response body from the result of the "confirm" endpoint of the "package" service.
NewConfirmNotFoundResponseBody builds the HTTP response body from the result of the "confirm" endpoint of the "package" service.
NewConfirmNotValidResponseBody builds the HTTP response body from the result of the "confirm" endpoint of the "package" service.
NewConfirmPayload builds a package service confirm endpoint payload.
NewConnConfigurer initializes the websocket connection configurer function with fn for all the streaming endpoints in "package" service.
NewCORSHandler creates a HTTP handler which returns a simple 204 response.
NewListHandler creates a HTTP handler which loads the HTTP request and calls the "package" service "list" endpoint.
NewListPayload builds a package service list endpoint payload.
NewListResponseBody builds the HTTP response body from the result of the "list" endpoint of the "package" service.
NewMonitorHandler creates a HTTP handler which loads the HTTP request and calls the "package" service "monitor" endpoint.
NewMonitorNotAvailableResponseBody builds the HTTP response body from the result of the "monitor" endpoint of the "package" service.
NewMonitorPayload builds a package service monitor endpoint payload.
NewMonitorRequestHandler creates a HTTP handler which loads the HTTP request and calls the "package" service "monitor_request" endpoint.
NewMonitorRequestNotAvailableResponseBody builds the HTTP response body from the result of the "monitor_request" endpoint of the "package" service.
NewMonitorRequestPayload builds a package service monitor_request endpoint payload.
NewMonitorResponseBody builds the HTTP response body from the result of the "monitor" endpoint of the "package" service.
NewMoveHandler creates a HTTP handler which loads the HTTP request and calls the "package" service "move" endpoint.
NewMoveNotAvailableResponseBody builds the HTTP response body from the result of the "move" endpoint of the "package" service.
NewMoveNotFoundResponseBody builds the HTTP response body from the result of the "move" endpoint of the "package" service.
NewMoveNotValidResponseBody builds the HTTP response body from the result of the "move" endpoint of the "package" service.
NewMovePayload builds a package service move endpoint payload.
NewMoveStatusFailedDependencyResponseBody builds the HTTP response body from the result of the "move_status" endpoint of the "package" service.
NewMoveStatusHandler creates a HTTP handler which loads the HTTP request and calls the "package" service "move_status" endpoint.
NewMoveStatusNotFoundResponseBody builds the HTTP response body from the result of the "move_status" endpoint of the "package" service.
NewMoveStatusPayload builds a package service move_status endpoint payload.
NewMoveStatusResponseBody builds the HTTP response body from the result of the "move_status" endpoint of the "package" service.
NewPreservationActionsHandler creates a HTTP handler which loads the HTTP request and calls the "package" service "preservation_actions" endpoint.
NewPreservationActionsNotFoundResponseBody builds the HTTP response body from the result of the "preservation_actions" endpoint of the "package" service.
NewPreservationActionsPayload builds a package service preservation_actions endpoint payload.
NewPreservationActionsResponseBody builds the HTTP response body from the result of the "preservation_actions" endpoint of the "package" service.
NewRejectHandler creates a HTTP handler which loads the HTTP request and calls the "package" service "reject" endpoint.
NewRejectNotAvailableResponseBody builds the HTTP response body from the result of the "reject" endpoint of the "package" service.
NewRejectNotFoundResponseBody builds the HTTP response body from the result of the "reject" endpoint of the "package" service.
NewRejectNotValidResponseBody builds the HTTP response body from the result of the "reject" endpoint of the "package" service.
NewRejectPayload builds a package service reject endpoint payload.
NewShowHandler creates a HTTP handler which loads the HTTP request and calls the "package" service "show" endpoint.
NewShowNotAvailableResponseBody builds the HTTP response body from the result of the "show" endpoint of the "package" service.
NewShowNotFoundResponseBody builds the HTTP response body from the result of the "show" endpoint of the "package" service.
NewShowPayload builds a package service show endpoint payload.
NewShowResponseBody builds the HTTP response body from the result of the "show" endpoint of the "package" service.
NewUploadHandler creates a HTTP handler which loads the HTTP request and calls the "package" service "upload" endpoint.
NewUploadInternalErrorResponseBody builds the HTTP response body from the result of the "upload" endpoint of the "package" service.
NewUploadInvalidMediaTypeResponseBody builds the HTTP response body from the result of the "upload" endpoint of the "package" service.
NewUploadInvalidMultipartRequestResponseBody builds the HTTP response body from the result of the "upload" endpoint of the "package" service.
NewUploadPayload builds a package service upload endpoint payload.
PreservationActionsPackagePath returns the URL path to the package service preservation_actions HTTP endpoint.
RejectPackagePath returns the URL path to the package service reject HTTP endpoint.
ShowPackagePath returns the URL path to the package service show HTTP endpoint.
UploadPackagePath returns the URL path to the package service upload HTTP endpoint.
ValidateConfirmRequestBody runs the validations defined on ConfirmRequestBody.
ValidateMoveRequestBody runs the validations defined on MoveRequestBody.
# Structs
ConfirmNotAvailableResponseBody is the type of the "package" service "confirm" endpoint HTTP response body for the "not_available" error.
ConfirmNotFoundResponseBody is the type of the "package" service "confirm" endpoint HTTP response body for the "not_found" error.
ConfirmNotValidResponseBody is the type of the "package" service "confirm" endpoint HTTP response body for the "not_valid" error.
ConfirmRequestBody is the type of the "package" service "confirm" endpoint HTTP request body.
ConnConfigurer holds the websocket connection configurer functions for the streaming endpoints in "package" service.
EnduroPackagePreservationActionResponseBody is used to define fields on response body types.
EnduroPackagePreservationTaskResponseBody is used to define fields on response body types.
EnduroPageResponseBody is used to define fields on response body types.
EnduroStoredPackageResponseBody is used to define fields on response body types.
ListResponseBody is the type of the "package" service "list" endpoint HTTP response body.
MonitorNotAvailableResponseBody is the type of the "package" service "monitor" endpoint HTTP response body for the "not_available" error.
MonitorRequestNotAvailableResponseBody is the type of the "package" service "monitor_request" endpoint HTTP response body for the "not_available" error.
MonitorResponseBody is the type of the "package" service "monitor" endpoint HTTP response body.
MonitorServerStream implements the package_.MonitorServerStream interface.
MountPoint holds information about the mounted endpoints.
MoveNotAvailableResponseBody is the type of the "package" service "move" endpoint HTTP response body for the "not_available" error.
MoveNotFoundResponseBody is the type of the "package" service "move" endpoint HTTP response body for the "not_found" error.
MoveNotValidResponseBody is the type of the "package" service "move" endpoint HTTP response body for the "not_valid" error.
MoveRequestBody is the type of the "package" service "move" endpoint HTTP request body.
MoveStatusFailedDependencyResponseBody is the type of the "package" service "move_status" endpoint HTTP response body for the "failed_dependency" error.
MoveStatusNotFoundResponseBody is the type of the "package" service "move_status" endpoint HTTP response body for the "not_found" error.
MoveStatusResponseBody is the type of the "package" service "move_status" endpoint HTTP response body.
PreservationActionsNotFoundResponseBody is the type of the "package" service "preservation_actions" endpoint HTTP response body for the "not_found" error.
PreservationActionsResponseBody is the type of the "package" service "preservation_actions" endpoint HTTP response body.
RejectNotAvailableResponseBody is the type of the "package" service "reject" endpoint HTTP response body for the "not_available" error.
RejectNotFoundResponseBody is the type of the "package" service "reject" endpoint HTTP response body for the "not_found" error.
RejectNotValidResponseBody is the type of the "package" service "reject" endpoint HTTP response body for the "not_valid" error.
Server lists the package service endpoint HTTP handlers.
ShowNotAvailableResponseBody is the type of the "package" service "show" endpoint HTTP response body for the "not_available" error.
ShowNotFoundResponseBody is the type of the "package" service "show" endpoint HTTP response body for the "not_found" error.
ShowResponseBody is the type of the "package" service "show" endpoint HTTP response body.
UploadInternalErrorResponseBody is the type of the "package" service "upload" endpoint HTTP response body for the "internal_error" error.
UploadInvalidMediaTypeResponseBody is the type of the "package" service "upload" endpoint HTTP response body for the "invalid_media_type" error.
UploadInvalidMultipartRequestResponseBody is the type of the "package" service "upload" endpoint HTTP response body for the "invalid_multipart_request" error.
# Type aliases
EnduroPackagePreservationActionResponseBodyCollection is used to define fields on response body types.
EnduroPackagePreservationTaskResponseBodyCollection is used to define fields on response body types.
EnduroStoredPackageResponseBodyCollection is used to define fields on response body types.