Documentation ¶
Index ¶
- Constants
- Variables
- func MakeNotRunning(err error) *goa.ServiceError
- func MakeNotValid(err error) *goa.ServiceError
- func NewCancelEndpoint(s Service) goa.Endpoint
- func NewDecideEndpoint(s Service) goa.Endpoint
- func NewDeleteEndpoint(s Service) goa.Endpoint
- func NewDownloadEndpoint(s Service) goa.Endpoint
- func NewListEndpoint(s Service) goa.Endpoint
- func NewRetryEndpoint(s Service) goa.Endpoint
- func NewShowEndpoint(s Service) goa.Endpoint
- func NewViewedEnduroCollectionWorkflowStatus(res *EnduroCollectionWorkflowStatus, view string) *collectionviews.EnduroCollectionWorkflowStatus
- func NewViewedEnduroStoredCollection(res *EnduroStoredCollection, view string) *collectionviews.EnduroStoredCollection
- func NewWorkflowEndpoint(s Service) goa.Endpoint
- type CancelPayload
- type Client
- func (c *Client) Cancel(ctx context.Context, p *CancelPayload) (err error)
- func (c *Client) Decide(ctx context.Context, p *DecidePayload) (err error)
- func (c *Client) Delete(ctx context.Context, p *DeletePayload) (err error)
- func (c *Client) Download(ctx context.Context, p *DownloadPayload) (res []byte, err error)
- func (c *Client) List(ctx context.Context, p *ListPayload) (res *ListResult, err error)
- func (c *Client) Retry(ctx context.Context, p *RetryPayload) (err error)
- func (c *Client) Show(ctx context.Context, p *ShowPayload) (res *EnduroStoredCollection, err error)
- func (c *Client) Workflow(ctx context.Context, p *WorkflowPayload) (res *EnduroCollectionWorkflowStatus, err error)
- type DecidePayload
- type DeletePayload
- type DownloadPayload
- type Endpoints
- type EnduroCollectionWorkflowHistory
- type EnduroCollectionWorkflowHistoryCollection
- type EnduroCollectionWorkflowStatus
- type EnduroStoredCollection
- type EnduroStoredCollectionCollection
- type ListPayload
- type ListResult
- type NotFound
- type RetryPayload
- type Service
- type ShowPayload
- type WorkflowPayload
Constants ¶
const ServiceName = "collection"
ServiceName is the name of the service as defined in the design. This is the same value that is set in the endpoint request contexts under the ServiceKey key.
Variables ¶
var MethodNames = [8]string{"list", "show", "delete", "cancel", "retry", "workflow", "download", "decide"}
MethodNames lists the service method names as defined in the design. These are the same values that are set in the endpoint request contexts under the MethodKey key.
Functions ¶
func MakeNotRunning ¶
func MakeNotRunning(err error) *goa.ServiceError
MakeNotRunning builds a goa.ServiceError from an error.
func MakeNotValid ¶ added in v0.22.0
func MakeNotValid(err error) *goa.ServiceError
MakeNotValid builds a goa.ServiceError from an error.
func NewCancelEndpoint ¶
NewCancelEndpoint returns an endpoint function that calls the method "cancel" of service "collection".
func NewDecideEndpoint ¶ added in v0.22.0
NewDecideEndpoint returns an endpoint function that calls the method "decide" of service "collection".
func NewDeleteEndpoint ¶
NewDeleteEndpoint returns an endpoint function that calls the method "delete" of service "collection".
func NewDownloadEndpoint ¶ added in v0.14.0
NewDownloadEndpoint returns an endpoint function that calls the method "download" of service "collection".
func NewListEndpoint ¶
NewListEndpoint returns an endpoint function that calls the method "list" of service "collection".
func NewRetryEndpoint ¶
NewRetryEndpoint returns an endpoint function that calls the method "retry" of service "collection".
func NewShowEndpoint ¶
NewShowEndpoint returns an endpoint function that calls the method "show" of service "collection".
func NewViewedEnduroCollectionWorkflowStatus ¶
func NewViewedEnduroCollectionWorkflowStatus(res *EnduroCollectionWorkflowStatus, view string) *collectionviews.EnduroCollectionWorkflowStatus
NewViewedEnduroCollectionWorkflowStatus initializes viewed result type EnduroCollectionWorkflowStatus from result type EnduroCollectionWorkflowStatus using the given view.
func NewViewedEnduroStoredCollection ¶
func NewViewedEnduroStoredCollection(res *EnduroStoredCollection, view string) *collectionviews.EnduroStoredCollection
NewViewedEnduroStoredCollection initializes viewed result type EnduroStoredCollection from result type EnduroStoredCollection using the given view.
func NewWorkflowEndpoint ¶
NewWorkflowEndpoint returns an endpoint function that calls the method "workflow" of service "collection".
Types ¶
type CancelPayload ¶
type CancelPayload struct { // Identifier of collection to remove ID uint }
CancelPayload is the payload type of the collection service cancel method.
type Client ¶
type Client struct { ListEndpoint goa.Endpoint ShowEndpoint goa.Endpoint DeleteEndpoint goa.Endpoint CancelEndpoint goa.Endpoint RetryEndpoint goa.Endpoint WorkflowEndpoint goa.Endpoint DownloadEndpoint goa.Endpoint DecideEndpoint goa.Endpoint }
Client is the "collection" service client.
func (*Client) Cancel ¶
func (c *Client) Cancel(ctx context.Context, p *CancelPayload) (err error)
Cancel calls the "cancel" endpoint of the "collection" service. Cancel may return the following errors:
- "not_found" (type *NotFound): Collection not found
- "not_running" (type *goa.ServiceError)
- error: internal error
func (*Client) Decide ¶ added in v0.22.0
func (c *Client) Decide(ctx context.Context, p *DecidePayload) (err error)
Decide calls the "decide" endpoint of the "collection" service. Decide may return the following errors:
- "not_found" (type *NotFound): Collection not found
- "not_valid" (type *goa.ServiceError)
- error: internal error
func (*Client) Delete ¶
func (c *Client) Delete(ctx context.Context, p *DeletePayload) (err error)
Delete calls the "delete" endpoint of the "collection" service. Delete may return the following errors:
- "not_found" (type *NotFound): Collection not found
- error: internal error
func (*Client) Download ¶ added in v0.14.0
Download calls the "download" endpoint of the "collection" service. Download may return the following errors:
- "not_found" (type *NotFound): Collection not found
- error: internal error
func (*Client) List ¶
func (c *Client) List(ctx context.Context, p *ListPayload) (res *ListResult, err error)
List calls the "list" endpoint of the "collection" service.
func (*Client) Retry ¶
func (c *Client) Retry(ctx context.Context, p *RetryPayload) (err error)
Retry calls the "retry" endpoint of the "collection" service. Retry may return the following errors:
- "not_found" (type *NotFound): Collection not found
- "not_running" (type *goa.ServiceError)
- error: internal error
func (*Client) Show ¶
func (c *Client) Show(ctx context.Context, p *ShowPayload) (res *EnduroStoredCollection, err error)
Show calls the "show" endpoint of the "collection" service. Show may return the following errors:
- "not_found" (type *NotFound): Collection not found
- error: internal error
func (*Client) Workflow ¶
func (c *Client) Workflow(ctx context.Context, p *WorkflowPayload) (res *EnduroCollectionWorkflowStatus, err error)
Workflow calls the "workflow" endpoint of the "collection" service. Workflow may return the following errors:
- "not_found" (type *NotFound): Collection not found
- error: internal error
type DecidePayload ¶ added in v0.22.0
type DecidePayload struct { // Identifier of collection to look up ID uint // Decision option to proceed with Option string }
DecidePayload is the payload type of the collection service decide method.
type DeletePayload ¶
type DeletePayload struct { // Identifier of collection to delete ID uint }
DeletePayload is the payload type of the collection service delete method.
type DownloadPayload ¶ added in v0.14.0
type DownloadPayload struct { // Identifier of collection to look up ID uint }
DownloadPayload is the payload type of the collection service download method.
type Endpoints ¶
type Endpoints struct { List goa.Endpoint Show goa.Endpoint Delete goa.Endpoint Cancel goa.Endpoint Retry goa.Endpoint Workflow goa.Endpoint Download goa.Endpoint Decide goa.Endpoint }
Endpoints wraps the "collection" service endpoints.
func NewEndpoints ¶
NewEndpoints wraps the methods of the "collection" service with endpoints.
type EnduroCollectionWorkflowHistory ¶
type EnduroCollectionWorkflowHistory struct { // Identifier of collection ID *uint // Type of the event Type *string // Contents of the event Details interface{} }
WorkflowHistoryEvent describes a history event in Cadence.
type EnduroCollectionWorkflowHistoryCollection ¶
type EnduroCollectionWorkflowHistoryCollection []*EnduroCollectionWorkflowHistory
type EnduroCollectionWorkflowStatus ¶
type EnduroCollectionWorkflowStatus struct { Status *string History EnduroCollectionWorkflowHistoryCollection }
EnduroCollectionWorkflowStatus is the result type of the collection service workflow method.
func NewEnduroCollectionWorkflowStatus ¶
func NewEnduroCollectionWorkflowStatus(vres *collectionviews.EnduroCollectionWorkflowStatus) *EnduroCollectionWorkflowStatus
NewEnduroCollectionWorkflowStatus initializes result type EnduroCollectionWorkflowStatus from viewed result type EnduroCollectionWorkflowStatus.
type EnduroStoredCollection ¶
type EnduroStoredCollection struct { // Identifier of collection ID uint // Name of the collection Name *string // Status of the collection Status string // Identifier of processing workflow WorkflowID *string // Identifier of latest processing workflow run RunID *string // Identifier of Archivematica transfer TransferID *string // Identifier of Archivematica AIP AipID *string // Identifier provided by the client OriginalID *string // Identifier of Archivematica pipeline PipelineID *string // Creation datetime CreatedAt string // Start datetime StartedAt *string // Completion datetime CompletedAt *string }
EnduroStoredCollection is the result type of the collection service show method.
func NewEnduroStoredCollection ¶
func NewEnduroStoredCollection(vres *collectionviews.EnduroStoredCollection) *EnduroStoredCollection
NewEnduroStoredCollection initializes result type EnduroStoredCollection from viewed result type EnduroStoredCollection.
type EnduroStoredCollectionCollection ¶
type EnduroStoredCollectionCollection []*EnduroStoredCollection
type ListPayload ¶
type ListPayload struct { Name *string OriginalID *string TransferID *string AipID *string PipelineID *string EarliestCreatedTime *string LatestCreatedTime *string Status *string // Pagination cursor Cursor *string }
ListPayload is the payload type of the collection service list method.
type ListResult ¶ added in v0.5.0
type ListResult struct { Items EnduroStoredCollectionCollection NextCursor *string }
ListResult is the result type of the collection service list method.
type NotFound ¶
type NotFound struct { // Message of error Message string // Identifier of missing collection ID uint }
NotFound is the type returned when attempting to operate with a collection that does not exist.
type RetryPayload ¶
type RetryPayload struct { // Identifier of collection to retry ID uint }
RetryPayload is the payload type of the collection service retry method.
type Service ¶
type Service interface { // List all stored collections List(context.Context, *ListPayload) (res *ListResult, err error) // Show collection by ID Show(context.Context, *ShowPayload) (res *EnduroStoredCollection, err error) // Delete collection by ID Delete(context.Context, *DeletePayload) (err error) // Cancel collection processing by ID Cancel(context.Context, *CancelPayload) (err error) // Retry collection processing by ID Retry(context.Context, *RetryPayload) (err error) // Retrieve workflow status by ID Workflow(context.Context, *WorkflowPayload) (res *EnduroCollectionWorkflowStatus, err error) // Download collection by ID Download(context.Context, *DownloadPayload) (res []byte, err error) // Make decision for a pending collection by ID Decide(context.Context, *DecidePayload) (err error) }
The collection service manages packages being transferred to Archivematica.
type ShowPayload ¶
type ShowPayload struct { // Identifier of collection to show ID uint }
ShowPayload is the payload type of the collection service show method.
type WorkflowPayload ¶
type WorkflowPayload struct { // Identifier of collection to look up ID uint }
WorkflowPayload is the payload type of the collection service workflow method.