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 Backup Service create endpoint from CLI flags.
BuildDeletePayload builds the payload for the Backup Service delete endpoint from CLI flags.
BuildGetPayload builds the payload for the Backup Service get endpoint from CLI flags.
BuildUpdatePayload builds the payload for the Backup Service update endpoint from CLI flags.
CreateBackupServicePath returns the URL path to the Backup Service service create HTTP endpoint.
DecodeCreateResponse returns a decoder for responses returned by the Backup Service create endpoint.
DecodeDeleteResponse returns a decoder for responses returned by the Backup Service delete endpoint.
DecodeGetResponse returns a decoder for responses returned by the Backup Service get endpoint.
DecodeUpdateResponse returns a decoder for responses returned by the Backup Service update endpoint.
DeleteBackupServicePath returns the URL path to the Backup Service service delete HTTP endpoint.
EncodeCreateRequest returns an encoder for requests sent to the Backup Service create server.
EncodeUpdateRequest returns an encoder for requests sent to the Backup Service update server.
GetBackupServicePath returns the URL path to the Backup Service service get HTTP endpoint.
NewClient instantiates HTTP clients for all the Backup Service service servers.
NewCreateBackupresultAccepted builds a "Backup Service" service "create" endpoint result from a HTTP "Accepted" response.
NewCreateRequestBody builds the HTTP request body from the payload of the "create" endpoint of the "Backup Service" service.
NewDeleteBackupNotFound builds a Backup Service service delete endpoint backup_not_found error.
NewDeleteBackupresultOK builds a "Backup Service" service "delete" endpoint result from a HTTP "OK" response.
NewGetBackupNotFound builds a Backup Service service get endpoint backup_not_found error.
NewGetBackupresultOK builds a "Backup Service" service "get" endpoint result from a HTTP "OK" response.
NewUpdateBackupNotFound builds a Backup Service service update endpoint backup_not_found error.
NewUpdateBackupresultOK builds a "Backup Service" service "update" endpoint result from a HTTP "OK" response.
NewUpdateRequestBody builds the HTTP request body from the payload of the "update" endpoint of the "Backup Service" service.
UpdateBackupServicePath returns the URL path to the Backup Service service update HTTP endpoint.
ValidateDeleteBackupNotFoundResponseBody runs the validations defined on delete_backup_not_found_response_body.
ValidateGetBackupNotFoundResponseBody runs the validations defined on get_backup_not_found_response_body.
ValidateUpdateBackupNotFoundResponseBody runs the validations defined on update_backup_not_found_response_body.
# Structs
Client lists the Backup Service service endpoint HTTP clients.
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.
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.