package
0.0.0-20220914130927-3febccf69fb0
Repository: https://github.com/opdev/backup-handler.git
Documentation: pkg.go.dev
# Functions
CreateBackupServicePath returns the URL path to the Backup Service service create HTTP endpoint.
DecodeCreateRequest returns a decoder for requests sent to the Backup Service create endpoint.
DecodeDeleteRequest returns a decoder for requests sent to the Backup Service delete endpoint.
DecodeGetRequest returns a decoder for requests sent to the Backup Service get endpoint.
DecodeUpdateRequest returns a decoder for requests sent to the Backup Service update endpoint.
DeleteBackupServicePath returns the URL path to the Backup Service service delete HTTP endpoint.
EncodeCreateResponse returns an encoder for responses returned by the Backup Service create endpoint.
EncodeDeleteError returns an encoder for errors returned by the delete Backup Service endpoint.
EncodeDeleteResponse returns an encoder for responses returned by the Backup Service delete endpoint.
EncodeGetError returns an encoder for errors returned by the get Backup Service endpoint.
EncodeGetResponse returns an encoder for responses returned by the Backup Service get endpoint.
EncodeUpdateError returns an encoder for errors returned by the update Backup Service endpoint.
EncodeUpdateResponse returns an encoder for responses returned by the Backup Service update endpoint.
GetBackupServicePath returns the URL path to the Backup Service service get HTTP endpoint.
Mount configures the mux to serve the Backup Service endpoints.
MountCreateHandler configures the mux to serve the "Backup Service" service "create" endpoint.
MountDeleteHandler configures the mux to serve the "Backup Service" service "delete" endpoint.
MountGetHandler configures the mux to serve the "Backup Service" service "get" endpoint.
MountUpdateHandler configures the mux to serve the "Backup Service" service "update" endpoint.
New instantiates HTTP handlers for all the Backup Service service endpoints using the provided encoder and decoder.
NewCreateBackup builds a Backup Service service create endpoint payload.
NewCreateHandler creates a HTTP handler which loads the HTTP request and calls the "Backup Service" service "create" endpoint.
NewCreateResponseBody builds the HTTP response body from the result of the "create" endpoint of the "Backup Service" service.
NewDeleteBackupNotFoundResponseBody builds the HTTP response body from the result of the "delete" endpoint of the "Backup Service" service.
NewDeleteHandler creates a HTTP handler which loads the HTTP request and calls the "Backup Service" service "delete" endpoint.
NewDeletePayload builds a Backup Service service delete endpoint payload.
NewDeleteResponseBody builds the HTTP response body from the result of the "delete" endpoint of the "Backup Service" service.
NewGetBackupNotFoundResponseBody builds the HTTP response body from the result of the "get" endpoint of the "Backup Service" service.
NewGetHandler creates a HTTP handler which loads the HTTP request and calls the "Backup Service" service "get" endpoint.
NewGetPayload builds a Backup Service service get endpoint payload.
NewGetResponseBody builds the HTTP response body from the result of the "get" endpoint of the "Backup Service" service.
NewUpdateBackupNotFoundResponseBody builds the HTTP response body from the result of the "update" endpoint of the "Backup Service" service.
NewUpdateBackupresult builds a Backup Service service update endpoint payload.
NewUpdateHandler creates a HTTP handler which loads the HTTP request and calls the "Backup Service" service "update" endpoint.
NewUpdateResponseBody builds the HTTP response body from the result of the "update" endpoint of the "Backup Service" service.
UpdateBackupServicePath returns the URL path to the Backup Service service update HTTP endpoint.
ValidateUpdateRequestBody runs the validations defined on UpdateRequestBody.
# Structs
CreateRequestBody is the type of the "Backup Service" service "create" endpoint HTTP request body.
CreateResponseBody is the type of the "Backup Service" service "create" endpoint HTTP response body.
DeleteBackupNotFoundResponseBody is the type of the "Backup Service" service "delete" endpoint HTTP response body for the "backup_not_found" error.
DeleteResponseBody is the type of the "Backup Service" service "delete" endpoint HTTP response body.
GetBackupNotFoundResponseBody is the type of the "Backup Service" service "get" endpoint HTTP response body for the "backup_not_found" error.
GetResponseBody is the type of the "Backup Service" service "get" endpoint HTTP response body.
MountPoint holds information about the mounted endpoints.
Server lists the Backup Service service endpoint HTTP handlers.
UpdateBackupNotFoundResponseBody is the type of the "Backup Service" service "update" endpoint HTTP response body for the "backup_not_found" error.
UpdateRequestBody is the type of the "Backup Service" service "update" endpoint HTTP request body.
UpdateResponseBody is the type of the "Backup 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.