client

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCancelPayload

func BuildCancelPayload(collectionCancelID string) (*collection.CancelPayload, error)

BuildCancelPayload builds the payload for the collection cancel endpoint from CLI flags.

func BuildDecidePayload added in v0.22.0

func BuildDecidePayload(collectionDecideBody string, collectionDecideID string) (*collection.DecidePayload, error)

BuildDecidePayload builds the payload for the collection decide endpoint from CLI flags.

func BuildDeletePayload

func BuildDeletePayload(collectionDeleteID string) (*collection.DeletePayload, error)

BuildDeletePayload builds the payload for the collection delete endpoint from CLI flags.

func BuildDownloadPayload added in v0.14.0

func BuildDownloadPayload(collectionDownloadID string) (*collection.DownloadPayload, error)

BuildDownloadPayload builds the payload for the collection download endpoint from CLI flags.

func BuildListPayload

func BuildListPayload(collectionListName string, collectionListOriginalID string, collectionListTransferID string, collectionListAipID string, collectionListPipelineID string, collectionListEarliestCreatedTime string, collectionListLatestCreatedTime string, collectionListStatus string, collectionListCursor string) (*collection.ListPayload, error)

BuildListPayload builds the payload for the collection list endpoint from CLI flags.

func BuildRetryPayload

func BuildRetryPayload(collectionRetryID string) (*collection.RetryPayload, error)

BuildRetryPayload builds the payload for the collection retry endpoint from CLI flags.

func BuildShowPayload

func BuildShowPayload(collectionShowID string) (*collection.ShowPayload, error)

BuildShowPayload builds the payload for the collection show endpoint from CLI flags.

func BuildWorkflowPayload

func BuildWorkflowPayload(collectionWorkflowID string) (*collection.WorkflowPayload, error)

BuildWorkflowPayload builds the payload for the collection workflow endpoint from CLI flags.

func CancelCollectionPath

func CancelCollectionPath(id uint) string

CancelCollectionPath returns the URL path to the collection service cancel HTTP endpoint.

func DecideCollectionPath added in v0.22.0

func DecideCollectionPath(id uint) string

DecideCollectionPath returns the URL path to the collection service decide HTTP endpoint.

func DecodeCancelResponse

func DecodeCancelResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeCancelResponse returns a decoder for responses returned by the collection cancel endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeCancelResponse may return the following errors:

  • "not_found" (type *collection.NotFound): http.StatusNotFound
  • "not_running" (type *goa.ServiceError): http.StatusBadRequest
  • error: internal error

func DecodeDecideResponse added in v0.22.0

func DecodeDecideResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeDecideResponse returns a decoder for responses returned by the collection decide endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeDecideResponse may return the following errors:

  • "not_found" (type *collection.NotFound): http.StatusNotFound
  • "not_valid" (type *goa.ServiceError): http.StatusBadRequest
  • error: internal error

func DecodeDeleteResponse

func DecodeDeleteResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeDeleteResponse returns a decoder for responses returned by the collection delete endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeDeleteResponse may return the following errors:

  • "not_found" (type *collection.NotFound): http.StatusNotFound
  • error: internal error

func DecodeDownloadResponse added in v0.14.0

func DecodeDownloadResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeDownloadResponse returns a decoder for responses returned by the collection download endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeDownloadResponse may return the following errors:

  • "not_found" (type *collection.NotFound): http.StatusNotFound
  • error: internal error

func DecodeListResponse

func DecodeListResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeListResponse returns a decoder for responses returned by the collection list endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeRetryResponse

func DecodeRetryResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeRetryResponse returns a decoder for responses returned by the collection retry endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeRetryResponse may return the following errors:

  • "not_found" (type *collection.NotFound): http.StatusNotFound
  • "not_running" (type *goa.ServiceError): http.StatusBadRequest
  • error: internal error

func DecodeShowResponse

func DecodeShowResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeShowResponse returns a decoder for responses returned by the collection show endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeShowResponse may return the following errors:

  • "not_found" (type *collection.NotFound): http.StatusNotFound
  • error: internal error

func DecodeWorkflowResponse

func DecodeWorkflowResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeWorkflowResponse returns a decoder for responses returned by the collection workflow endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeWorkflowResponse may return the following errors:

  • "not_found" (type *collection.NotFound): http.StatusNotFound
  • error: internal error

func DeleteCollectionPath

func DeleteCollectionPath(id uint) string

DeleteCollectionPath returns the URL path to the collection service delete HTTP endpoint.

func DownloadCollectionPath added in v0.14.0

func DownloadCollectionPath(id uint) string

DownloadCollectionPath returns the URL path to the collection service download HTTP endpoint.

func EncodeDecideRequest added in v0.22.0

func EncodeDecideRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeDecideRequest returns an encoder for requests sent to the collection decide server.

func EncodeListRequest

func EncodeListRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeListRequest returns an encoder for requests sent to the collection list server.

func ListCollectionPath

func ListCollectionPath() string

ListCollectionPath returns the URL path to the collection service list HTTP endpoint.

func NewCancelNotFound

func NewCancelNotFound(body *CancelNotFoundResponseBody) *collection.NotFound

NewCancelNotFound builds a collection service cancel endpoint not_found error.

func NewCancelNotRunning

func NewCancelNotRunning(body *CancelNotRunningResponseBody) *goa.ServiceError

NewCancelNotRunning builds a collection service cancel endpoint not_running error.

func NewDecideNotFound added in v0.22.0

func NewDecideNotFound(body *DecideNotFoundResponseBody) *collection.NotFound

NewDecideNotFound builds a collection service decide endpoint not_found error.

func NewDecideNotValid added in v0.22.0

func NewDecideNotValid(body *DecideNotValidResponseBody) *goa.ServiceError

NewDecideNotValid builds a collection service decide endpoint not_valid error.

func NewDeleteNotFound

func NewDeleteNotFound(body *DeleteNotFoundResponseBody) *collection.NotFound

NewDeleteNotFound builds a collection service delete endpoint not_found error.

func NewDownloadNotFound added in v0.14.0

func NewDownloadNotFound(body *DownloadNotFoundResponseBody) *collection.NotFound

NewDownloadNotFound builds a collection service download endpoint not_found error.

func NewListResultOK added in v0.5.0

func NewListResultOK(body *ListResponseBody) *collection.ListResult

NewListResultOK builds a "collection" service "list" endpoint result from a HTTP "OK" response.

func NewRetryNotFound

func NewRetryNotFound(body *RetryNotFoundResponseBody) *collection.NotFound

NewRetryNotFound builds a collection service retry endpoint not_found error.

func NewRetryNotRunning

func NewRetryNotRunning(body *RetryNotRunningResponseBody) *goa.ServiceError

NewRetryNotRunning builds a collection service retry endpoint not_running error.

func NewShowEnduroStoredCollectionOK

func NewShowEnduroStoredCollectionOK(body *ShowResponseBody) *collectionviews.EnduroStoredCollectionView

NewShowEnduroStoredCollectionOK builds a "collection" service "show" endpoint result from a HTTP "OK" response.

func NewShowNotFound

func NewShowNotFound(body *ShowNotFoundResponseBody) *collection.NotFound

NewShowNotFound builds a collection service show endpoint not_found error.

func NewWorkflowEnduroCollectionWorkflowStatusOK

func NewWorkflowEnduroCollectionWorkflowStatusOK(body *WorkflowResponseBody) *collectionviews.EnduroCollectionWorkflowStatusView

NewWorkflowEnduroCollectionWorkflowStatusOK builds a "collection" service "workflow" endpoint result from a HTTP "OK" response.

func NewWorkflowNotFound

func NewWorkflowNotFound(body *WorkflowNotFoundResponseBody) *collection.NotFound

NewWorkflowNotFound builds a collection service workflow endpoint not_found error.

func RetryCollectionPath

func RetryCollectionPath(id uint) string

RetryCollectionPath returns the URL path to the collection service retry HTTP endpoint.

func ShowCollectionPath

func ShowCollectionPath(id uint) string

ShowCollectionPath returns the URL path to the collection service show HTTP endpoint.

func ValidateCancelNotFoundResponseBody

func ValidateCancelNotFoundResponseBody(body *CancelNotFoundResponseBody) (err error)

ValidateCancelNotFoundResponseBody runs the validations defined on cancel_not_found_response_body

func ValidateCancelNotRunningResponseBody

func ValidateCancelNotRunningResponseBody(body *CancelNotRunningResponseBody) (err error)

ValidateCancelNotRunningResponseBody runs the validations defined on cancel_not_running_response_body

func ValidateDecideNotFoundResponseBody added in v0.22.0

func ValidateDecideNotFoundResponseBody(body *DecideNotFoundResponseBody) (err error)

ValidateDecideNotFoundResponseBody runs the validations defined on decide_not_found_response_body

func ValidateDecideNotValidResponseBody added in v0.22.0

func ValidateDecideNotValidResponseBody(body *DecideNotValidResponseBody) (err error)

ValidateDecideNotValidResponseBody runs the validations defined on decide_not_valid_response_body

func ValidateDeleteNotFoundResponseBody

func ValidateDeleteNotFoundResponseBody(body *DeleteNotFoundResponseBody) (err error)

ValidateDeleteNotFoundResponseBody runs the validations defined on delete_not_found_response_body

func ValidateDownloadNotFoundResponseBody added in v0.14.0

func ValidateDownloadNotFoundResponseBody(body *DownloadNotFoundResponseBody) (err error)

ValidateDownloadNotFoundResponseBody runs the validations defined on download_not_found_response_body

func ValidateEnduroStoredCollectionCollectionResponseBody added in v0.5.0

func ValidateEnduroStoredCollectionCollectionResponseBody(body EnduroStoredCollectionCollectionResponseBody) (err error)

ValidateEnduroStoredCollectionCollectionResponseBody runs the validations defined on EnduroStored-CollectionCollectionResponseBody

func ValidateEnduroStoredCollectionResponseBody added in v0.5.0

func ValidateEnduroStoredCollectionResponseBody(body *EnduroStoredCollectionResponseBody) (err error)

ValidateEnduroStoredCollectionResponseBody runs the validations defined on EnduroStored-CollectionResponseBody

func ValidateListResponseBody added in v0.5.0

func ValidateListResponseBody(body *ListResponseBody) (err error)

ValidateListResponseBody runs the validations defined on ListResponseBody

func ValidateRetryNotFoundResponseBody

func ValidateRetryNotFoundResponseBody(body *RetryNotFoundResponseBody) (err error)

ValidateRetryNotFoundResponseBody runs the validations defined on retry_not_found_response_body

func ValidateRetryNotRunningResponseBody

func ValidateRetryNotRunningResponseBody(body *RetryNotRunningResponseBody) (err error)

ValidateRetryNotRunningResponseBody runs the validations defined on retry_not_running_response_body

func ValidateShowNotFoundResponseBody

func ValidateShowNotFoundResponseBody(body *ShowNotFoundResponseBody) (err error)

ValidateShowNotFoundResponseBody runs the validations defined on show_not_found_response_body

func ValidateWorkflowNotFoundResponseBody

func ValidateWorkflowNotFoundResponseBody(body *WorkflowNotFoundResponseBody) (err error)

ValidateWorkflowNotFoundResponseBody runs the validations defined on workflow_not_found_response_body

func WorkflowCollectionPath

func WorkflowCollectionPath(id uint) string

WorkflowCollectionPath returns the URL path to the collection service workflow HTTP endpoint.

Types

type CancelNotFoundResponseBody

type CancelNotFoundResponseBody struct {
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Identifier of missing collection
	ID *uint `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
}

CancelNotFoundResponseBody is the type of the "collection" service "cancel" endpoint HTTP response body for the "not_found" error.

type CancelNotRunningResponseBody

type CancelNotRunningResponseBody 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"`
}

CancelNotRunningResponseBody is the type of the "collection" service "cancel" endpoint HTTP response body for the "not_running" error.

type Client

type Client struct {
	// List Doer is the HTTP client used to make requests to the list endpoint.
	ListDoer goahttp.Doer

	// Show Doer is the HTTP client used to make requests to the show endpoint.
	ShowDoer goahttp.Doer

	// Delete Doer is the HTTP client used to make requests to the delete endpoint.
	DeleteDoer goahttp.Doer

	// Cancel Doer is the HTTP client used to make requests to the cancel endpoint.
	CancelDoer goahttp.Doer

	// Retry Doer is the HTTP client used to make requests to the retry endpoint.
	RetryDoer goahttp.Doer

	// Workflow Doer is the HTTP client used to make requests to the workflow
	// endpoint.
	WorkflowDoer goahttp.Doer

	// Download Doer is the HTTP client used to make requests to the download
	// endpoint.
	DownloadDoer goahttp.Doer

	// Decide Doer is the HTTP client used to make requests to the decide endpoint.
	DecideDoer 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 collection 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 collection service servers.

func (*Client) BuildCancelRequest

func (c *Client) BuildCancelRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildCancelRequest instantiates a HTTP request object with method and path set to call the "collection" service "cancel" endpoint

func (*Client) BuildDecideRequest added in v0.22.0

func (c *Client) BuildDecideRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildDecideRequest instantiates a HTTP request object with method and path set to call the "collection" service "decide" endpoint

func (*Client) BuildDeleteRequest

func (c *Client) BuildDeleteRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildDeleteRequest instantiates a HTTP request object with method and path set to call the "collection" service "delete" endpoint

func (*Client) BuildDownloadRequest added in v0.14.0

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

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

func (*Client) BuildListRequest

func (c *Client) BuildListRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildListRequest instantiates a HTTP request object with method and path set to call the "collection" service "list" endpoint

func (*Client) BuildRetryRequest

func (c *Client) BuildRetryRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildRetryRequest instantiates a HTTP request object with method and path set to call the "collection" service "retry" endpoint

func (*Client) BuildShowRequest

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

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

func (*Client) BuildWorkflowRequest

func (c *Client) BuildWorkflowRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildWorkflowRequest instantiates a HTTP request object with method and path set to call the "collection" service "workflow" endpoint

func (*Client) Cancel

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

Cancel returns an endpoint that makes HTTP requests to the collection service cancel server.

func (*Client) Decide added in v0.22.0

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

Decide returns an endpoint that makes HTTP requests to the collection service decide server.

func (*Client) Delete

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

Delete returns an endpoint that makes HTTP requests to the collection service delete server.

func (*Client) Download added in v0.14.0

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

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

func (*Client) List

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

List returns an endpoint that makes HTTP requests to the collection service list server.

func (*Client) Retry

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

Retry returns an endpoint that makes HTTP requests to the collection service retry server.

func (*Client) Show

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

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

func (*Client) Workflow

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

Workflow returns an endpoint that makes HTTP requests to the collection service workflow server.

type DecideNotFoundResponseBody added in v0.22.0

type DecideNotFoundResponseBody struct {
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Identifier of missing collection
	ID *uint `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
}

DecideNotFoundResponseBody is the type of the "collection" service "decide" endpoint HTTP response body for the "not_found" error.

type DecideNotValidResponseBody added in v0.22.0

type DecideNotValidResponseBody 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"`
}

DecideNotValidResponseBody is the type of the "collection" service "decide" endpoint HTTP response body for the "not_valid" error.

type DeleteNotFoundResponseBody

type DeleteNotFoundResponseBody struct {
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Identifier of missing collection
	ID *uint `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
}

DeleteNotFoundResponseBody is the type of the "collection" service "delete" endpoint HTTP response body for the "not_found" error.

type DownloadNotFoundResponseBody added in v0.14.0

type DownloadNotFoundResponseBody struct {
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Identifier of missing collection
	ID *uint `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
}

DownloadNotFoundResponseBody is the type of the "collection" service "download" endpoint HTTP response body for the "not_found" error.

type EnduroCollectionWorkflowHistoryCollectionResponseBody

type EnduroCollectionWorkflowHistoryCollectionResponseBody []*EnduroCollectionWorkflowHistoryResponseBody

EnduroCollectionWorkflowHistoryCollectionResponseBody is used to define fields on response body types.

type EnduroCollectionWorkflowHistoryResponseBody

type EnduroCollectionWorkflowHistoryResponseBody struct {
	// Identifier of collection
	ID *uint `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Type of the event
	Type *string `form:"type,omitempty" json:"type,omitempty" xml:"type,omitempty"`
	// Contents of the event
	Details interface{} `form:"details,omitempty" json:"details,omitempty" xml:"details,omitempty"`
}

EnduroCollectionWorkflowHistoryResponseBody is used to define fields on response body types.

type EnduroStoredCollectionCollectionResponseBody added in v0.5.0

type EnduroStoredCollectionCollectionResponseBody []*EnduroStoredCollectionResponseBody

EnduroStoredCollectionCollectionResponseBody is used to define fields on response body types.

type EnduroStoredCollectionResponseBody added in v0.5.0

type EnduroStoredCollectionResponseBody struct {
	// Identifier of collection
	ID *uint `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Name of the collection
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// Status of the collection
	Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// Identifier of processing workflow
	WorkflowID *string `form:"workflow_id,omitempty" json:"workflow_id,omitempty" xml:"workflow_id,omitempty"`
	// Identifier of latest processing workflow run
	RunID *string `form:"run_id,omitempty" json:"run_id,omitempty" xml:"run_id,omitempty"`
	// Identifier of Archivematica transfer
	TransferID *string `form:"transfer_id,omitempty" json:"transfer_id,omitempty" xml:"transfer_id,omitempty"`
	// Identifier of Archivematica AIP
	AipID *string `form:"aip_id,omitempty" json:"aip_id,omitempty" xml:"aip_id,omitempty"`
	// Identifier provided by the client
	OriginalID *string `form:"original_id,omitempty" json:"original_id,omitempty" xml:"original_id,omitempty"`
	// Identifier of Archivematica pipeline
	PipelineID *string `form:"pipeline_id,omitempty" json:"pipeline_id,omitempty" xml:"pipeline_id,omitempty"`
	// Creation datetime
	CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"`
	// Start datetime
	StartedAt *string `form:"started_at,omitempty" json:"started_at,omitempty" xml:"started_at,omitempty"`
	// Completion datetime
	CompletedAt *string `form:"completed_at,omitempty" json:"completed_at,omitempty" xml:"completed_at,omitempty"`
}

EnduroStoredCollectionResponseBody is used to define fields on response body types.

type ListResponseBody

type ListResponseBody struct {
	Items      EnduroStoredCollectionCollectionResponseBody `form:"items,omitempty" json:"items,omitempty" xml:"items,omitempty"`
	NextCursor *string                                      `form:"next_cursor,omitempty" json:"next_cursor,omitempty" xml:"next_cursor,omitempty"`
}

ListResponseBody is the type of the "collection" service "list" endpoint HTTP response body.

type RetryNotFoundResponseBody

type RetryNotFoundResponseBody struct {
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Identifier of missing collection
	ID *uint `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
}

RetryNotFoundResponseBody is the type of the "collection" service "retry" endpoint HTTP response body for the "not_found" error.

type RetryNotRunningResponseBody

type RetryNotRunningResponseBody 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"`
}

RetryNotRunningResponseBody is the type of the "collection" service "retry" endpoint HTTP response body for the "not_running" error.

type ShowNotFoundResponseBody

type ShowNotFoundResponseBody struct {
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Identifier of missing collection
	ID *uint `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
}

ShowNotFoundResponseBody is the type of the "collection" service "show" endpoint HTTP response body for the "not_found" error.

type ShowResponseBody

type ShowResponseBody struct {
	// Identifier of collection
	ID *uint `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Name of the collection
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// Status of the collection
	Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// Identifier of processing workflow
	WorkflowID *string `form:"workflow_id,omitempty" json:"workflow_id,omitempty" xml:"workflow_id,omitempty"`
	// Identifier of latest processing workflow run
	RunID *string `form:"run_id,omitempty" json:"run_id,omitempty" xml:"run_id,omitempty"`
	// Identifier of Archivematica transfer
	TransferID *string `form:"transfer_id,omitempty" json:"transfer_id,omitempty" xml:"transfer_id,omitempty"`
	// Identifier of Archivematica AIP
	AipID *string `form:"aip_id,omitempty" json:"aip_id,omitempty" xml:"aip_id,omitempty"`
	// Identifier provided by the client
	OriginalID *string `form:"original_id,omitempty" json:"original_id,omitempty" xml:"original_id,omitempty"`
	// Identifier of Archivematica pipeline
	PipelineID *string `form:"pipeline_id,omitempty" json:"pipeline_id,omitempty" xml:"pipeline_id,omitempty"`
	// Creation datetime
	CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"`
	// Start datetime
	StartedAt *string `form:"started_at,omitempty" json:"started_at,omitempty" xml:"started_at,omitempty"`
	// Completion datetime
	CompletedAt *string `form:"completed_at,omitempty" json:"completed_at,omitempty" xml:"completed_at,omitempty"`
}

ShowResponseBody is the type of the "collection" service "show" endpoint HTTP response body.

type WorkflowNotFoundResponseBody

type WorkflowNotFoundResponseBody struct {
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Identifier of missing collection
	ID *uint `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
}

WorkflowNotFoundResponseBody is the type of the "collection" service "workflow" endpoint HTTP response body for the "not_found" error.

type WorkflowResponseBody

type WorkflowResponseBody struct {
	Status  *string                                               `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	History EnduroCollectionWorkflowHistoryCollectionResponseBody `form:"history,omitempty" json:"history,omitempty" xml:"history,omitempty"`
}

WorkflowResponseBody is the type of the "collection" service "workflow" endpoint HTTP response body.

Jump to

Keyboard shortcuts

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