client

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

func DownloadStoragePath(aipID string) string

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

func EncodeMoveRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

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

func EncodeShowRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

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

func LocationPackagesStoragePath(uuid string) string

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

func MoveStatusStoragePath(aipID string) string

MoveStatusStoragePath returns the URL path to the storage service move_status HTTP endpoint.

func MoveStoragePath

func MoveStoragePath(aipID string) string

MoveStoragePath returns the URL path to the storage service move HTTP endpoint.

func NewAddLocationForbidden

func NewAddLocationForbidden(body string) storage.Forbidden

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

func NewCreateForbidden(body string) storage.Forbidden

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

func NewDownloadForbidden(body string) storage.Forbidden

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

func NewLocationPackagesForbidden(body string) storage.Forbidden

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

func NewLocationsForbidden(body string) storage.Forbidden

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

func NewMoveForbidden(body string) storage.Forbidden

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

func NewMoveStatusForbidden(body string) storage.Forbidden

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

func NewRejectForbidden(body string) storage.Forbidden

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

func NewShowForbidden(body string) storage.Forbidden

NewShowForbidden builds a storage service show endpoint forbidden error.

func NewShowLocationForbidden

func NewShowLocationForbidden(body string) storage.Forbidden

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

func NewSubmitForbidden(body string) storage.Forbidden

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

func NewUpdateForbidden(body string) storage.Forbidden

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

func RejectStoragePath(aipID string) string

RejectStoragePath returns the URL path to the storage service reject HTTP endpoint.

func ShowLocationStoragePath

func ShowLocationStoragePath(uuid string) string

ShowLocationStoragePath returns the URL path to the storage service show_location HTTP endpoint.

func ShowStoragePath

func ShowStoragePath(aipID string) string

ShowStoragePath returns the URL path to the storage service show HTTP endpoint.

func SubmitStoragePath

func SubmitStoragePath(aipID string) string

SubmitStoragePath returns the URL path to the storage service submit HTTP endpoint.

func UpdateStoragePath

func UpdateStoragePath(aipID string) string

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

func (c *Client) AddLocation() goa.Endpoint

AddLocation returns an endpoint that makes HTTP requests to the storage service add_location server.

func (*Client) BuildAddLocationRequest

func (c *Client) BuildAddLocationRequest(ctx context.Context, v any) (*http.Request, error)

BuildAddLocationRequest instantiates a HTTP request object with method and path set to call the "storage" service "add_location" endpoint

func (*Client) BuildCreateRequest

func (c *Client) BuildCreateRequest(ctx context.Context, v any) (*http.Request, error)

BuildCreateRequest instantiates a HTTP request object with method and path set to call the "storage" service "create" endpoint

func (*Client) BuildDownloadRequest

func (c *Client) BuildDownloadRequest(ctx context.Context, v any) (*http.Request, error)

BuildDownloadRequest instantiates a HTTP request object with method and path set to call the "storage" service "download" endpoint

func (*Client) BuildLocationPackagesRequest

func (c *Client) BuildLocationPackagesRequest(ctx context.Context, v any) (*http.Request, error)

BuildLocationPackagesRequest instantiates a HTTP request object with method and path set to call the "storage" service "location_packages" endpoint

func (*Client) BuildLocationsRequest

func (c *Client) BuildLocationsRequest(ctx context.Context, v any) (*http.Request, error)

BuildLocationsRequest instantiates a HTTP request object with method and path set to call the "storage" service "locations" endpoint

func (*Client) BuildMoveRequest

func (c *Client) BuildMoveRequest(ctx context.Context, v any) (*http.Request, error)

BuildMoveRequest instantiates a HTTP request object with method and path set to call the "storage" service "move" endpoint

func (*Client) BuildMoveStatusRequest

func (c *Client) BuildMoveStatusRequest(ctx context.Context, v any) (*http.Request, error)

BuildMoveStatusRequest instantiates a HTTP request object with method and path set to call the "storage" service "move_status" endpoint

func (*Client) BuildRejectRequest

func (c *Client) BuildRejectRequest(ctx context.Context, v any) (*http.Request, error)

BuildRejectRequest instantiates a HTTP request object with method and path set to call the "storage" service "reject" endpoint

func (*Client) BuildShowLocationRequest

func (c *Client) BuildShowLocationRequest(ctx context.Context, v any) (*http.Request, error)

BuildShowLocationRequest instantiates a HTTP request object with method and path set to call the "storage" service "show_location" endpoint

func (*Client) BuildShowRequest

func (c *Client) BuildShowRequest(ctx context.Context, v any) (*http.Request, error)

BuildShowRequest instantiates a HTTP request object with method and path set to call the "storage" service "show" endpoint

func (*Client) BuildSubmitRequest

func (c *Client) BuildSubmitRequest(ctx context.Context, v any) (*http.Request, error)

BuildSubmitRequest instantiates a HTTP request object with method and path set to call the "storage" service "submit" endpoint

func (*Client) BuildUpdateRequest

func (c *Client) BuildUpdateRequest(ctx context.Context, v any) (*http.Request, error)

BuildUpdateRequest instantiates a HTTP request object with method and path set to call the "storage" service "update" endpoint

func (*Client) Create

func (c *Client) Create() goa.Endpoint

Create returns an endpoint that makes HTTP requests to the storage service create server.

func (*Client) Download

func (c *Client) Download() goa.Endpoint

Download returns an endpoint that makes HTTP requests to the storage service download server.

func (*Client) LocationPackages

func (c *Client) LocationPackages() goa.Endpoint

LocationPackages returns an endpoint that makes HTTP requests to the storage service location_packages server.

func (*Client) Locations

func (c *Client) Locations() goa.Endpoint

Locations returns an endpoint that makes HTTP requests to the storage service locations server.

func (*Client) Move

func (c *Client) Move() goa.Endpoint

Move returns an endpoint that makes HTTP requests to the storage service move server.

func (*Client) MoveStatus

func (c *Client) MoveStatus() goa.Endpoint

MoveStatus returns an endpoint that makes HTTP requests to the storage service move_status server.

func (*Client) Reject

func (c *Client) Reject() goa.Endpoint

Reject returns an endpoint that makes HTTP requests to the storage service reject server.

func (*Client) Show

func (c *Client) Show() goa.Endpoint

Show returns an endpoint that makes HTTP requests to the storage service show server.

func (*Client) ShowLocation

func (c *Client) ShowLocation() goa.Endpoint

ShowLocation returns an endpoint that makes HTTP requests to the storage service show_location server.

func (*Client) Submit

func (c *Client) Submit() goa.Endpoint

Submit returns an endpoint that makes HTTP requests to the storage service submit server.

func (*Client) Update

func (c *Client) Update() goa.Endpoint

Update returns an endpoint that makes HTTP requests to the storage service update 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL