Documentation ¶
Index ¶
- Constants
- Variables
- func NewListEndpoint(s Service) goa.Endpoint
- func NewProcessingEndpoint(s Service) goa.Endpoint
- func NewShowEndpoint(s Service) goa.Endpoint
- func NewViewedEnduroStoredPipeline(res *EnduroStoredPipeline, view string) *pipelineviews.EnduroStoredPipeline
- type Client
- type Endpoints
- type EnduroStoredPipeline
- type ListPayload
- type PipelineNotFound
- type ProcessingPayload
- type Service
- type ShowPayload
Constants ¶
const ServiceName = "pipeline"
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 = [3]string{"list", "show", "processing"}
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 NewListEndpoint ¶
NewListEndpoint returns an endpoint function that calls the method "list" of service "pipeline".
func NewProcessingEndpoint ¶ added in v0.34.0
NewProcessingEndpoint returns an endpoint function that calls the method "processing" of service "pipeline".
func NewShowEndpoint ¶
NewShowEndpoint returns an endpoint function that calls the method "show" of service "pipeline".
func NewViewedEnduroStoredPipeline ¶
func NewViewedEnduroStoredPipeline(res *EnduroStoredPipeline, view string) *pipelineviews.EnduroStoredPipeline
NewViewedEnduroStoredPipeline initializes viewed result type EnduroStoredPipeline from result type EnduroStoredPipeline using the given view.
Types ¶
type Client ¶
type Client struct { ListEndpoint goa.Endpoint ShowEndpoint goa.Endpoint ProcessingEndpoint goa.Endpoint }
Client is the "pipeline" service client.
func (*Client) List ¶
func (c *Client) List(ctx context.Context, p *ListPayload) (res []*EnduroStoredPipeline, err error)
List calls the "list" endpoint of the "pipeline" service.
func (*Client) Processing ¶ added in v0.34.0
Processing calls the "processing" endpoint of the "pipeline" service. Processing may return the following errors:
- "not_found" (type *PipelineNotFound): Pipeline not found
- error: internal error
func (*Client) Show ¶
func (c *Client) Show(ctx context.Context, p *ShowPayload) (res *EnduroStoredPipeline, err error)
Show calls the "show" endpoint of the "pipeline" service. Show may return the following errors:
- "not_found" (type *PipelineNotFound): Pipeline not found
- error: internal error
type Endpoints ¶
Endpoints wraps the "pipeline" service endpoints.
func NewEndpoints ¶
NewEndpoints wraps the methods of the "pipeline" service with endpoints.
type EnduroStoredPipeline ¶
type EnduroStoredPipeline struct { // Identifier of pipeline ID *string // Name of the pipeline Name string // Maximum concurrent transfers Capacity *int64 // Current transfers Current *int64 Status *string }
EnduroStoredPipeline is the result type of the pipeline service show method.
func NewEnduroStoredPipeline ¶
func NewEnduroStoredPipeline(vres *pipelineviews.EnduroStoredPipeline) *EnduroStoredPipeline
NewEnduroStoredPipeline initializes result type EnduroStoredPipeline from viewed result type EnduroStoredPipeline.
type ListPayload ¶
ListPayload is the payload type of the pipeline service list method.
type PipelineNotFound ¶ added in v0.34.0
type PipelineNotFound struct { // Message of error Message string // Identifier of missing pipeline ID string }
Pipeline not found.
func (*PipelineNotFound) Error ¶ added in v0.34.0
func (e *PipelineNotFound) Error() string
Error returns an error description.
func (*PipelineNotFound) ErrorName
deprecated
added in
v0.34.0
func (e *PipelineNotFound) ErrorName() string
ErrorName returns "PipelineNotFound".
Deprecated: Use GoaErrorName - https://github.com/goadesign/goa/issues/3105
func (*PipelineNotFound) GoaErrorName ¶ added in v0.37.0
func (e *PipelineNotFound) GoaErrorName() string
GoaErrorName returns "PipelineNotFound".
type ProcessingPayload ¶ added in v0.34.0
type ProcessingPayload struct { // Identifier of pipeline ID string }
ProcessingPayload is the payload type of the pipeline service processing method.
type Service ¶
type Service interface { // List all known pipelines List(context.Context, *ListPayload) (res []*EnduroStoredPipeline, err error) // Show pipeline by ID Show(context.Context, *ShowPayload) (res *EnduroStoredPipeline, err error) // List all processing configurations of a pipeline given its ID Processing(context.Context, *ProcessingPayload) (res []string, err error) }
The pipeline service manages Archivematica pipelines.
type ShowPayload ¶
type ShowPayload struct { // Identifier of pipeline to show ID string }
ShowPayload is the payload type of the pipeline service show method.