package
0.0.0-20220914130927-3febccf69fb0
Repository: https://github.com/opdev/backup-handler.git
Documentation: pkg.go.dev

# Functions

BuildCreatePayload builds the payload for the Restore Service create endpoint from CLI flags.
BuildDeletePayload builds the payload for the Restore Service delete endpoint from CLI flags.
BuildGetPayload builds the payload for the Restore Service get endpoint from CLI flags.
BuildUpdatePayload builds the payload for the Restore Service update endpoint from CLI flags.
CreateRestoreServicePath returns the URL path to the Restore Service service create HTTP endpoint.
DecodeCreateResponse returns a decoder for responses returned by the Restore Service create endpoint.
DecodeDeleteResponse returns a decoder for responses returned by the Restore Service delete endpoint.
DecodeGetResponse returns a decoder for responses returned by the Restore Service get endpoint.
DecodeUpdateResponse returns a decoder for responses returned by the Restore Service update endpoint.
DeleteRestoreServicePath returns the URL path to the Restore Service service delete HTTP endpoint.
EncodeCreateRequest returns an encoder for requests sent to the Restore Service create server.
EncodeUpdateRequest returns an encoder for requests sent to the Restore Service update server.
GetRestoreServicePath returns the URL path to the Restore Service service get HTTP endpoint.
NewClient instantiates HTTP clients for all the Restore Service service servers.
NewCreateBackupNotFound builds a Restore Service service create endpoint backup_not_found error.
NewCreateRequestBody builds the HTTP request body from the payload of the "create" endpoint of the "Restore Service" service.
NewCreateRestoreresultOK builds a "Restore Service" service "create" endpoint result from a HTTP "OK" response.
NewDeleteRestoreresultOK builds a "Restore Service" service "delete" endpoint result from a HTTP "OK" response.
NewGetRestoreresultOK builds a "Restore Service" service "get" endpoint result from a HTTP "OK" response.
NewUpdateRequestBody builds the HTTP request body from the payload of the "update" endpoint of the "Restore Service" service.
NewUpdateRestoreresultOK builds a "Restore Service" service "update" endpoint result from a HTTP "OK" response.
UpdateRestoreServicePath returns the URL path to the Restore Service service update HTTP endpoint.
ValidateCreateBackupNotFoundResponseBody runs the validations defined on create_backup_not_found_response_body.

# Structs

Client lists the Restore Service service endpoint HTTP clients.
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.
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.