Documentation ¶
Index ¶
- func AddLocationStoragePath() string
- func CreateStoragePath() string
- func DecodeAddLocationRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
- func DecodeCreateRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
- func DecodeDownloadRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
- func DecodeLocationPackagesRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
- func DecodeLocationsRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
- func DecodeMoveRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
- func DecodeMoveStatusRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
- func DecodeRejectRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
- func DecodeShowLocationRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
- func DecodeShowRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
- func DecodeSubmitRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
- func DecodeUpdateRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
- func DownloadStoragePath(aipID string) string
- func EncodeAddLocationError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeAddLocationResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
- func EncodeCreateError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeCreateResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
- func EncodeDownloadError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeDownloadResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
- func EncodeLocationPackagesError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeLocationPackagesResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
- func EncodeLocationsError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeLocationsResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
- func EncodeMoveError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeMoveResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
- func EncodeMoveStatusError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeMoveStatusResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
- func EncodeRejectError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeRejectResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
- func EncodeShowError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeShowLocationError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeShowLocationResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
- func EncodeShowResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
- func EncodeSubmitError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeSubmitResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
- func EncodeUpdateError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, ...) func(context.Context, http.ResponseWriter, error) error
- func EncodeUpdateResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
- func HandleStorageOrigin(h http.Handler) http.Handler
- func LocationPackagesStoragePath(uuid string) string
- func LocationsStoragePath() string
- func Mount(mux goahttp.Muxer, h *Server)
- func MountAddLocationHandler(mux goahttp.Muxer, h http.Handler)
- func MountCORSHandler(mux goahttp.Muxer, h http.Handler)
- func MountCreateHandler(mux goahttp.Muxer, h http.Handler)
- func MountDownloadHandler(mux goahttp.Muxer, h http.Handler)
- func MountLocationPackagesHandler(mux goahttp.Muxer, h http.Handler)
- func MountLocationsHandler(mux goahttp.Muxer, h http.Handler)
- func MountMoveHandler(mux goahttp.Muxer, h http.Handler)
- func MountMoveStatusHandler(mux goahttp.Muxer, h http.Handler)
- func MountRejectHandler(mux goahttp.Muxer, h http.Handler)
- func MountShowHandler(mux goahttp.Muxer, h http.Handler)
- func MountShowLocationHandler(mux goahttp.Muxer, h http.Handler)
- func MountSubmitHandler(mux goahttp.Muxer, h http.Handler)
- func MountUpdateHandler(mux goahttp.Muxer, h http.Handler)
- func MoveStatusStoragePath(aipID string) string
- func MoveStoragePath(aipID string) string
- func NewAddLocationHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewAddLocationPayload(body *AddLocationRequestBody, token *string) *storage.AddLocationPayload
- func NewCORSHandler() http.Handler
- func NewCreateHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewCreatePayload(body *CreateRequestBody, token *string) *storage.CreatePayload
- func NewDownloadHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewDownloadPayload(aipID string, token *string) *storage.DownloadPayload
- func NewLocationPackagesHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewLocationPackagesPayload(uuid string, token *string) *storage.LocationPackagesPayload
- func NewLocationsHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewLocationsPayload(token *string) *storage.LocationsPayload
- func NewMoveHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewMovePayload(body *MoveRequestBody, aipID string, token *string) *storage.MovePayload
- func NewMoveStatusHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewMoveStatusPayload(aipID string, token *string) *storage.MoveStatusPayload
- func NewRejectHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewRejectPayload(aipID string, token *string) *storage.RejectPayload
- func NewShowHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewShowLocationHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewShowLocationPayload(uuid string, token *string) *storage.ShowLocationPayload
- func NewShowPayload(aipID string, token *string) *storage.ShowPayload
- func NewSubmitHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewSubmitPayload(body *SubmitRequestBody, aipID string, token *string) *storage.SubmitPayload
- func NewUpdateHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewUpdatePayload(aipID string, token *string) *storage.UpdatePayload
- 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 ValidateAddLocationRequestBody(body *AddLocationRequestBody) (err error)
- func ValidateCreateRequestBody(body *CreateRequestBody) (err error)
- func ValidateMoveRequestBody(body *MoveRequestBody) (err error)
- func ValidateSubmitRequestBody(body *SubmitRequestBody) (err error)
- type AddLocationNotValidResponseBody
- type AddLocationRequestBody
- type AddLocationResponseBody
- type CreateNotValidResponseBody
- type CreateRequestBody
- type CreateResponseBody
- type DownloadNotFoundResponseBody
- type LocationPackagesNotFoundResponseBody
- type LocationPackagesNotValidResponseBody
- type LocationResponse
- type LocationResponseCollection
- type MountPoint
- type MoveNotAvailableResponseBody
- type MoveNotFoundResponseBody
- type MoveNotValidResponseBody
- type MoveRequestBody
- type MoveStatusFailedDependencyResponseBody
- type MoveStatusNotFoundResponseBody
- type MoveStatusResponseBody
- type PackageResponse
- type PackageResponseCollection
- type RejectNotAvailableResponseBody
- type RejectNotFoundResponseBody
- type RejectNotValidResponseBody
- type Server
- 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 CreateStoragePath ¶
func CreateStoragePath() string
CreateStoragePath returns the URL path to the storage service create HTTP endpoint.
func DecodeAddLocationRequest ¶
func DecodeAddLocationRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
DecodeAddLocationRequest returns a decoder for requests sent to the storage add_location endpoint.
func DecodeCreateRequest ¶
func DecodeCreateRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
DecodeCreateRequest returns a decoder for requests sent to the storage create endpoint.
func DecodeDownloadRequest ¶
func DecodeDownloadRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
DecodeDownloadRequest returns a decoder for requests sent to the storage download endpoint.
func DecodeLocationPackagesRequest ¶
func DecodeLocationPackagesRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
DecodeLocationPackagesRequest returns a decoder for requests sent to the storage location_packages endpoint.
func DecodeLocationsRequest ¶
func DecodeLocationsRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
DecodeLocationsRequest returns a decoder for requests sent to the storage locations endpoint.
func DecodeMoveRequest ¶
func DecodeMoveRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
DecodeMoveRequest returns a decoder for requests sent to the storage move endpoint.
func DecodeMoveStatusRequest ¶
func DecodeMoveStatusRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
DecodeMoveStatusRequest returns a decoder for requests sent to the storage move_status endpoint.
func DecodeRejectRequest ¶
func DecodeRejectRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
DecodeRejectRequest returns a decoder for requests sent to the storage reject endpoint.
func DecodeShowLocationRequest ¶
func DecodeShowLocationRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
DecodeShowLocationRequest returns a decoder for requests sent to the storage show_location endpoint.
func DecodeShowRequest ¶
func DecodeShowRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
DecodeShowRequest returns a decoder for requests sent to the storage show endpoint.
func DecodeSubmitRequest ¶
func DecodeSubmitRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
DecodeSubmitRequest returns a decoder for requests sent to the storage submit endpoint.
func DecodeUpdateRequest ¶
func DecodeUpdateRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)
DecodeUpdateRequest returns a decoder for requests sent to the storage update endpoint.
func DownloadStoragePath ¶
DownloadStoragePath returns the URL path to the storage service download HTTP endpoint.
func EncodeAddLocationError ¶
func EncodeAddLocationError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeAddLocationError returns an encoder for errors returned by the add_location storage endpoint.
func EncodeAddLocationResponse ¶
func EncodeAddLocationResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
EncodeAddLocationResponse returns an encoder for responses returned by the storage add_location endpoint.
func EncodeCreateError ¶
func EncodeCreateError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeCreateError returns an encoder for errors returned by the create storage endpoint.
func EncodeCreateResponse ¶
func EncodeCreateResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
EncodeCreateResponse returns an encoder for responses returned by the storage create endpoint.
func EncodeDownloadError ¶
func EncodeDownloadError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeDownloadError returns an encoder for errors returned by the download storage endpoint.
func EncodeDownloadResponse ¶
func EncodeDownloadResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
EncodeDownloadResponse returns an encoder for responses returned by the storage download endpoint.
func EncodeLocationPackagesError ¶
func EncodeLocationPackagesError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeLocationPackagesError returns an encoder for errors returned by the location_packages storage endpoint.
func EncodeLocationPackagesResponse ¶
func EncodeLocationPackagesResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
EncodeLocationPackagesResponse returns an encoder for responses returned by the storage location_packages endpoint.
func EncodeLocationsError ¶
func EncodeLocationsError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeLocationsError returns an encoder for errors returned by the locations storage endpoint.
func EncodeLocationsResponse ¶
func EncodeLocationsResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
EncodeLocationsResponse returns an encoder for responses returned by the storage locations endpoint.
func EncodeMoveError ¶
func EncodeMoveError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeMoveError returns an encoder for errors returned by the move storage endpoint.
func EncodeMoveResponse ¶
func EncodeMoveResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
EncodeMoveResponse returns an encoder for responses returned by the storage move endpoint.
func EncodeMoveStatusError ¶
func EncodeMoveStatusError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeMoveStatusError returns an encoder for errors returned by the move_status storage endpoint.
func EncodeMoveStatusResponse ¶
func EncodeMoveStatusResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
EncodeMoveStatusResponse returns an encoder for responses returned by the storage move_status endpoint.
func EncodeRejectError ¶
func EncodeRejectError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeRejectError returns an encoder for errors returned by the reject storage endpoint.
func EncodeRejectResponse ¶
func EncodeRejectResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
EncodeRejectResponse returns an encoder for responses returned by the storage reject endpoint.
func EncodeShowError ¶
func EncodeShowError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeShowError returns an encoder for errors returned by the show storage endpoint.
func EncodeShowLocationError ¶
func EncodeShowLocationError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeShowLocationError returns an encoder for errors returned by the show_location storage endpoint.
func EncodeShowLocationResponse ¶
func EncodeShowLocationResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
EncodeShowLocationResponse returns an encoder for responses returned by the storage show_location endpoint.
func EncodeShowResponse ¶
func EncodeShowResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
EncodeShowResponse returns an encoder for responses returned by the storage show endpoint.
func EncodeSubmitError ¶
func EncodeSubmitError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeSubmitError returns an encoder for errors returned by the submit storage endpoint.
func EncodeSubmitResponse ¶
func EncodeSubmitResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
EncodeSubmitResponse returns an encoder for responses returned by the storage submit endpoint.
func EncodeUpdateError ¶
func EncodeUpdateError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error
EncodeUpdateError returns an encoder for errors returned by the update storage endpoint.
func EncodeUpdateResponse ¶
func EncodeUpdateResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error
EncodeUpdateResponse returns an encoder for responses returned by the storage update endpoint.
func HandleStorageOrigin ¶
HandleStorageOrigin applies the CORS response headers corresponding to the origin for the service storage.
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 MountAddLocationHandler ¶
MountAddLocationHandler configures the mux to serve the "storage" service "add_location" endpoint.
func MountCORSHandler ¶
MountCORSHandler configures the mux to serve the CORS endpoints for the service storage.
func MountCreateHandler ¶
MountCreateHandler configures the mux to serve the "storage" service "create" endpoint.
func MountDownloadHandler ¶
MountDownloadHandler configures the mux to serve the "storage" service "download" endpoint.
func MountLocationPackagesHandler ¶
MountLocationPackagesHandler configures the mux to serve the "storage" service "location_packages" endpoint.
func MountLocationsHandler ¶
MountLocationsHandler configures the mux to serve the "storage" service "locations" endpoint.
func MountMoveHandler ¶
MountMoveHandler configures the mux to serve the "storage" service "move" endpoint.
func MountMoveStatusHandler ¶
MountMoveStatusHandler configures the mux to serve the "storage" service "move_status" endpoint.
func MountRejectHandler ¶
MountRejectHandler configures the mux to serve the "storage" service "reject" endpoint.
func MountShowHandler ¶
MountShowHandler configures the mux to serve the "storage" service "show" endpoint.
func MountShowLocationHandler ¶
MountShowLocationHandler configures the mux to serve the "storage" service "show_location" endpoint.
func MountSubmitHandler ¶
MountSubmitHandler configures the mux to serve the "storage" service "submit" endpoint.
func MountUpdateHandler ¶
MountUpdateHandler configures the mux to serve the "storage" service "update" 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 NewAddLocationHandler ¶
func NewAddLocationHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(ctx context.Context, err error) goahttp.Statuser, ) http.Handler
NewAddLocationHandler creates a HTTP handler which loads the HTTP request and calls the "storage" service "add_location" endpoint.
func NewAddLocationPayload ¶
func NewAddLocationPayload(body *AddLocationRequestBody, token *string) *storage.AddLocationPayload
NewAddLocationPayload builds a storage service add_location endpoint payload.
func NewCORSHandler ¶
NewCORSHandler creates a HTTP handler which returns a simple 204 response.
func NewCreateHandler ¶
func NewCreateHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(ctx context.Context, err error) goahttp.Statuser, ) http.Handler
NewCreateHandler creates a HTTP handler which loads the HTTP request and calls the "storage" service "create" endpoint.
func NewCreatePayload ¶
func NewCreatePayload(body *CreateRequestBody, token *string) *storage.CreatePayload
NewCreatePayload builds a storage service create endpoint payload.
func NewDownloadHandler ¶
func NewDownloadHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(ctx context.Context, err error) goahttp.Statuser, ) http.Handler
NewDownloadHandler creates a HTTP handler which loads the HTTP request and calls the "storage" service "download" endpoint.
func NewDownloadPayload ¶
func NewDownloadPayload(aipID string, token *string) *storage.DownloadPayload
NewDownloadPayload builds a storage service download endpoint payload.
func NewLocationPackagesHandler ¶
func NewLocationPackagesHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(ctx context.Context, err error) goahttp.Statuser, ) http.Handler
NewLocationPackagesHandler creates a HTTP handler which loads the HTTP request and calls the "storage" service "location_packages" endpoint.
func NewLocationPackagesPayload ¶
func NewLocationPackagesPayload(uuid string, token *string) *storage.LocationPackagesPayload
NewLocationPackagesPayload builds a storage service location_packages endpoint payload.
func NewLocationsHandler ¶
func NewLocationsHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(ctx context.Context, err error) goahttp.Statuser, ) http.Handler
NewLocationsHandler creates a HTTP handler which loads the HTTP request and calls the "storage" service "locations" endpoint.
func NewLocationsPayload ¶
func NewLocationsPayload(token *string) *storage.LocationsPayload
NewLocationsPayload builds a storage service locations endpoint payload.
func NewMoveHandler ¶
func NewMoveHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(ctx context.Context, err error) goahttp.Statuser, ) http.Handler
NewMoveHandler creates a HTTP handler which loads the HTTP request and calls the "storage" service "move" endpoint.
func NewMovePayload ¶
func NewMovePayload(body *MoveRequestBody, aipID string, token *string) *storage.MovePayload
NewMovePayload builds a storage service move endpoint payload.
func NewMoveStatusHandler ¶
func NewMoveStatusHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(ctx context.Context, err error) goahttp.Statuser, ) http.Handler
NewMoveStatusHandler creates a HTTP handler which loads the HTTP request and calls the "storage" service "move_status" endpoint.
func NewMoveStatusPayload ¶
func NewMoveStatusPayload(aipID string, token *string) *storage.MoveStatusPayload
NewMoveStatusPayload builds a storage service move_status endpoint payload.
func NewRejectHandler ¶
func NewRejectHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(ctx context.Context, err error) goahttp.Statuser, ) http.Handler
NewRejectHandler creates a HTTP handler which loads the HTTP request and calls the "storage" service "reject" endpoint.
func NewRejectPayload ¶
func NewRejectPayload(aipID string, token *string) *storage.RejectPayload
NewRejectPayload builds a storage service reject endpoint payload.
func NewShowHandler ¶
func NewShowHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(ctx context.Context, err error) goahttp.Statuser, ) http.Handler
NewShowHandler creates a HTTP handler which loads the HTTP request and calls the "storage" service "show" endpoint.
func NewShowLocationHandler ¶
func NewShowLocationHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(ctx context.Context, err error) goahttp.Statuser, ) http.Handler
NewShowLocationHandler creates a HTTP handler which loads the HTTP request and calls the "storage" service "show_location" endpoint.
func NewShowLocationPayload ¶
func NewShowLocationPayload(uuid string, token *string) *storage.ShowLocationPayload
NewShowLocationPayload builds a storage service show_location endpoint payload.
func NewShowPayload ¶
func NewShowPayload(aipID string, token *string) *storage.ShowPayload
NewShowPayload builds a storage service show endpoint payload.
func NewSubmitHandler ¶
func NewSubmitHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(ctx context.Context, err error) goahttp.Statuser, ) http.Handler
NewSubmitHandler creates a HTTP handler which loads the HTTP request and calls the "storage" service "submit" endpoint.
func NewSubmitPayload ¶
func NewSubmitPayload(body *SubmitRequestBody, aipID string, token *string) *storage.SubmitPayload
NewSubmitPayload builds a storage service submit endpoint payload.
func NewUpdateHandler ¶
func NewUpdateHandler( endpoint goa.Endpoint, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(ctx context.Context, err error) goahttp.Statuser, ) http.Handler
NewUpdateHandler creates a HTTP handler which loads the HTTP request and calls the "storage" service "update" endpoint.
func NewUpdatePayload ¶
func NewUpdatePayload(aipID string, token *string) *storage.UpdatePayload
NewUpdatePayload builds a storage service update endpoint payload.
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 ValidateAddLocationRequestBody ¶
func ValidateAddLocationRequestBody(body *AddLocationRequestBody) (err error)
ValidateAddLocationRequestBody runs the validations defined on add_location_request_body
func ValidateCreateRequestBody ¶
func ValidateCreateRequestBody(body *CreateRequestBody) (err error)
ValidateCreateRequestBody runs the validations defined on CreateRequestBody
func ValidateMoveRequestBody ¶
func ValidateMoveRequestBody(body *MoveRequestBody) (err error)
ValidateMoveRequestBody runs the validations defined on MoveRequestBody
func ValidateSubmitRequestBody ¶
func ValidateSubmitRequestBody(body *SubmitRequestBody) (err error)
ValidateSubmitRequestBody runs the validations defined on SubmitRequestBody
Types ¶
type AddLocationNotValidResponseBody ¶
type AddLocationNotValidResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
AddLocationNotValidResponseBody is the type of the "storage" service "add_location" endpoint HTTP response body for the "not_valid" error.
func NewAddLocationNotValidResponseBody ¶
func NewAddLocationNotValidResponseBody(res *goa.ServiceError) *AddLocationNotValidResponseBody
NewAddLocationNotValidResponseBody builds the HTTP response body from the result of the "add_location" endpoint of the "storage" service.
type AddLocationRequestBody ¶
type AddLocationRequestBody struct { Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` Source *string `form:"source,omitempty" json:"source,omitempty" xml:"source,omitempty"` Purpose *string `form:"purpose,omitempty" json:"purpose,omitempty" xml:"purpose,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"` }
AddLocationRequestBody is the type of the "storage" service "add_location" endpoint HTTP request body.
type AddLocationResponseBody ¶
type AddLocationResponseBody struct {
UUID string `form:"uuid" json:"uuid" xml:"uuid"`
}
AddLocationResponseBody is the type of the "storage" service "add_location" endpoint HTTP response body.
func NewAddLocationResponseBody ¶
func NewAddLocationResponseBody(res *storage.AddLocationResult) *AddLocationResponseBody
NewAddLocationResponseBody builds the HTTP response body from the result of the "add_location" endpoint of the "storage" service.
type CreateNotValidResponseBody ¶
type CreateNotValidResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
CreateNotValidResponseBody is the type of the "storage" service "create" endpoint HTTP response body for the "not_valid" error.
func NewCreateNotValidResponseBody ¶
func NewCreateNotValidResponseBody(res *goa.ServiceError) *CreateNotValidResponseBody
NewCreateNotValidResponseBody builds the HTTP response body from the result of the "create" endpoint of the "storage" service.
type CreateRequestBody ¶
type CreateRequestBody struct { // Identifier of AIP AipID *string `form:"aip_id,omitempty" json:"aip_id,omitempty" xml:"aip_id,omitempty"` // Name of the package Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ObjectKey of AIP ObjectKey *string `form:"object_key,omitempty" json:"object_key,omitempty" xml:"object_key,omitempty"` // Status of the package Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"` // 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.
type CreateResponseBody ¶
type CreateResponseBody struct { Name string `form:"name" json:"name" xml:"name"` AipID uuid.UUID `form:"aip_id" json:"aip_id" xml:"aip_id"` // Status of the package Status string `form:"status" json:"status" xml:"status"` ObjectKey uuid.UUID `form:"object_key" json:"object_key" xml:"object_key"` // 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" json:"created_at" xml:"created_at"` }
CreateResponseBody is the type of the "storage" service "create" endpoint HTTP response body.
func NewCreateResponseBody ¶
func NewCreateResponseBody(res *storageviews.PackageView) *CreateResponseBody
NewCreateResponseBody builds the HTTP response body from the result of the "create" endpoint of the "storage" service.
type DownloadNotFoundResponseBody ¶
type DownloadNotFoundResponseBody struct { // Message of error Message string `form:"message" json:"message" xml:"message"` // Identifier of missing package AipID uuid.UUID `form:"aip_id" json:"aip_id" xml:"aip_id"` }
DownloadNotFoundResponseBody is the type of the "storage" service "download" endpoint HTTP response body for the "not_found" error.
func NewDownloadNotFoundResponseBody ¶
func NewDownloadNotFoundResponseBody(res *storage.PackageNotFound) *DownloadNotFoundResponseBody
NewDownloadNotFoundResponseBody builds the HTTP response body from the result of the "download" endpoint of the "storage" service.
type LocationPackagesNotFoundResponseBody ¶
type LocationPackagesNotFoundResponseBody struct { // Message of error Message string `form:"message" json:"message" xml:"message"` UUID uuid.UUID `form:"uuid" json:"uuid" xml:"uuid"` }
LocationPackagesNotFoundResponseBody is the type of the "storage" service "location_packages" endpoint HTTP response body for the "not_found" error.
func NewLocationPackagesNotFoundResponseBody ¶
func NewLocationPackagesNotFoundResponseBody(res *storage.LocationNotFound) *LocationPackagesNotFoundResponseBody
NewLocationPackagesNotFoundResponseBody builds the HTTP response body from the result of the "location_packages" endpoint of the "storage" service.
type LocationPackagesNotValidResponseBody ¶
type LocationPackagesNotValidResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
LocationPackagesNotValidResponseBody is the type of the "storage" service "location_packages" endpoint HTTP response body for the "not_valid" error.
func NewLocationPackagesNotValidResponseBody ¶
func NewLocationPackagesNotValidResponseBody(res *goa.ServiceError) *LocationPackagesNotValidResponseBody
NewLocationPackagesNotValidResponseBody builds the HTTP response body from the result of the "location_packages" endpoint of the "storage" service.
type LocationResponse ¶
type LocationResponse struct { // Name of location Name string `form:"name" json:"name" xml:"name"` // Description of the location Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` // Data source of the location Source string `form:"source" json:"source" xml:"source"` // Purpose of the location Purpose string `form:"purpose" json:"purpose" xml:"purpose"` UUID uuid.UUID `form:"uuid" json:"uuid" xml:"uuid"` // Creation datetime CreatedAt string `form:"created_at" json:"created_at" xml:"created_at"` }
LocationResponse is used to define fields on response body types.
type LocationResponseCollection ¶
type LocationResponseCollection []*LocationResponse
LocationResponseCollection is the type of the "storage" service "locations" endpoint HTTP response body.
func NewLocationResponseCollection ¶
func NewLocationResponseCollection(res storageviews.LocationCollectionView) LocationResponseCollection
NewLocationResponseCollection builds the HTTP response body from the result of the "locations" endpoint of the "storage" service.
type MountPoint ¶
type MountPoint struct { // Method is the name of the service method served by the mounted HTTP handler. Method string // Verb is the HTTP method used to match requests to the mounted handler. Verb string // Pattern is the HTTP request path pattern used to match requests to the // mounted handler. Pattern string }
MountPoint holds information about the mounted endpoints.
type MoveNotAvailableResponseBody ¶
type MoveNotAvailableResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
MoveNotAvailableResponseBody is the type of the "storage" service "move" endpoint HTTP response body for the "not_available" error.
func NewMoveNotAvailableResponseBody ¶
func NewMoveNotAvailableResponseBody(res *goa.ServiceError) *MoveNotAvailableResponseBody
NewMoveNotAvailableResponseBody builds the HTTP response body from the result of the "move" endpoint of the "storage" service.
type MoveNotFoundResponseBody ¶
type MoveNotFoundResponseBody struct { // Message of error Message string `form:"message" json:"message" xml:"message"` // Identifier of missing package AipID uuid.UUID `form:"aip_id" json:"aip_id" xml:"aip_id"` }
MoveNotFoundResponseBody is the type of the "storage" service "move" endpoint HTTP response body for the "not_found" error.
func NewMoveNotFoundResponseBody ¶
func NewMoveNotFoundResponseBody(res *storage.PackageNotFound) *MoveNotFoundResponseBody
NewMoveNotFoundResponseBody builds the HTTP response body from the result of the "move" endpoint of the "storage" service.
type MoveNotValidResponseBody ¶
type MoveNotValidResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
MoveNotValidResponseBody is the type of the "storage" service "move" endpoint HTTP response body for the "not_valid" error.
func NewMoveNotValidResponseBody ¶
func NewMoveNotValidResponseBody(res *goa.ServiceError) *MoveNotValidResponseBody
NewMoveNotValidResponseBody builds the HTTP response body from the result of the "move" endpoint of the "storage" service.
type MoveRequestBody ¶
type MoveRequestBody struct { // Identifier of storage location LocationID *uuid.UUID `form:"location_id,omitempty" json:"location_id,omitempty" xml:"location_id,omitempty"` }
MoveRequestBody is the type of the "storage" service "move" endpoint HTTP request body.
type MoveStatusFailedDependencyResponseBody ¶
type MoveStatusFailedDependencyResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
MoveStatusFailedDependencyResponseBody is the type of the "storage" service "move_status" endpoint HTTP response body for the "failed_dependency" error.
func NewMoveStatusFailedDependencyResponseBody ¶
func NewMoveStatusFailedDependencyResponseBody(res *goa.ServiceError) *MoveStatusFailedDependencyResponseBody
NewMoveStatusFailedDependencyResponseBody builds the HTTP response body from the result of the "move_status" endpoint of the "storage" service.
type MoveStatusNotFoundResponseBody ¶
type MoveStatusNotFoundResponseBody struct { // Message of error Message string `form:"message" json:"message" xml:"message"` // Identifier of missing package AipID uuid.UUID `form:"aip_id" json:"aip_id" xml:"aip_id"` }
MoveStatusNotFoundResponseBody is the type of the "storage" service "move_status" endpoint HTTP response body for the "not_found" error.
func NewMoveStatusNotFoundResponseBody ¶
func NewMoveStatusNotFoundResponseBody(res *storage.PackageNotFound) *MoveStatusNotFoundResponseBody
NewMoveStatusNotFoundResponseBody builds the HTTP response body from the result of the "move_status" endpoint of the "storage" service.
type MoveStatusResponseBody ¶
type MoveStatusResponseBody struct {
Done bool `form:"done" json:"done" xml:"done"`
}
MoveStatusResponseBody is the type of the "storage" service "move_status" endpoint HTTP response body.
func NewMoveStatusResponseBody ¶
func NewMoveStatusResponseBody(res *storage.MoveStatusResult) *MoveStatusResponseBody
NewMoveStatusResponseBody builds the HTTP response body from the result of the "move_status" endpoint of the "storage" service.
type PackageResponse ¶
type PackageResponse struct { Name string `form:"name" json:"name" xml:"name"` AipID uuid.UUID `form:"aip_id" json:"aip_id" xml:"aip_id"` // Status of the package Status string `form:"status" json:"status" xml:"status"` ObjectKey uuid.UUID `form:"object_key" json:"object_key" xml:"object_key"` // 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" json:"created_at" xml:"created_at"` }
PackageResponse is used to define fields on response body types.
type PackageResponseCollection ¶
type PackageResponseCollection []*PackageResponse
PackageResponseCollection is the type of the "storage" service "location_packages" endpoint HTTP response body.
func NewPackageResponseCollection ¶
func NewPackageResponseCollection(res storageviews.PackageCollectionView) PackageResponseCollection
NewPackageResponseCollection builds the HTTP response body from the result of the "location_packages" endpoint of the "storage" service.
type RejectNotAvailableResponseBody ¶
type RejectNotAvailableResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
RejectNotAvailableResponseBody is the type of the "storage" service "reject" endpoint HTTP response body for the "not_available" error.
func NewRejectNotAvailableResponseBody ¶
func NewRejectNotAvailableResponseBody(res *goa.ServiceError) *RejectNotAvailableResponseBody
NewRejectNotAvailableResponseBody builds the HTTP response body from the result of the "reject" endpoint of the "storage" service.
type RejectNotFoundResponseBody ¶
type RejectNotFoundResponseBody struct { // Message of error Message string `form:"message" json:"message" xml:"message"` // Identifier of missing package AipID uuid.UUID `form:"aip_id" json:"aip_id" xml:"aip_id"` }
RejectNotFoundResponseBody is the type of the "storage" service "reject" endpoint HTTP response body for the "not_found" error.
func NewRejectNotFoundResponseBody ¶
func NewRejectNotFoundResponseBody(res *storage.PackageNotFound) *RejectNotFoundResponseBody
NewRejectNotFoundResponseBody builds the HTTP response body from the result of the "reject" endpoint of the "storage" service.
type RejectNotValidResponseBody ¶
type RejectNotValidResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
RejectNotValidResponseBody is the type of the "storage" service "reject" endpoint HTTP response body for the "not_valid" error.
func NewRejectNotValidResponseBody ¶
func NewRejectNotValidResponseBody(res *goa.ServiceError) *RejectNotValidResponseBody
NewRejectNotValidResponseBody builds the HTTP response body from the result of the "reject" endpoint of the "storage" service.
type Server ¶
type Server struct { Mounts []*MountPoint Create http.Handler Submit http.Handler Update http.Handler Download http.Handler Move http.Handler MoveStatus http.Handler Reject http.Handler Show http.Handler Locations http.Handler AddLocation http.Handler ShowLocation http.Handler LocationPackages http.Handler CORS http.Handler }
Server lists the storage service endpoint HTTP handlers.
func New ¶
func New( e *storage.Endpoints, mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder, encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, errhandler func(context.Context, http.ResponseWriter, error), formatter func(ctx context.Context, err error) goahttp.Statuser, ) *Server
New instantiates HTTP handlers for all the storage service endpoints using the provided encoder and decoder. The handlers are mounted on the given mux using the HTTP verb and path defined in the design. errhandler is called whenever a response fails to be encoded. formatter is used to format errors returned by the service methods prior to encoding. Both errhandler and formatter are optional and can be nil.
func (*Server) MethodNames ¶
MethodNames returns the methods served.
type ShowLocationNotFoundResponseBody ¶
type ShowLocationNotFoundResponseBody struct { // Message of error Message string `form:"message" json:"message" xml:"message"` UUID uuid.UUID `form:"uuid" json:"uuid" xml:"uuid"` }
ShowLocationNotFoundResponseBody is the type of the "storage" service "show_location" endpoint HTTP response body for the "not_found" error.
func NewShowLocationNotFoundResponseBody ¶
func NewShowLocationNotFoundResponseBody(res *storage.LocationNotFound) *ShowLocationNotFoundResponseBody
NewShowLocationNotFoundResponseBody builds the HTTP response body from the result of the "show_location" endpoint of the "storage" service.
type ShowLocationResponseBody ¶
type ShowLocationResponseBody struct { // Name of location Name string `form:"name" json:"name" xml:"name"` // Description of the location Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` // Data source of the location Source string `form:"source" json:"source" xml:"source"` // Purpose of the location Purpose string `form:"purpose" json:"purpose" xml:"purpose"` UUID uuid.UUID `form:"uuid" json:"uuid" xml:"uuid"` // Creation datetime CreatedAt string `form:"created_at" json:"created_at" xml:"created_at"` }
ShowLocationResponseBody is the type of the "storage" service "show_location" endpoint HTTP response body.
func NewShowLocationResponseBody ¶
func NewShowLocationResponseBody(res *storageviews.LocationView) *ShowLocationResponseBody
NewShowLocationResponseBody builds the HTTP response body from the result of the "show_location" endpoint of the "storage" service.
type ShowNotFoundResponseBody ¶
type ShowNotFoundResponseBody struct { // Message of error Message string `form:"message" json:"message" xml:"message"` // Identifier of missing package AipID uuid.UUID `form:"aip_id" json:"aip_id" xml:"aip_id"` }
ShowNotFoundResponseBody is the type of the "storage" service "show" endpoint HTTP response body for the "not_found" error.
func NewShowNotFoundResponseBody ¶
func NewShowNotFoundResponseBody(res *storage.PackageNotFound) *ShowNotFoundResponseBody
NewShowNotFoundResponseBody builds the HTTP response body from the result of the "show" endpoint of the "storage" service.
type ShowResponseBody ¶
type ShowResponseBody struct { Name string `form:"name" json:"name" xml:"name"` AipID uuid.UUID `form:"aip_id" json:"aip_id" xml:"aip_id"` // Status of the package Status string `form:"status" json:"status" xml:"status"` ObjectKey uuid.UUID `form:"object_key" json:"object_key" xml:"object_key"` // 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" json:"created_at" xml:"created_at"` }
ShowResponseBody is the type of the "storage" service "show" endpoint HTTP response body.
func NewShowResponseBody ¶
func NewShowResponseBody(res *storageviews.PackageView) *ShowResponseBody
NewShowResponseBody builds the HTTP response body from the result of the "show" endpoint of the "storage" service.
type SubmitNotAvailableResponseBody ¶
type SubmitNotAvailableResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
SubmitNotAvailableResponseBody is the type of the "storage" service "submit" endpoint HTTP response body for the "not_available" error.
func NewSubmitNotAvailableResponseBody ¶
func NewSubmitNotAvailableResponseBody(res *goa.ServiceError) *SubmitNotAvailableResponseBody
NewSubmitNotAvailableResponseBody builds the HTTP response body from the result of the "submit" endpoint of the "storage" service.
type SubmitNotValidResponseBody ¶
type SubmitNotValidResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
SubmitNotValidResponseBody is the type of the "storage" service "submit" endpoint HTTP response body for the "not_valid" error.
func NewSubmitNotValidResponseBody ¶
func NewSubmitNotValidResponseBody(res *goa.ServiceError) *SubmitNotValidResponseBody
NewSubmitNotValidResponseBody builds the HTTP response body from the result of the "submit" endpoint of the "storage" service.
type SubmitRequestBody ¶
type SubmitRequestBody struct {
Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
}
SubmitRequestBody is the type of the "storage" service "submit" endpoint HTTP request body.
type SubmitResponseBody ¶
type SubmitResponseBody struct {
URL string `form:"url" json:"url" xml:"url"`
}
SubmitResponseBody is the type of the "storage" service "submit" endpoint HTTP response body.
func NewSubmitResponseBody ¶
func NewSubmitResponseBody(res *storage.SubmitResult) *SubmitResponseBody
NewSubmitResponseBody builds the HTTP response body from the result of the "submit" endpoint of the "storage" service.
type UpdateNotAvailableResponseBody ¶
type UpdateNotAvailableResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
UpdateNotAvailableResponseBody is the type of the "storage" service "update" endpoint HTTP response body for the "not_available" error.
func NewUpdateNotAvailableResponseBody ¶
func NewUpdateNotAvailableResponseBody(res *goa.ServiceError) *UpdateNotAvailableResponseBody
NewUpdateNotAvailableResponseBody builds the HTTP response body from the result of the "update" endpoint of the "storage" service.
type UpdateNotValidResponseBody ¶
type UpdateNotValidResponseBody struct { // Name is the name of this class of errors. Name string `form:"name" json:"name" xml:"name"` // ID is a unique identifier for this particular occurrence of the problem. ID string `form:"id" json:"id" xml:"id"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message string `form:"message" json:"message" xml:"message"` // Is the error temporary? Temporary bool `form:"temporary" json:"temporary" xml:"temporary"` // Is the error a timeout? Timeout bool `form:"timeout" json:"timeout" xml:"timeout"` // Is the error a server-side fault? Fault bool `form:"fault" json:"fault" xml:"fault"` }
UpdateNotValidResponseBody is the type of the "storage" service "update" endpoint HTTP response body for the "not_valid" error.
func NewUpdateNotValidResponseBody ¶
func NewUpdateNotValidResponseBody(res *goa.ServiceError) *UpdateNotValidResponseBody
NewUpdateNotValidResponseBody builds the HTTP response body from the result of the "update" endpoint of the "storage" service.