package
0.0.0-20220914130927-3febccf69fb0
Repository: https://github.com/opdev/backup-handler.git
Documentation: pkg.go.dev
# Functions
CreateRestoreServicePath returns the URL path to the Restore Service service create HTTP endpoint.
DecodeCreateRequest returns a decoder for requests sent to the Restore Service create endpoint.
DecodeDeleteRequest returns a decoder for requests sent to the Restore Service delete endpoint.
DecodeGetRequest returns a decoder for requests sent to the Restore Service get endpoint.
DecodeUpdateRequest returns a decoder for requests sent to the Restore Service update endpoint.
DeleteRestoreServicePath returns the URL path to the Restore Service service delete HTTP endpoint.
EncodeCreateError returns an encoder for errors returned by the create Restore Service endpoint.
EncodeCreateResponse returns an encoder for responses returned by the Restore Service create endpoint.
EncodeDeleteResponse returns an encoder for responses returned by the Restore Service delete endpoint.
EncodeGetResponse returns an encoder for responses returned by the Restore Service get endpoint.
EncodeUpdateResponse returns an encoder for responses returned by the Restore Service update endpoint.
GetRestoreServicePath returns the URL path to the Restore Service service get HTTP endpoint.
Mount configures the mux to serve the Restore Service endpoints.
MountCreateHandler configures the mux to serve the "Restore Service" service "create" endpoint.
MountDeleteHandler configures the mux to serve the "Restore Service" service "delete" endpoint.
MountGenHTTPOpenapi3JSON configures the mux to serve GET request made to "/openapi3.json".
MountGetHandler configures the mux to serve the "Restore Service" service "get" endpoint.
MountUpdateHandler configures the mux to serve the "Restore Service" service "update" endpoint.
New instantiates HTTP handlers for all the Restore Service service endpoints using the provided encoder and decoder.
NewCreateBackupNotFoundResponseBody builds the HTTP response body from the result of the "create" endpoint of the "Restore Service" service.
NewCreateHandler creates a HTTP handler which loads the HTTP request and calls the "Restore Service" service "create" endpoint.
NewCreateResponseBody builds the HTTP response body from the result of the "create" endpoint of the "Restore Service" service.
NewCreateRestore builds a Restore Service service create endpoint payload.
NewDeleteHandler creates a HTTP handler which loads the HTTP request and calls the "Restore Service" service "delete" endpoint.
NewDeletePayload builds a Restore Service service delete endpoint payload.
NewDeleteResponseBody builds the HTTP response body from the result of the "delete" endpoint of the "Restore Service" service.
NewGetHandler creates a HTTP handler which loads the HTTP request and calls the "Restore Service" service "get" endpoint.
NewGetPayload builds a Restore Service service get endpoint payload.
NewGetResponseBody builds the HTTP response body from the result of the "get" endpoint of the "Restore Service" service.
NewUpdateHandler creates a HTTP handler which loads the HTTP request and calls the "Restore Service" service "update" endpoint.
NewUpdateResponseBody builds the HTTP response body from the result of the "update" endpoint of the "Restore Service" service.
NewUpdateRestoreresult builds a Restore Service service update endpoint payload.
UpdateRestoreServicePath returns the URL path to the Restore Service service update HTTP endpoint.
# Structs
CreateBackupNotFoundResponseBody is the type of the "Restore Service" service "create" endpoint HTTP response body for the "backup_not_found" error.
CreateRequestBody is the type of the "Restore Service" service "create" endpoint HTTP request body.
CreateResponseBody is the type of the "Restore Service" service "create" endpoint HTTP response body.
DeleteResponseBody is the type of the "Restore Service" service "delete" endpoint HTTP response body.
GetResponseBody is the type of the "Restore Service" service "get" endpoint HTTP response body.
MountPoint holds information about the mounted endpoints.
Server lists the Restore Service service endpoint HTTP handlers.
UpdateRequestBody is the type of the "Restore Service" service "update" endpoint HTTP request body.
UpdateResponseBody is the type of the "Restore Service" service "update" endpoint HTTP response body.
# Interfaces
ErrorNamer is an interface implemented by generated error structs that exposes the name of the error as defined in the design.