Documentation ¶
Index ¶
- func AddLocationStoragePath() string
- func BuildAddLocationPayload(storageAddLocationBody string, storageAddLocationToken string) (*storage.AddLocationPayload, error)
- func BuildCreatePayload(storageCreateBody string, storageCreateToken string) (*storage.CreatePayload, error)
- func BuildDownloadPayload(storageDownloadAipID string, storageDownloadToken string) (*storage.DownloadPayload, error)
- func BuildLocationPackagesPayload(storageLocationPackagesUUID string, storageLocationPackagesToken string) (*storage.LocationPackagesPayload, error)
- func BuildLocationsPayload(storageLocationsToken string) (*storage.LocationsPayload, error)
- func BuildMovePayload(storageMoveBody string, storageMoveAipID string, storageMoveToken string) (*storage.MovePayload, error)
- func BuildMoveStatusPayload(storageMoveStatusAipID string, storageMoveStatusToken string) (*storage.MoveStatusPayload, error)
- func BuildRejectPayload(storageRejectAipID string, storageRejectToken string) (*storage.RejectPayload, error)
- func BuildShowLocationPayload(storageShowLocationUUID string, storageShowLocationToken string) (*storage.ShowLocationPayload, error)
- func BuildShowPayload(storageShowAipID string, storageShowToken string) (*storage.ShowPayload, error)
- func BuildSubmitPayload(storageSubmitBody string, storageSubmitAipID string, storageSubmitToken string) (*storage.SubmitPayload, error)
- func BuildUpdatePayload(storageUpdateAipID string, storageUpdateToken string) (*storage.UpdatePayload, error)
- func CreateStoragePath() string
- func DecodeAddLocationResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeCreateResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeDownloadResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeLocationPackagesResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeLocationsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeMoveResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeMoveStatusResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeRejectResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeShowLocationResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeShowResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeSubmitResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeUpdateResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DownloadStoragePath(aipID string) string
- func EncodeAddLocationRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeCreateRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeDownloadRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeLocationPackagesRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeLocationsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeMoveRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeMoveStatusRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeRejectRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeShowLocationRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeShowRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeSubmitRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeUpdateRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func LocationPackagesStoragePath(uuid string) string
- func LocationsStoragePath() string
- func MoveStatusStoragePath(aipID string) string
- func MoveStoragePath(aipID string) string
- func NewAddLocationForbidden(body string) storage.Forbidden
- func NewAddLocationNotValid(body *AddLocationNotValidResponseBody) *goa.ServiceError
- func NewAddLocationResultCreated(body *AddLocationResponseBody) *storage.AddLocationResult
- func NewAddLocationUnauthorized(body string) storage.Unauthorized
- func NewCreateForbidden(body string) storage.Forbidden
- func NewCreateNotValid(body *CreateNotValidResponseBody) *goa.ServiceError
- func NewCreatePackageOK(body *CreateResponseBody) *storageviews.PackageView
- func NewCreateUnauthorized(body string) storage.Unauthorized
- func NewDownloadForbidden(body string) storage.Forbidden
- func NewDownloadNotFound(body *DownloadNotFoundResponseBody) *storage.PackageNotFound
- func NewDownloadUnauthorized(body string) storage.Unauthorized
- func NewLocationPackagesForbidden(body string) storage.Forbidden
- func NewLocationPackagesNotFound(body *LocationPackagesNotFoundResponseBody) *storage.LocationNotFound
- func NewLocationPackagesNotValid(body *LocationPackagesNotValidResponseBody) *goa.ServiceError
- func NewLocationPackagesPackageCollectionOK(body LocationPackagesResponseBody) storageviews.PackageCollectionView
- func NewLocationPackagesUnauthorized(body string) storage.Unauthorized
- func NewLocationsForbidden(body string) storage.Forbidden
- func NewLocationsLocationCollectionOK(body LocationsResponseBody) storageviews.LocationCollectionView
- func NewLocationsUnauthorized(body string) storage.Unauthorized
- func NewMoveForbidden(body string) storage.Forbidden
- func NewMoveNotAvailable(body *MoveNotAvailableResponseBody) *goa.ServiceError
- func NewMoveNotFound(body *MoveNotFoundResponseBody) *storage.PackageNotFound
- func NewMoveNotValid(body *MoveNotValidResponseBody) *goa.ServiceError
- func NewMoveStatusFailedDependency(body *MoveStatusFailedDependencyResponseBody) *goa.ServiceError
- func NewMoveStatusForbidden(body string) storage.Forbidden
- func NewMoveStatusNotFound(body *MoveStatusNotFoundResponseBody) *storage.PackageNotFound
- func NewMoveStatusResultOK(body *MoveStatusResponseBody) *storage.MoveStatusResult
- func NewMoveStatusUnauthorized(body string) storage.Unauthorized
- func NewMoveUnauthorized(body string) storage.Unauthorized
- func NewRejectForbidden(body string) storage.Forbidden
- func NewRejectNotAvailable(body *RejectNotAvailableResponseBody) *goa.ServiceError
- func NewRejectNotFound(body *RejectNotFoundResponseBody) *storage.PackageNotFound
- func NewRejectNotValid(body *RejectNotValidResponseBody) *goa.ServiceError
- func NewRejectUnauthorized(body string) storage.Unauthorized
- func NewShowForbidden(body string) storage.Forbidden
- func NewShowLocationForbidden(body string) storage.Forbidden
- func NewShowLocationLocationOK(body *ShowLocationResponseBody) *storageviews.LocationView
- func NewShowLocationNotFound(body *ShowLocationNotFoundResponseBody) *storage.LocationNotFound
- func NewShowLocationUnauthorized(body string) storage.Unauthorized
- func NewShowNotFound(body *ShowNotFoundResponseBody) *storage.PackageNotFound
- func NewShowPackageOK(body *ShowResponseBody) *storageviews.PackageView
- func NewShowUnauthorized(body string) storage.Unauthorized
- func NewSubmitForbidden(body string) storage.Forbidden
- func NewSubmitNotAvailable(body *SubmitNotAvailableResponseBody) *goa.ServiceError
- func NewSubmitNotValid(body *SubmitNotValidResponseBody) *goa.ServiceError
- func NewSubmitResultAccepted(body *SubmitResponseBody) *storage.SubmitResult
- func NewSubmitUnauthorized(body string) storage.Unauthorized
- func NewUpdateForbidden(body string) storage.Forbidden
- func NewUpdateNotAvailable(body *UpdateNotAvailableResponseBody) *goa.ServiceError
- func NewUpdateNotValid(body *UpdateNotValidResponseBody) *goa.ServiceError
- func NewUpdateUnauthorized(body string) storage.Unauthorized
- func RejectStoragePath(aipID string) string
- func ShowLocationStoragePath(uuid string) string
- func ShowStoragePath(aipID string) string
- func SubmitStoragePath(aipID string) string
- func UpdateStoragePath(aipID string) string
- func ValidateAddLocationNotValidResponseBody(body *AddLocationNotValidResponseBody) (err error)
- func ValidateAddLocationResponseBody(body *AddLocationResponseBody) (err error)
- func ValidateCreateNotValidResponseBody(body *CreateNotValidResponseBody) (err error)
- func ValidateDownloadNotFoundResponseBody(body *DownloadNotFoundResponseBody) (err error)
- func ValidateLocationPackagesNotFoundResponseBody(body *LocationPackagesNotFoundResponseBody) (err error)
- func ValidateLocationPackagesNotValidResponseBody(body *LocationPackagesNotValidResponseBody) (err error)
- func ValidateLocationResponse(body *LocationResponse) (err error)
- func ValidateMoveNotAvailableResponseBody(body *MoveNotAvailableResponseBody) (err error)
- func ValidateMoveNotFoundResponseBody(body *MoveNotFoundResponseBody) (err error)
- func ValidateMoveNotValidResponseBody(body *MoveNotValidResponseBody) (err error)
- func ValidateMoveStatusFailedDependencyResponseBody(body *MoveStatusFailedDependencyResponseBody) (err error)
- func ValidateMoveStatusNotFoundResponseBody(body *MoveStatusNotFoundResponseBody) (err error)
- func ValidateMoveStatusResponseBody(body *MoveStatusResponseBody) (err error)
- func ValidatePackageResponse(body *PackageResponse) (err error)
- func ValidateRejectNotAvailableResponseBody(body *RejectNotAvailableResponseBody) (err error)
- func ValidateRejectNotFoundResponseBody(body *RejectNotFoundResponseBody) (err error)
- func ValidateRejectNotValidResponseBody(body *RejectNotValidResponseBody) (err error)
- func ValidateShowLocationNotFoundResponseBody(body *ShowLocationNotFoundResponseBody) (err error)
- func ValidateShowNotFoundResponseBody(body *ShowNotFoundResponseBody) (err error)
- func ValidateSubmitNotAvailableResponseBody(body *SubmitNotAvailableResponseBody) (err error)
- func ValidateSubmitNotValidResponseBody(body *SubmitNotValidResponseBody) (err error)
- func ValidateSubmitResponseBody(body *SubmitResponseBody) (err error)
- func ValidateUpdateNotAvailableResponseBody(body *UpdateNotAvailableResponseBody) (err error)
- func ValidateUpdateNotValidResponseBody(body *UpdateNotValidResponseBody) (err error)
- type AddLocationNotValidResponseBody
- type AddLocationRequestBody
- type AddLocationResponseBody
- type Client
- func (c *Client) AddLocation() goa.Endpoint
- func (c *Client) BuildAddLocationRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildCreateRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildDownloadRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildLocationPackagesRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildLocationsRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildMoveRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildMoveStatusRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildRejectRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildShowLocationRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildShowRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildSubmitRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildUpdateRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) Create() goa.Endpoint
- func (c *Client) Download() goa.Endpoint
- func (c *Client) LocationPackages() goa.Endpoint
- func (c *Client) Locations() goa.Endpoint
- func (c *Client) Move() goa.Endpoint
- func (c *Client) MoveStatus() goa.Endpoint
- func (c *Client) Reject() goa.Endpoint
- func (c *Client) Show() goa.Endpoint
- func (c *Client) ShowLocation() goa.Endpoint
- func (c *Client) Submit() goa.Endpoint
- func (c *Client) Update() goa.Endpoint
- type CreateNotValidResponseBody
- type CreateRequestBody
- type CreateResponseBody
- type DownloadNotFoundResponseBody
- type LocationPackagesNotFoundResponseBody
- type LocationPackagesNotValidResponseBody
- type LocationPackagesResponseBody
- type LocationResponse
- type LocationsResponseBody
- type MoveNotAvailableResponseBody
- type MoveNotFoundResponseBody
- type MoveNotValidResponseBody
- type MoveRequestBody
- type MoveStatusFailedDependencyResponseBody
- type MoveStatusNotFoundResponseBody
- type MoveStatusResponseBody
- type PackageResponse
- type RejectNotAvailableResponseBody
- type RejectNotFoundResponseBody
- type RejectNotValidResponseBody
- type ShowLocationNotFoundResponseBody
- type ShowLocationResponseBody
- type ShowNotFoundResponseBody
- type ShowResponseBody
- type SubmitNotAvailableResponseBody
- type SubmitNotValidResponseBody
- type SubmitRequestBody
- type SubmitResponseBody
- type UpdateNotAvailableResponseBody
- type UpdateNotValidResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLocationStoragePath ¶
func AddLocationStoragePath() string
AddLocationStoragePath returns the URL path to the storage service add_location HTTP endpoint.
func BuildAddLocationPayload ¶
func BuildAddLocationPayload(storageAddLocationBody string, storageAddLocationToken string) (*storage.AddLocationPayload, error)
BuildAddLocationPayload builds the payload for the storage add_location endpoint from CLI flags.
func BuildCreatePayload ¶
func BuildCreatePayload(storageCreateBody string, storageCreateToken string) (*storage.CreatePayload, error)
BuildCreatePayload builds the payload for the storage create endpoint from CLI flags.
func BuildDownloadPayload ¶
func BuildDownloadPayload(storageDownloadAipID string, storageDownloadToken string) (*storage.DownloadPayload, error)
BuildDownloadPayload builds the payload for the storage download endpoint from CLI flags.
func BuildLocationPackagesPayload ¶
func BuildLocationPackagesPayload(storageLocationPackagesUUID string, storageLocationPackagesToken string) (*storage.LocationPackagesPayload, error)
BuildLocationPackagesPayload builds the payload for the storage location_packages endpoint from CLI flags.
func BuildLocationsPayload ¶
func BuildLocationsPayload(storageLocationsToken string) (*storage.LocationsPayload, error)
BuildLocationsPayload builds the payload for the storage locations endpoint from CLI flags.
func BuildMovePayload ¶
func BuildMovePayload(storageMoveBody string, storageMoveAipID string, storageMoveToken string) (*storage.MovePayload, error)
BuildMovePayload builds the payload for the storage move endpoint from CLI flags.
func BuildMoveStatusPayload ¶
func BuildMoveStatusPayload(storageMoveStatusAipID string, storageMoveStatusToken string) (*storage.MoveStatusPayload, error)
BuildMoveStatusPayload builds the payload for the storage move_status endpoint from CLI flags.
func BuildRejectPayload ¶
func BuildRejectPayload(storageRejectAipID string, storageRejectToken string) (*storage.RejectPayload, error)
BuildRejectPayload builds the payload for the storage reject endpoint from CLI flags.
func BuildShowLocationPayload ¶
func BuildShowLocationPayload(storageShowLocationUUID string, storageShowLocationToken string) (*storage.ShowLocationPayload, error)
BuildShowLocationPayload builds the payload for the storage show_location endpoint from CLI flags.
func BuildShowPayload ¶
func BuildShowPayload(storageShowAipID string, storageShowToken string) (*storage.ShowPayload, error)
BuildShowPayload builds the payload for the storage show endpoint from CLI flags.
func BuildSubmitPayload ¶
func BuildSubmitPayload(storageSubmitBody string, storageSubmitAipID string, storageSubmitToken string) (*storage.SubmitPayload, error)
BuildSubmitPayload builds the payload for the storage submit endpoint from CLI flags.
func BuildUpdatePayload ¶
func BuildUpdatePayload(storageUpdateAipID string, storageUpdateToken string) (*storage.UpdatePayload, error)
BuildUpdatePayload builds the payload for the storage update endpoint from CLI flags.
func CreateStoragePath ¶
func CreateStoragePath() string
CreateStoragePath returns the URL path to the storage service create HTTP endpoint.
func DecodeAddLocationResponse ¶
func DecodeAddLocationResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeAddLocationResponse returns a decoder for responses returned by the storage add_location endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeAddLocationResponse may return the following errors:
- "not_valid" (type *goa.ServiceError): http.StatusBadRequest
- "forbidden" (type storage.Forbidden): http.StatusForbidden
- "unauthorized" (type storage.Unauthorized): http.StatusUnauthorized
- error: internal error
func DecodeCreateResponse ¶
func DecodeCreateResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeCreateResponse returns a decoder for responses returned by the storage create endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeCreateResponse may return the following errors:
- "not_valid" (type *goa.ServiceError): http.StatusBadRequest
- "forbidden" (type storage.Forbidden): http.StatusForbidden
- "unauthorized" (type storage.Unauthorized): http.StatusUnauthorized
- error: internal error
func DecodeDownloadResponse ¶
func DecodeDownloadResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeDownloadResponse returns a decoder for responses returned by the storage download endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeDownloadResponse may return the following errors:
- "not_found" (type *storage.PackageNotFound): http.StatusNotFound
- "forbidden" (type storage.Forbidden): http.StatusForbidden
- "unauthorized" (type storage.Unauthorized): http.StatusUnauthorized
- error: internal error
func DecodeLocationPackagesResponse ¶
func DecodeLocationPackagesResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeLocationPackagesResponse returns a decoder for responses returned by the storage location_packages endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeLocationPackagesResponse may return the following errors:
- "not_valid" (type *goa.ServiceError): http.StatusBadRequest
- "not_found" (type *storage.LocationNotFound): http.StatusNotFound
- "forbidden" (type storage.Forbidden): http.StatusForbidden
- "unauthorized" (type storage.Unauthorized): http.StatusUnauthorized
- error: internal error
func DecodeLocationsResponse ¶
func DecodeLocationsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeLocationsResponse returns a decoder for responses returned by the storage locations endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeLocationsResponse may return the following errors:
- "forbidden" (type storage.Forbidden): http.StatusForbidden
- "unauthorized" (type storage.Unauthorized): http.StatusUnauthorized
- error: internal error
func DecodeMoveResponse ¶
func DecodeMoveResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeMoveResponse returns a decoder for responses returned by the storage move endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeMoveResponse may return the following errors:
- "not_available" (type *goa.ServiceError): http.StatusConflict
- "not_valid" (type *goa.ServiceError): http.StatusBadRequest
- "not_found" (type *storage.PackageNotFound): http.StatusNotFound
- "forbidden" (type storage.Forbidden): http.StatusForbidden
- "unauthorized" (type storage.Unauthorized): http.StatusUnauthorized
- error: internal error
func DecodeMoveStatusResponse ¶
func DecodeMoveStatusResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeMoveStatusResponse returns a decoder for responses returned by the storage move_status endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeMoveStatusResponse may return the following errors:
- "failed_dependency" (type *goa.ServiceError): http.StatusFailedDependency
- "not_found" (type *storage.PackageNotFound): http.StatusNotFound
- "forbidden" (type storage.Forbidden): http.StatusForbidden
- "unauthorized" (type storage.Unauthorized): http.StatusUnauthorized
- error: internal error
func DecodeRejectResponse ¶
func DecodeRejectResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeRejectResponse returns a decoder for responses returned by the storage reject endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeRejectResponse may return the following errors:
- "not_available" (type *goa.ServiceError): http.StatusConflict
- "not_valid" (type *goa.ServiceError): http.StatusBadRequest
- "not_found" (type *storage.PackageNotFound): http.StatusNotFound
- "forbidden" (type storage.Forbidden): http.StatusForbidden
- "unauthorized" (type storage.Unauthorized): http.StatusUnauthorized
- error: internal error
func DecodeShowLocationResponse ¶
func DecodeShowLocationResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeShowLocationResponse returns a decoder for responses returned by the storage show_location endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeShowLocationResponse may return the following errors:
- "not_found" (type *storage.LocationNotFound): http.StatusNotFound
- "forbidden" (type storage.Forbidden): http.StatusForbidden
- "unauthorized" (type storage.Unauthorized): http.StatusUnauthorized
- error: internal error
func DecodeShowResponse ¶
func DecodeShowResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeShowResponse returns a decoder for responses returned by the storage show endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeShowResponse may return the following errors:
- "not_found" (type *storage.PackageNotFound): http.StatusNotFound
- "forbidden" (type storage.Forbidden): http.StatusForbidden
- "unauthorized" (type storage.Unauthorized): http.StatusUnauthorized
- error: internal error
func DecodeSubmitResponse ¶
func DecodeSubmitResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeSubmitResponse returns a decoder for responses returned by the storage submit endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeSubmitResponse may return the following errors:
- "not_available" (type *goa.ServiceError): http.StatusConflict
- "not_valid" (type *goa.ServiceError): http.StatusBadRequest
- "forbidden" (type storage.Forbidden): http.StatusForbidden
- "unauthorized" (type storage.Unauthorized): http.StatusUnauthorized
- error: internal error
func DecodeUpdateResponse ¶
func DecodeUpdateResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeUpdateResponse returns a decoder for responses returned by the storage update endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeUpdateResponse may return the following errors:
- "not_available" (type *goa.ServiceError): http.StatusConflict
- "not_valid" (type *goa.ServiceError): http.StatusBadRequest
- "forbidden" (type storage.Forbidden): http.StatusForbidden
- "unauthorized" (type storage.Unauthorized): http.StatusUnauthorized
- error: internal error
func DownloadStoragePath ¶
DownloadStoragePath returns the URL path to the storage service download HTTP endpoint.
func EncodeAddLocationRequest ¶
func EncodeAddLocationRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeAddLocationRequest returns an encoder for requests sent to the storage add_location server.
func EncodeCreateRequest ¶
func EncodeCreateRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeCreateRequest returns an encoder for requests sent to the storage create server.
func EncodeDownloadRequest ¶
func EncodeDownloadRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeDownloadRequest returns an encoder for requests sent to the storage download server.
func EncodeLocationPackagesRequest ¶
func EncodeLocationPackagesRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeLocationPackagesRequest returns an encoder for requests sent to the storage location_packages server.
func EncodeLocationsRequest ¶
func EncodeLocationsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeLocationsRequest returns an encoder for requests sent to the storage locations server.
func EncodeMoveRequest ¶
EncodeMoveRequest returns an encoder for requests sent to the storage move server.
func EncodeMoveStatusRequest ¶
func EncodeMoveStatusRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeMoveStatusRequest returns an encoder for requests sent to the storage move_status server.
func EncodeRejectRequest ¶
func EncodeRejectRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeRejectRequest returns an encoder for requests sent to the storage reject server.
func EncodeShowLocationRequest ¶
func EncodeShowLocationRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeShowLocationRequest returns an encoder for requests sent to the storage show_location server.
func EncodeShowRequest ¶
EncodeShowRequest returns an encoder for requests sent to the storage show server.
func EncodeSubmitRequest ¶
func EncodeSubmitRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeSubmitRequest returns an encoder for requests sent to the storage submit server.
func EncodeUpdateRequest ¶
func EncodeUpdateRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeUpdateRequest returns an encoder for requests sent to the storage update server.
func LocationPackagesStoragePath ¶
LocationPackagesStoragePath returns the URL path to the storage service location_packages HTTP endpoint.
func LocationsStoragePath ¶
func LocationsStoragePath() string
LocationsStoragePath returns the URL path to the storage service locations HTTP endpoint.
func MoveStatusStoragePath ¶
MoveStatusStoragePath returns the URL path to the storage service move_status HTTP endpoint.
func MoveStoragePath ¶
MoveStoragePath returns the URL path to the storage service move HTTP endpoint.
func NewAddLocationForbidden ¶
NewAddLocationForbidden builds a storage service add_location endpoint forbidden error.
func NewAddLocationNotValid ¶
func NewAddLocationNotValid(body *AddLocationNotValidResponseBody) *goa.ServiceError
NewAddLocationNotValid builds a storage service add_location endpoint not_valid error.
func NewAddLocationResultCreated ¶
func NewAddLocationResultCreated(body *AddLocationResponseBody) *storage.AddLocationResult
NewAddLocationResultCreated builds a "storage" service "add_location" endpoint result from a HTTP "Created" response.
func NewAddLocationUnauthorized ¶
func NewAddLocationUnauthorized(body string) storage.Unauthorized
NewAddLocationUnauthorized builds a storage service add_location endpoint unauthorized error.
func NewCreateForbidden ¶
NewCreateForbidden builds a storage service create endpoint forbidden error.
func NewCreateNotValid ¶
func NewCreateNotValid(body *CreateNotValidResponseBody) *goa.ServiceError
NewCreateNotValid builds a storage service create endpoint not_valid error.
func NewCreatePackageOK ¶
func NewCreatePackageOK(body *CreateResponseBody) *storageviews.PackageView
NewCreatePackageOK builds a "storage" service "create" endpoint result from a HTTP "OK" response.
func NewCreateUnauthorized ¶
func NewCreateUnauthorized(body string) storage.Unauthorized
NewCreateUnauthorized builds a storage service create endpoint unauthorized error.
func NewDownloadForbidden ¶
NewDownloadForbidden builds a storage service download endpoint forbidden error.
func NewDownloadNotFound ¶
func NewDownloadNotFound(body *DownloadNotFoundResponseBody) *storage.PackageNotFound
NewDownloadNotFound builds a storage service download endpoint not_found error.
func NewDownloadUnauthorized ¶
func NewDownloadUnauthorized(body string) storage.Unauthorized
NewDownloadUnauthorized builds a storage service download endpoint unauthorized error.
func NewLocationPackagesForbidden ¶
NewLocationPackagesForbidden builds a storage service location_packages endpoint forbidden error.
func NewLocationPackagesNotFound ¶
func NewLocationPackagesNotFound(body *LocationPackagesNotFoundResponseBody) *storage.LocationNotFound
NewLocationPackagesNotFound builds a storage service location_packages endpoint not_found error.
func NewLocationPackagesNotValid ¶
func NewLocationPackagesNotValid(body *LocationPackagesNotValidResponseBody) *goa.ServiceError
NewLocationPackagesNotValid builds a storage service location_packages endpoint not_valid error.
func NewLocationPackagesPackageCollectionOK ¶
func NewLocationPackagesPackageCollectionOK(body LocationPackagesResponseBody) storageviews.PackageCollectionView
NewLocationPackagesPackageCollectionOK builds a "storage" service "location_packages" endpoint result from a HTTP "OK" response.
func NewLocationPackagesUnauthorized ¶
func NewLocationPackagesUnauthorized(body string) storage.Unauthorized
NewLocationPackagesUnauthorized builds a storage service location_packages endpoint unauthorized error.
func NewLocationsForbidden ¶
NewLocationsForbidden builds a storage service locations endpoint forbidden error.
func NewLocationsLocationCollectionOK ¶
func NewLocationsLocationCollectionOK(body LocationsResponseBody) storageviews.LocationCollectionView
NewLocationsLocationCollectionOK builds a "storage" service "locations" endpoint result from a HTTP "OK" response.
func NewLocationsUnauthorized ¶
func NewLocationsUnauthorized(body string) storage.Unauthorized
NewLocationsUnauthorized builds a storage service locations endpoint unauthorized error.
func NewMoveForbidden ¶
NewMoveForbidden builds a storage service move endpoint forbidden error.
func NewMoveNotAvailable ¶
func NewMoveNotAvailable(body *MoveNotAvailableResponseBody) *goa.ServiceError
NewMoveNotAvailable builds a storage service move endpoint not_available error.
func NewMoveNotFound ¶
func NewMoveNotFound(body *MoveNotFoundResponseBody) *storage.PackageNotFound
NewMoveNotFound builds a storage service move endpoint not_found error.
func NewMoveNotValid ¶
func NewMoveNotValid(body *MoveNotValidResponseBody) *goa.ServiceError
NewMoveNotValid builds a storage service move endpoint not_valid error.
func NewMoveStatusFailedDependency ¶
func NewMoveStatusFailedDependency(body *MoveStatusFailedDependencyResponseBody) *goa.ServiceError
NewMoveStatusFailedDependency builds a storage service move_status endpoint failed_dependency error.
func NewMoveStatusForbidden ¶
NewMoveStatusForbidden builds a storage service move_status endpoint forbidden error.
func NewMoveStatusNotFound ¶
func NewMoveStatusNotFound(body *MoveStatusNotFoundResponseBody) *storage.PackageNotFound
NewMoveStatusNotFound builds a storage service move_status endpoint not_found error.
func NewMoveStatusResultOK ¶
func NewMoveStatusResultOK(body *MoveStatusResponseBody) *storage.MoveStatusResult
NewMoveStatusResultOK builds a "storage" service "move_status" endpoint result from a HTTP "OK" response.
func NewMoveStatusUnauthorized ¶
func NewMoveStatusUnauthorized(body string) storage.Unauthorized
NewMoveStatusUnauthorized builds a storage service move_status endpoint unauthorized error.
func NewMoveUnauthorized ¶
func NewMoveUnauthorized(body string) storage.Unauthorized
NewMoveUnauthorized builds a storage service move endpoint unauthorized error.
func NewRejectForbidden ¶
NewRejectForbidden builds a storage service reject endpoint forbidden error.
func NewRejectNotAvailable ¶
func NewRejectNotAvailable(body *RejectNotAvailableResponseBody) *goa.ServiceError
NewRejectNotAvailable builds a storage service reject endpoint not_available error.
func NewRejectNotFound ¶
func NewRejectNotFound(body *RejectNotFoundResponseBody) *storage.PackageNotFound
NewRejectNotFound builds a storage service reject endpoint not_found error.
func NewRejectNotValid ¶
func NewRejectNotValid(body *RejectNotValidResponseBody) *goa.ServiceError
NewRejectNotValid builds a storage service reject endpoint not_valid error.
func NewRejectUnauthorized ¶
func NewRejectUnauthorized(body string) storage.Unauthorized
NewRejectUnauthorized builds a storage service reject endpoint unauthorized error.
func NewShowForbidden ¶
NewShowForbidden builds a storage service show endpoint forbidden error.
func NewShowLocationForbidden ¶
NewShowLocationForbidden builds a storage service show_location endpoint forbidden error.
func NewShowLocationLocationOK ¶
func NewShowLocationLocationOK(body *ShowLocationResponseBody) *storageviews.LocationView
NewShowLocationLocationOK builds a "storage" service "show_location" endpoint result from a HTTP "OK" response.
func NewShowLocationNotFound ¶
func NewShowLocationNotFound(body *ShowLocationNotFoundResponseBody) *storage.LocationNotFound
NewShowLocationNotFound builds a storage service show_location endpoint not_found error.
func NewShowLocationUnauthorized ¶
func NewShowLocationUnauthorized(body string) storage.Unauthorized
NewShowLocationUnauthorized builds a storage service show_location endpoint unauthorized error.
func NewShowNotFound ¶
func NewShowNotFound(body *ShowNotFoundResponseBody) *storage.PackageNotFound
NewShowNotFound builds a storage service show endpoint not_found error.
func NewShowPackageOK ¶
func NewShowPackageOK(body *ShowResponseBody) *storageviews.PackageView
NewShowPackageOK builds a "storage" service "show" endpoint result from a HTTP "OK" response.
func NewShowUnauthorized ¶
func NewShowUnauthorized(body string) storage.Unauthorized
NewShowUnauthorized builds a storage service show endpoint unauthorized error.
func NewSubmitForbidden ¶
NewSubmitForbidden builds a storage service submit endpoint forbidden error.
func NewSubmitNotAvailable ¶
func NewSubmitNotAvailable(body *SubmitNotAvailableResponseBody) *goa.ServiceError
NewSubmitNotAvailable builds a storage service submit endpoint not_available error.
func NewSubmitNotValid ¶
func NewSubmitNotValid(body *SubmitNotValidResponseBody) *goa.ServiceError
NewSubmitNotValid builds a storage service submit endpoint not_valid error.
func NewSubmitResultAccepted ¶
func NewSubmitResultAccepted(body *SubmitResponseBody) *storage.SubmitResult
NewSubmitResultAccepted builds a "storage" service "submit" endpoint result from a HTTP "Accepted" response.
func NewSubmitUnauthorized ¶
func NewSubmitUnauthorized(body string) storage.Unauthorized
NewSubmitUnauthorized builds a storage service submit endpoint unauthorized error.
func NewUpdateForbidden ¶
NewUpdateForbidden builds a storage service update endpoint forbidden error.
func NewUpdateNotAvailable ¶
func NewUpdateNotAvailable(body *UpdateNotAvailableResponseBody) *goa.ServiceError
NewUpdateNotAvailable builds a storage service update endpoint not_available error.
func NewUpdateNotValid ¶
func NewUpdateNotValid(body *UpdateNotValidResponseBody) *goa.ServiceError
NewUpdateNotValid builds a storage service update endpoint not_valid error.
func NewUpdateUnauthorized ¶
func NewUpdateUnauthorized(body string) storage.Unauthorized
NewUpdateUnauthorized builds a storage service update endpoint unauthorized error.
func RejectStoragePath ¶
RejectStoragePath returns the URL path to the storage service reject HTTP endpoint.
func ShowLocationStoragePath ¶
ShowLocationStoragePath returns the URL path to the storage service show_location HTTP endpoint.
func ShowStoragePath ¶
ShowStoragePath returns the URL path to the storage service show HTTP endpoint.
func SubmitStoragePath ¶
SubmitStoragePath returns the URL path to the storage service submit HTTP endpoint.
func UpdateStoragePath ¶
UpdateStoragePath returns the URL path to the storage service update HTTP endpoint.
func ValidateAddLocationNotValidResponseBody ¶
func ValidateAddLocationNotValidResponseBody(body *AddLocationNotValidResponseBody) (err error)
ValidateAddLocationNotValidResponseBody runs the validations defined on add_location_not_valid_response_body
func ValidateAddLocationResponseBody ¶
func ValidateAddLocationResponseBody(body *AddLocationResponseBody) (err error)
ValidateAddLocationResponseBody runs the validations defined on add_location_response_body
func ValidateCreateNotValidResponseBody ¶
func ValidateCreateNotValidResponseBody(body *CreateNotValidResponseBody) (err error)
ValidateCreateNotValidResponseBody runs the validations defined on create_not_valid_response_body
func ValidateDownloadNotFoundResponseBody ¶
func ValidateDownloadNotFoundResponseBody(body *DownloadNotFoundResponseBody) (err error)
ValidateDownloadNotFoundResponseBody runs the validations defined on download_not_found_response_body
func ValidateLocationPackagesNotFoundResponseBody ¶
func ValidateLocationPackagesNotFoundResponseBody(body *LocationPackagesNotFoundResponseBody) (err error)
ValidateLocationPackagesNotFoundResponseBody runs the validations defined on location_packages_not_found_response_body
func ValidateLocationPackagesNotValidResponseBody ¶
func ValidateLocationPackagesNotValidResponseBody(body *LocationPackagesNotValidResponseBody) (err error)
ValidateLocationPackagesNotValidResponseBody runs the validations defined on location_packages_not_valid_response_body
func ValidateLocationResponse ¶
func ValidateLocationResponse(body *LocationResponse) (err error)
ValidateLocationResponse runs the validations defined on LocationResponse
func ValidateMoveNotAvailableResponseBody ¶
func ValidateMoveNotAvailableResponseBody(body *MoveNotAvailableResponseBody) (err error)
ValidateMoveNotAvailableResponseBody runs the validations defined on move_not_available_response_body
func ValidateMoveNotFoundResponseBody ¶
func ValidateMoveNotFoundResponseBody(body *MoveNotFoundResponseBody) (err error)
ValidateMoveNotFoundResponseBody runs the validations defined on move_not_found_response_body
func ValidateMoveNotValidResponseBody ¶
func ValidateMoveNotValidResponseBody(body *MoveNotValidResponseBody) (err error)
ValidateMoveNotValidResponseBody runs the validations defined on move_not_valid_response_body
func ValidateMoveStatusFailedDependencyResponseBody ¶
func ValidateMoveStatusFailedDependencyResponseBody(body *MoveStatusFailedDependencyResponseBody) (err error)
ValidateMoveStatusFailedDependencyResponseBody runs the validations defined on move_status_failed_dependency_response_body
func ValidateMoveStatusNotFoundResponseBody ¶
func ValidateMoveStatusNotFoundResponseBody(body *MoveStatusNotFoundResponseBody) (err error)
ValidateMoveStatusNotFoundResponseBody runs the validations defined on move_status_not_found_response_body
func ValidateMoveStatusResponseBody ¶
func ValidateMoveStatusResponseBody(body *MoveStatusResponseBody) (err error)
ValidateMoveStatusResponseBody runs the validations defined on move_status_response_body
func ValidatePackageResponse ¶
func ValidatePackageResponse(body *PackageResponse) (err error)
ValidatePackageResponse runs the validations defined on PackageResponse
func ValidateRejectNotAvailableResponseBody ¶
func ValidateRejectNotAvailableResponseBody(body *RejectNotAvailableResponseBody) (err error)
ValidateRejectNotAvailableResponseBody runs the validations defined on reject_not_available_response_body
func ValidateRejectNotFoundResponseBody ¶
func ValidateRejectNotFoundResponseBody(body *RejectNotFoundResponseBody) (err error)
ValidateRejectNotFoundResponseBody runs the validations defined on reject_not_found_response_body
func ValidateRejectNotValidResponseBody ¶
func ValidateRejectNotValidResponseBody(body *RejectNotValidResponseBody) (err error)
ValidateRejectNotValidResponseBody runs the validations defined on reject_not_valid_response_body
func ValidateShowLocationNotFoundResponseBody ¶
func ValidateShowLocationNotFoundResponseBody(body *ShowLocationNotFoundResponseBody) (err error)
ValidateShowLocationNotFoundResponseBody runs the validations defined on show_location_not_found_response_body
func ValidateShowNotFoundResponseBody ¶
func ValidateShowNotFoundResponseBody(body *ShowNotFoundResponseBody) (err error)
ValidateShowNotFoundResponseBody runs the validations defined on show_not_found_response_body
func ValidateSubmitNotAvailableResponseBody ¶
func ValidateSubmitNotAvailableResponseBody(body *SubmitNotAvailableResponseBody) (err error)
ValidateSubmitNotAvailableResponseBody runs the validations defined on submit_not_available_response_body
func ValidateSubmitNotValidResponseBody ¶
func ValidateSubmitNotValidResponseBody(body *SubmitNotValidResponseBody) (err error)
ValidateSubmitNotValidResponseBody runs the validations defined on submit_not_valid_response_body
func ValidateSubmitResponseBody ¶
func ValidateSubmitResponseBody(body *SubmitResponseBody) (err error)
ValidateSubmitResponseBody runs the validations defined on SubmitResponseBody
func ValidateUpdateNotAvailableResponseBody ¶
func ValidateUpdateNotAvailableResponseBody(body *UpdateNotAvailableResponseBody) (err error)
ValidateUpdateNotAvailableResponseBody runs the validations defined on update_not_available_response_body
func ValidateUpdateNotValidResponseBody ¶
func ValidateUpdateNotValidResponseBody(body *UpdateNotValidResponseBody) (err error)
ValidateUpdateNotValidResponseBody runs the validations defined on update_not_valid_response_body
Types ¶
type AddLocationNotValidResponseBody ¶
type AddLocationNotValidResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
AddLocationNotValidResponseBody is the type of the "storage" service "add_location" endpoint HTTP response body for the "not_valid" error.
type AddLocationRequestBody ¶
type AddLocationRequestBody struct { Name string `form:"name" json:"name" xml:"name"` Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` Source string `form:"source" json:"source" xml:"source"` Purpose string `form:"purpose" json:"purpose" xml:"purpose"` Config *struct { // Union type name, one of: // - "amss" // - "s3" // - "sftp" // - "url" Type string `form:"Type" json:"Type" xml:"Type"` // JSON encoded union value Value string `form:"Value" json:"Value" xml:"Value"` } `form:"config,omitempty" json:"config,omitempty" xml:"config,omitempty"` }
AddLocationRequestBody is the type of the "storage" service "add_location" endpoint HTTP request body.
func NewAddLocationRequestBody ¶
func NewAddLocationRequestBody(p *storage.AddLocationPayload) *AddLocationRequestBody
NewAddLocationRequestBody builds the HTTP request body from the payload of the "add_location" endpoint of the "storage" service.
type AddLocationResponseBody ¶
type AddLocationResponseBody struct {
UUID *string `form:"uuid,omitempty" json:"uuid,omitempty" xml:"uuid,omitempty"`
}
AddLocationResponseBody is the type of the "storage" service "add_location" endpoint HTTP response body.
type Client ¶
type Client struct { // Create Doer is the HTTP client used to make requests to the create endpoint. CreateDoer goahttp.Doer // Submit Doer is the HTTP client used to make requests to the submit endpoint. SubmitDoer goahttp.Doer // Update Doer is the HTTP client used to make requests to the update endpoint. UpdateDoer goahttp.Doer // Download Doer is the HTTP client used to make requests to the download // endpoint. DownloadDoer goahttp.Doer // Move Doer is the HTTP client used to make requests to the move endpoint. MoveDoer goahttp.Doer // MoveStatus Doer is the HTTP client used to make requests to the move_status // endpoint. MoveStatusDoer goahttp.Doer // Reject Doer is the HTTP client used to make requests to the reject endpoint. RejectDoer goahttp.Doer // Show Doer is the HTTP client used to make requests to the show endpoint. ShowDoer goahttp.Doer // Locations Doer is the HTTP client used to make requests to the locations // endpoint. LocationsDoer goahttp.Doer // AddLocation Doer is the HTTP client used to make requests to the // add_location endpoint. AddLocationDoer goahttp.Doer // ShowLocation Doer is the HTTP client used to make requests to the // show_location endpoint. ShowLocationDoer goahttp.Doer // LocationPackages Doer is the HTTP client used to make requests to the // location_packages endpoint. LocationPackagesDoer goahttp.Doer // CORS Doer is the HTTP client used to make requests to the endpoint. CORSDoer goahttp.Doer // RestoreResponseBody controls whether the response bodies are reset after // decoding so they can be read again. RestoreResponseBody bool // contains filtered or unexported fields }
Client lists the storage service endpoint HTTP clients.
func NewClient ¶
func NewClient( scheme string, host string, doer goahttp.Doer, enc func(*http.Request) goahttp.Encoder, dec func(*http.Response) goahttp.Decoder, restoreBody bool, ) *Client
NewClient instantiates HTTP clients for all the storage service servers.
func (*Client) AddLocation ¶
AddLocation returns an endpoint that makes HTTP requests to the storage service add_location server.
func (*Client) BuildAddLocationRequest ¶
BuildAddLocationRequest instantiates a HTTP request object with method and path set to call the "storage" service "add_location" endpoint
func (*Client) BuildCreateRequest ¶
BuildCreateRequest instantiates a HTTP request object with method and path set to call the "storage" service "create" endpoint
func (*Client) BuildDownloadRequest ¶
BuildDownloadRequest instantiates a HTTP request object with method and path set to call the "storage" service "download" endpoint
func (*Client) BuildLocationPackagesRequest ¶
BuildLocationPackagesRequest instantiates a HTTP request object with method and path set to call the "storage" service "location_packages" endpoint
func (*Client) BuildLocationsRequest ¶
BuildLocationsRequest instantiates a HTTP request object with method and path set to call the "storage" service "locations" endpoint
func (*Client) BuildMoveRequest ¶
BuildMoveRequest instantiates a HTTP request object with method and path set to call the "storage" service "move" endpoint
func (*Client) BuildMoveStatusRequest ¶
BuildMoveStatusRequest instantiates a HTTP request object with method and path set to call the "storage" service "move_status" endpoint
func (*Client) BuildRejectRequest ¶
BuildRejectRequest instantiates a HTTP request object with method and path set to call the "storage" service "reject" endpoint
func (*Client) BuildShowLocationRequest ¶
BuildShowLocationRequest instantiates a HTTP request object with method and path set to call the "storage" service "show_location" endpoint
func (*Client) BuildShowRequest ¶
BuildShowRequest instantiates a HTTP request object with method and path set to call the "storage" service "show" endpoint
func (*Client) BuildSubmitRequest ¶
BuildSubmitRequest instantiates a HTTP request object with method and path set to call the "storage" service "submit" endpoint
func (*Client) BuildUpdateRequest ¶
BuildUpdateRequest instantiates a HTTP request object with method and path set to call the "storage" service "update" endpoint
func (*Client) Create ¶
Create returns an endpoint that makes HTTP requests to the storage service create server.
func (*Client) Download ¶
Download returns an endpoint that makes HTTP requests to the storage service download server.
func (*Client) LocationPackages ¶
LocationPackages returns an endpoint that makes HTTP requests to the storage service location_packages server.
func (*Client) Locations ¶
Locations returns an endpoint that makes HTTP requests to the storage service locations server.
func (*Client) Move ¶
Move returns an endpoint that makes HTTP requests to the storage service move server.
func (*Client) MoveStatus ¶
MoveStatus returns an endpoint that makes HTTP requests to the storage service move_status server.
func (*Client) Reject ¶
Reject returns an endpoint that makes HTTP requests to the storage service reject server.
func (*Client) Show ¶
Show returns an endpoint that makes HTTP requests to the storage service show server.
func (*Client) ShowLocation ¶
ShowLocation returns an endpoint that makes HTTP requests to the storage service show_location server.
type CreateNotValidResponseBody ¶
type CreateNotValidResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
CreateNotValidResponseBody is the type of the "storage" service "create" endpoint HTTP response body for the "not_valid" error.
type CreateRequestBody ¶
type CreateRequestBody struct { // Identifier of AIP AipID string `form:"aip_id" json:"aip_id" xml:"aip_id"` // Name of the package Name string `form:"name" json:"name" xml:"name"` // ObjectKey of AIP ObjectKey string `form:"object_key" json:"object_key" xml:"object_key"` // Status of the package Status string `form:"status" json:"status" xml:"status"` // Identifier of the package's storage location LocationID *uuid.UUID `form:"location_id,omitempty" json:"location_id,omitempty" xml:"location_id,omitempty"` }
CreateRequestBody is the type of the "storage" service "create" endpoint HTTP request body.
func NewCreateRequestBody ¶
func NewCreateRequestBody(p *storage.CreatePayload) *CreateRequestBody
NewCreateRequestBody builds the HTTP request body from the payload of the "create" endpoint of the "storage" service.
type CreateResponseBody ¶
type CreateResponseBody struct { Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` AipID *uuid.UUID `form:"aip_id,omitempty" json:"aip_id,omitempty" xml:"aip_id,omitempty"` // Status of the package Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"` ObjectKey *uuid.UUID `form:"object_key,omitempty" json:"object_key,omitempty" xml:"object_key,omitempty"` // Identifier of storage location LocationID *uuid.UUID `form:"location_id,omitempty" json:"location_id,omitempty" xml:"location_id,omitempty"` // Creation datetime CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"` }
CreateResponseBody is the type of the "storage" service "create" endpoint HTTP response body.
type DownloadNotFoundResponseBody ¶
type DownloadNotFoundResponseBody struct { // Message of error Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Identifier of missing package AipID *uuid.UUID `form:"aip_id,omitempty" json:"aip_id,omitempty" xml:"aip_id,omitempty"` }
DownloadNotFoundResponseBody is the type of the "storage" service "download" endpoint HTTP response body for the "not_found" error.
type LocationPackagesNotFoundResponseBody ¶
type LocationPackagesNotFoundResponseBody struct { // Message of error Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` UUID *uuid.UUID `form:"uuid,omitempty" json:"uuid,omitempty" xml:"uuid,omitempty"` }
LocationPackagesNotFoundResponseBody is the type of the "storage" service "location_packages" endpoint HTTP response body for the "not_found" error.
type LocationPackagesNotValidResponseBody ¶
type LocationPackagesNotValidResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
LocationPackagesNotValidResponseBody is the type of the "storage" service "location_packages" endpoint HTTP response body for the "not_valid" error.
type LocationPackagesResponseBody ¶
type LocationPackagesResponseBody []*PackageResponse
LocationPackagesResponseBody is the type of the "storage" service "location_packages" endpoint HTTP response body.
type LocationResponse ¶
type LocationResponse struct { // Name of location Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // Description of the location Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` // Data source of the location Source *string `form:"source,omitempty" json:"source,omitempty" xml:"source,omitempty"` // Purpose of the location Purpose *string `form:"purpose,omitempty" json:"purpose,omitempty" xml:"purpose,omitempty"` UUID *uuid.UUID `form:"uuid,omitempty" json:"uuid,omitempty" xml:"uuid,omitempty"` Config *struct { // Union type name, one of: // - "amss" // - "s3" // - "sftp" // - "url" Type *string `form:"Type" json:"Type" xml:"Type"` // JSON encoded union value Value *string `form:"Value" json:"Value" xml:"Value"` } `form:"config,omitempty" json:"config,omitempty" xml:"config,omitempty"` // Creation datetime CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"` }
LocationResponse is used to define fields on response body types.
type LocationsResponseBody ¶
type LocationsResponseBody []*LocationResponse
LocationsResponseBody is the type of the "storage" service "locations" endpoint HTTP response body.
type MoveNotAvailableResponseBody ¶
type MoveNotAvailableResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
MoveNotAvailableResponseBody is the type of the "storage" service "move" endpoint HTTP response body for the "not_available" error.
type MoveNotFoundResponseBody ¶
type MoveNotFoundResponseBody struct { // Message of error Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Identifier of missing package AipID *uuid.UUID `form:"aip_id,omitempty" json:"aip_id,omitempty" xml:"aip_id,omitempty"` }
MoveNotFoundResponseBody is the type of the "storage" service "move" endpoint HTTP response body for the "not_found" error.
type MoveNotValidResponseBody ¶
type MoveNotValidResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
MoveNotValidResponseBody is the type of the "storage" service "move" endpoint HTTP response body for the "not_valid" error.
type MoveRequestBody ¶
type MoveRequestBody struct { // Identifier of storage location LocationID uuid.UUID `form:"location_id" json:"location_id" xml:"location_id"` }
MoveRequestBody is the type of the "storage" service "move" endpoint HTTP request body.
func NewMoveRequestBody ¶
func NewMoveRequestBody(p *storage.MovePayload) *MoveRequestBody
NewMoveRequestBody builds the HTTP request body from the payload of the "move" endpoint of the "storage" service.
type MoveStatusFailedDependencyResponseBody ¶
type MoveStatusFailedDependencyResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
MoveStatusFailedDependencyResponseBody is the type of the "storage" service "move_status" endpoint HTTP response body for the "failed_dependency" error.
type MoveStatusNotFoundResponseBody ¶
type MoveStatusNotFoundResponseBody struct { // Message of error Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Identifier of missing package AipID *uuid.UUID `form:"aip_id,omitempty" json:"aip_id,omitempty" xml:"aip_id,omitempty"` }
MoveStatusNotFoundResponseBody is the type of the "storage" service "move_status" endpoint HTTP response body for the "not_found" error.
type MoveStatusResponseBody ¶
type MoveStatusResponseBody struct {
Done *bool `form:"done,omitempty" json:"done,omitempty" xml:"done,omitempty"`
}
MoveStatusResponseBody is the type of the "storage" service "move_status" endpoint HTTP response body.
type PackageResponse ¶
type PackageResponse struct { Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` AipID *uuid.UUID `form:"aip_id,omitempty" json:"aip_id,omitempty" xml:"aip_id,omitempty"` // Status of the package Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"` ObjectKey *uuid.UUID `form:"object_key,omitempty" json:"object_key,omitempty" xml:"object_key,omitempty"` // Identifier of storage location LocationID *uuid.UUID `form:"location_id,omitempty" json:"location_id,omitempty" xml:"location_id,omitempty"` // Creation datetime CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"` }
PackageResponse is used to define fields on response body types.
type RejectNotAvailableResponseBody ¶
type RejectNotAvailableResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
RejectNotAvailableResponseBody is the type of the "storage" service "reject" endpoint HTTP response body for the "not_available" error.
type RejectNotFoundResponseBody ¶
type RejectNotFoundResponseBody struct { // Message of error Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Identifier of missing package AipID *uuid.UUID `form:"aip_id,omitempty" json:"aip_id,omitempty" xml:"aip_id,omitempty"` }
RejectNotFoundResponseBody is the type of the "storage" service "reject" endpoint HTTP response body for the "not_found" error.
type RejectNotValidResponseBody ¶
type RejectNotValidResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
RejectNotValidResponseBody is the type of the "storage" service "reject" endpoint HTTP response body for the "not_valid" error.
type ShowLocationNotFoundResponseBody ¶
type ShowLocationNotFoundResponseBody struct { // Message of error Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` UUID *uuid.UUID `form:"uuid,omitempty" json:"uuid,omitempty" xml:"uuid,omitempty"` }
ShowLocationNotFoundResponseBody is the type of the "storage" service "show_location" endpoint HTTP response body for the "not_found" error.
type ShowLocationResponseBody ¶
type ShowLocationResponseBody struct { // Name of location Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // Description of the location Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` // Data source of the location Source *string `form:"source,omitempty" json:"source,omitempty" xml:"source,omitempty"` // Purpose of the location Purpose *string `form:"purpose,omitempty" json:"purpose,omitempty" xml:"purpose,omitempty"` UUID *uuid.UUID `form:"uuid,omitempty" json:"uuid,omitempty" xml:"uuid,omitempty"` Config *struct { // Union type name, one of: // - "amss" // - "s3" // - "sftp" // - "url" Type *string `form:"Type" json:"Type" xml:"Type"` // JSON encoded union value Value *string `form:"Value" json:"Value" xml:"Value"` } `form:"config,omitempty" json:"config,omitempty" xml:"config,omitempty"` // Creation datetime CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"` }
ShowLocationResponseBody is the type of the "storage" service "show_location" endpoint HTTP response body.
type ShowNotFoundResponseBody ¶
type ShowNotFoundResponseBody struct { // Message of error Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Identifier of missing package AipID *uuid.UUID `form:"aip_id,omitempty" json:"aip_id,omitempty" xml:"aip_id,omitempty"` }
ShowNotFoundResponseBody is the type of the "storage" service "show" endpoint HTTP response body for the "not_found" error.
type ShowResponseBody ¶
type ShowResponseBody struct { Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` AipID *uuid.UUID `form:"aip_id,omitempty" json:"aip_id,omitempty" xml:"aip_id,omitempty"` // Status of the package Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"` ObjectKey *uuid.UUID `form:"object_key,omitempty" json:"object_key,omitempty" xml:"object_key,omitempty"` // Identifier of storage location LocationID *uuid.UUID `form:"location_id,omitempty" json:"location_id,omitempty" xml:"location_id,omitempty"` // Creation datetime CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"` }
ShowResponseBody is the type of the "storage" service "show" endpoint HTTP response body.
type SubmitNotAvailableResponseBody ¶
type SubmitNotAvailableResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
SubmitNotAvailableResponseBody is the type of the "storage" service "submit" endpoint HTTP response body for the "not_available" error.
type SubmitNotValidResponseBody ¶
type SubmitNotValidResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
SubmitNotValidResponseBody is the type of the "storage" service "submit" endpoint HTTP response body for the "not_valid" error.
type SubmitRequestBody ¶
type SubmitRequestBody struct {
Name string `form:"name" json:"name" xml:"name"`
}
SubmitRequestBody is the type of the "storage" service "submit" endpoint HTTP request body.
func NewSubmitRequestBody ¶
func NewSubmitRequestBody(p *storage.SubmitPayload) *SubmitRequestBody
NewSubmitRequestBody builds the HTTP request body from the payload of the "submit" endpoint of the "storage" service.
type SubmitResponseBody ¶
type SubmitResponseBody struct {
URL *string `form:"url,omitempty" json:"url,omitempty" xml:"url,omitempty"`
}
SubmitResponseBody is the type of the "storage" service "submit" endpoint HTTP response body.
type UpdateNotAvailableResponseBody ¶
type UpdateNotAvailableResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
UpdateNotAvailableResponseBody is the type of the "storage" service "update" endpoint HTTP response body for the "not_available" error.
type UpdateNotValidResponseBody ¶
type UpdateNotValidResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
UpdateNotValidResponseBody is the type of the "storage" service "update" endpoint HTTP response body for the "not_valid" error.