Documentation ¶
Index ¶
- Constants
- Variables
- func NewListEndpoint(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 NotFound
- 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 = [2]string{"list", "show"}
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 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 ¶
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) 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 *NotFound): Collection 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 { // Name of the collection ID *string // Name of the collection Name 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 ¶
type ListPayload struct {
Name *string
}
ListPayload is the payload type of the pipeline 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 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) }
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.