Documentation ¶
Index ¶
Constants ¶
const APIName = "publisher"
APIName is the name of the API as defined in the design.
const APIVersion = "1.0.0"
APIVersion is the version of the API as defined in the design.
const ServiceName = "fileserver"
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{"request-to-publish", "query-publishing-status"}
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 NewQueryPublishingStatusEndpoint ¶
NewQueryPublishingStatusEndpoint returns an endpoint function that calls the method "query-publishing-status" of service "fileserver".
func NewRequestToPublishEndpoint ¶
NewRequestToPublishEndpoint returns an endpoint function that calls the method "request-to-publish" of service "fileserver".
Types ¶
type Client ¶
type Client struct { RequestToPublishEndpoint goa.Endpoint QueryPublishingStatusEndpoint goa.Endpoint }
Client is the "fileserver" service client.
func (*Client) QueryPublishingStatus ¶
func (c *Client) QueryPublishingStatus(ctx context.Context, p *QueryPublishingStatusPayload) (res string, err error)
QueryPublishingStatus calls the "query-publishing-status" endpoint of the "fileserver" service.
func (*Client) RequestToPublish ¶
func (c *Client) RequestToPublish(ctx context.Context, p *RequestToPublishPayload) (res []string, err error)
RequestToPublish calls the "request-to-publish" endpoint of the "fileserver" service.
type Endpoints ¶
Endpoints wraps the "fileserver" service endpoints.
func NewEndpoints ¶
NewEndpoints wraps the methods of the "fileserver" service with endpoints.
type QueryPublishingStatusPayload ¶
type QueryPublishingStatusPayload struct { // request track id RequestID string }
QueryPublishingStatusPayload is the payload type of the fileserver service query-publishing-status method.
type RequestToPublishPayload ¶
type RequestToPublishPayload struct { // The full url of the pushed OCI artifact, contain the tag part. It will parse // the repo from it. ArtifactURL string }
RequestToPublishPayload is the payload type of the fileserver service request-to-publish method.
type Service ¶
type Service interface { // RequestToPublish implements request-to-publish. RequestToPublish(context.Context, *RequestToPublishPayload) (res []string, err error) // QueryPublishingStatus implements query-publishing-status. QueryPublishingStatus(context.Context, *QueryPublishingStatusPayload) (res string, err error) }
Publisher service for static file server