diff --git a/.github/workflows/goa-gen-dependabot.yml b/.github/workflows/goa-gen-dependabot.yml index bb20e801a4..69fe3b8208 100644 --- a/.github/workflows/goa-gen-dependabot.yml +++ b/.github/workflows/goa-gen-dependabot.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/setup-go@v2 with: - go-version: 1.18.x + go-version: 1.19.x - uses: actions/checkout@v2 - name: Goa bump run: | diff --git a/api/gen/admin/client.go b/api/gen/admin/client.go index 833e553164..76daec20b1 100644 --- a/api/gen/admin/client.go +++ b/api/gen/admin/client.go @@ -29,11 +29,11 @@ func NewClient(updateAgent, refreshConfig goa.Endpoint) *Client { // UpdateAgent calls the "UpdateAgent" endpoint of the "admin" service. // UpdateAgent may return the following errors: -// - "invalid-payload" (type *goa.ServiceError): Invalid request body -// - "invalid-token" (type *goa.ServiceError): Invalid User token -// - "invalid-scopes" (type *goa.ServiceError): Invalid Token scopes -// - "internal-error" (type *goa.ServiceError): Internal server error -// - error: internal error +// - "invalid-payload" (type *goa.ServiceError): Invalid request body +// - "invalid-token" (type *goa.ServiceError): Invalid User token +// - "invalid-scopes" (type *goa.ServiceError): Invalid Token scopes +// - "internal-error" (type *goa.ServiceError): Internal server error +// - error: internal error func (c *Client) UpdateAgent(ctx context.Context, p *UpdateAgentPayload) (res *UpdateAgentResult, err error) { var ires interface{} ires, err = c.UpdateAgentEndpoint(ctx, p) @@ -45,11 +45,11 @@ func (c *Client) UpdateAgent(ctx context.Context, p *UpdateAgentPayload) (res *U // RefreshConfig calls the "RefreshConfig" endpoint of the "admin" service. // RefreshConfig may return the following errors: -// - "invalid-payload" (type *goa.ServiceError): Invalid request body -// - "invalid-token" (type *goa.ServiceError): Invalid User token -// - "invalid-scopes" (type *goa.ServiceError): Invalid Token scopes -// - "internal-error" (type *goa.ServiceError): Internal server error -// - error: internal error +// - "invalid-payload" (type *goa.ServiceError): Invalid request body +// - "invalid-token" (type *goa.ServiceError): Invalid User token +// - "invalid-scopes" (type *goa.ServiceError): Invalid Token scopes +// - "internal-error" (type *goa.ServiceError): Internal server error +// - error: internal error func (c *Client) RefreshConfig(ctx context.Context, p *RefreshConfigPayload) (res *RefreshConfigResult, err error) { var ires interface{} ires, err = c.RefreshConfigEndpoint(ctx, p) diff --git a/api/gen/catalog/client.go b/api/gen/catalog/client.go index 155a9989dd..cb4b2c9b1f 100644 --- a/api/gen/catalog/client.go +++ b/api/gen/catalog/client.go @@ -31,9 +31,9 @@ func NewClient(refresh, refreshAll, catalogError goa.Endpoint) *Client { // Refresh calls the "Refresh" endpoint of the "catalog" service. // Refresh may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - error: internal error func (c *Client) Refresh(ctx context.Context, p *RefreshPayload) (res *Job, err error) { var ires interface{} ires, err = c.RefreshEndpoint(ctx, p) @@ -45,9 +45,9 @@ func (c *Client) Refresh(ctx context.Context, p *RefreshPayload) (res *Job, err // RefreshAll calls the "RefreshAll" endpoint of the "catalog" service. // RefreshAll may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - error: internal error func (c *Client) RefreshAll(ctx context.Context, p *RefreshAllPayload) (res []*Job, err error) { var ires interface{} ires, err = c.RefreshAllEndpoint(ctx, p) @@ -59,9 +59,9 @@ func (c *Client) RefreshAll(ctx context.Context, p *RefreshAllPayload) (res []*J // CatalogError calls the "CatalogError" endpoint of the "catalog" service. // CatalogError may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - error: internal error func (c *Client) CatalogError(ctx context.Context, p *CatalogErrorPayload) (res *CatalogErrorResult, err error) { var ires interface{} ires, err = c.CatalogErrorEndpoint(ctx, p) diff --git a/api/gen/category/client.go b/api/gen/category/client.go index bd640f5712..b764805e33 100644 --- a/api/gen/category/client.go +++ b/api/gen/category/client.go @@ -27,8 +27,8 @@ func NewClient(list goa.Endpoint) *Client { // List calls the "list" endpoint of the "category" service. // List may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - error: internal error func (c *Client) List(ctx context.Context) (res *ListResult, err error) { var ires interface{} ires, err = c.ListEndpoint(ctx, nil) diff --git a/api/gen/http/admin/client/encode_decode.go b/api/gen/http/admin/client/encode_decode.go index 873c5af750..acd836458b 100644 --- a/api/gen/http/admin/client/encode_decode.go +++ b/api/gen/http/admin/client/encode_decode.go @@ -62,11 +62,11 @@ func EncodeUpdateAgentRequest(encoder func(*http.Request) goahttp.Encoder) func( // admin UpdateAgent endpoint. restoreBody controls whether the response body // should be restored after having been read. // DecodeUpdateAgentResponse may return the following errors: -// - "invalid-payload" (type *goa.ServiceError): http.StatusBadRequest -// - "invalid-token" (type *goa.ServiceError): http.StatusUnauthorized -// - "invalid-scopes" (type *goa.ServiceError): http.StatusForbidden -// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError -// - error: internal error +// - "invalid-payload" (type *goa.ServiceError): http.StatusBadRequest +// - "invalid-token" (type *goa.ServiceError): http.StatusUnauthorized +// - "invalid-scopes" (type *goa.ServiceError): http.StatusForbidden +// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError +// - error: internal error func DecodeUpdateAgentResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) { if restoreBody { @@ -199,10 +199,10 @@ func EncodeRefreshConfigRequest(encoder func(*http.Request) goahttp.Encoder) fun // admin RefreshConfig endpoint. restoreBody controls whether the response body // should be restored after having been read. // DecodeRefreshConfigResponse may return the following errors: -// - "invalid-token" (type *goa.ServiceError): http.StatusUnauthorized -// - "invalid-scopes" (type *goa.ServiceError): http.StatusForbidden -// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError -// - error: internal error +// - "invalid-token" (type *goa.ServiceError): http.StatusUnauthorized +// - "invalid-scopes" (type *goa.ServiceError): http.StatusForbidden +// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError +// - error: internal error func DecodeRefreshConfigResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) { if restoreBody { diff --git a/api/gen/http/catalog/client/encode_decode.go b/api/gen/http/catalog/client/encode_decode.go index bb4e71c4f3..5a2fa68cca 100644 --- a/api/gen/http/catalog/client/encode_decode.go +++ b/api/gen/http/catalog/client/encode_decode.go @@ -70,9 +70,9 @@ func EncodeRefreshRequest(encoder func(*http.Request) goahttp.Encoder) func(*htt // catalog Refresh endpoint. restoreBody controls whether the response body // should be restored after having been read. // DecodeRefreshResponse may return the following errors: -// - "not-found" (type *goa.ServiceError): http.StatusNotFound -// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError -// - error: internal error +// - "not-found" (type *goa.ServiceError): http.StatusNotFound +// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError +// - error: internal error func DecodeRefreshResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) { if restoreBody { @@ -179,8 +179,8 @@ func EncodeRefreshAllRequest(encoder func(*http.Request) goahttp.Encoder) func(* // catalog RefreshAll endpoint. restoreBody controls whether the response body // should be restored after having been read. // DecodeRefreshAllResponse may return the following errors: -// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError -// - error: internal error +// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError +// - error: internal error func DecodeRefreshAllResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) { if restoreBody { @@ -287,8 +287,8 @@ func EncodeCatalogErrorRequest(encoder func(*http.Request) goahttp.Encoder) func // catalog CatalogError endpoint. restoreBody controls whether the response // body should be restored after having been read. // DecodeCatalogErrorResponse may return the following errors: -// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError -// - error: internal error +// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError +// - error: internal error func DecodeCatalogErrorResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) { if restoreBody { diff --git a/api/gen/http/category/client/encode_decode.go b/api/gen/http/category/client/encode_decode.go index 01880cb3bb..f399c2b31e 100644 --- a/api/gen/http/category/client/encode_decode.go +++ b/api/gen/http/category/client/encode_decode.go @@ -37,8 +37,8 @@ func (c *Client) BuildListRequest(ctx context.Context, v interface{}) (*http.Req // list endpoint. restoreBody controls whether the response body should be // restored after having been read. // DecodeListResponse may return the following errors: -// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError -// - error: internal error +// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError +// - error: internal error func DecodeListResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) { if restoreBody { diff --git a/api/gen/http/cli/hub/cli.go b/api/gen/http/cli/hub/cli.go index a2ed9f75eb..884eed6b2d 100644 --- a/api/gen/http/cli/hub/cli.go +++ b/api/gen/http/cli/hub/cli.go @@ -25,8 +25,7 @@ import ( // UsageCommands returns the set of commands and sub-commands using the format // -// command (subcommand1|subcommand2|...) -// +// command (subcommand1|subcommand2|...) func UsageCommands() string { return `admin (update-agent|refresh-config) catalog (refresh|refresh-all|catalog-error) diff --git a/api/gen/http/rating/client/encode_decode.go b/api/gen/http/rating/client/encode_decode.go index c5a63acfd7..f39bf2fd91 100644 --- a/api/gen/http/rating/client/encode_decode.go +++ b/api/gen/http/rating/client/encode_decode.go @@ -68,11 +68,11 @@ func EncodeGetRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Re // endpoint. restoreBody controls whether the response body should be restored // after having been read. // DecodeGetResponse may return the following errors: -// - "not-found" (type *goa.ServiceError): http.StatusNotFound -// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError -// - "invalid-token" (type *goa.ServiceError): http.StatusUnauthorized -// - "invalid-scopes" (type *goa.ServiceError): http.StatusForbidden -// - error: internal error +// - "not-found" (type *goa.ServiceError): http.StatusNotFound +// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError +// - "invalid-token" (type *goa.ServiceError): http.StatusUnauthorized +// - "invalid-scopes" (type *goa.ServiceError): http.StatusForbidden +// - error: internal error func DecodeGetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) { if restoreBody { @@ -219,11 +219,11 @@ func EncodeUpdateRequest(encoder func(*http.Request) goahttp.Encoder) func(*http // Update endpoint. restoreBody controls whether the response body should be // restored after having been read. // DecodeUpdateResponse may return the following errors: -// - "not-found" (type *goa.ServiceError): http.StatusNotFound -// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError -// - "invalid-token" (type *goa.ServiceError): http.StatusUnauthorized -// - "invalid-scopes" (type *goa.ServiceError): http.StatusForbidden -// - error: internal error +// - "not-found" (type *goa.ServiceError): http.StatusNotFound +// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError +// - "invalid-token" (type *goa.ServiceError): http.StatusUnauthorized +// - "invalid-scopes" (type *goa.ServiceError): http.StatusForbidden +// - error: internal error func DecodeUpdateResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) { if restoreBody { diff --git a/api/gen/rating/client.go b/api/gen/rating/client.go index 719cbaa428..42f6857129 100644 --- a/api/gen/rating/client.go +++ b/api/gen/rating/client.go @@ -29,11 +29,11 @@ func NewClient(get, update goa.Endpoint) *Client { // Get calls the "Get" endpoint of the "rating" service. // Get may return the following errors: -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - "internal-error" (type *goa.ServiceError): Internal server error -// - "invalid-token" (type *goa.ServiceError): Invalid User token -// - "invalid-scopes" (type *goa.ServiceError): Invalid User scope -// - error: internal error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - "internal-error" (type *goa.ServiceError): Internal server error +// - "invalid-token" (type *goa.ServiceError): Invalid User token +// - "invalid-scopes" (type *goa.ServiceError): Invalid User scope +// - error: internal error func (c *Client) Get(ctx context.Context, p *GetPayload) (res *GetResult, err error) { var ires interface{} ires, err = c.GetEndpoint(ctx, p) @@ -45,11 +45,11 @@ func (c *Client) Get(ctx context.Context, p *GetPayload) (res *GetResult, err er // Update calls the "Update" endpoint of the "rating" service. // Update may return the following errors: -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - "internal-error" (type *goa.ServiceError): Internal server error -// - "invalid-token" (type *goa.ServiceError): Invalid User token -// - "invalid-scopes" (type *goa.ServiceError): Invalid User scope -// - error: internal error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - "internal-error" (type *goa.ServiceError): Internal server error +// - "invalid-token" (type *goa.ServiceError): Invalid User token +// - "invalid-scopes" (type *goa.ServiceError): Invalid User scope +// - error: internal error func (c *Client) Update(ctx context.Context, p *UpdatePayload) (err error) { _, err = c.UpdateEndpoint(ctx, p) return diff --git a/api/gen/resource/client.go b/api/gen/resource/client.go index 4e8491a157..a5568521bf 100644 --- a/api/gen/resource/client.go +++ b/api/gen/resource/client.go @@ -39,9 +39,9 @@ func NewClient(query, list, versionsByID, byCatalogKindNameVersion, byVersionID, // Query calls the "Query" endpoint of the "resource" service. // Query may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - error: internal error func (c *Client) Query(ctx context.Context, p *QueryPayload) (res *QueryResult, err error) { var ires interface{} ires, err = c.QueryEndpoint(ctx, p) @@ -53,9 +53,9 @@ func (c *Client) Query(ctx context.Context, p *QueryPayload) (res *QueryResult, // List calls the "List" endpoint of the "resource" service. // List may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - error: internal error func (c *Client) List(ctx context.Context) (res *Resources, err error) { var ires interface{} ires, err = c.ListEndpoint(ctx, nil) @@ -67,9 +67,9 @@ func (c *Client) List(ctx context.Context) (res *Resources, err error) { // VersionsByID calls the "VersionsByID" endpoint of the "resource" service. // VersionsByID may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - error: internal error func (c *Client) VersionsByID(ctx context.Context, p *VersionsByIDPayload) (res *VersionsByIDResult, err error) { var ires interface{} ires, err = c.VersionsByIDEndpoint(ctx, p) @@ -82,9 +82,9 @@ func (c *Client) VersionsByID(ctx context.Context, p *VersionsByIDPayload) (res // ByCatalogKindNameVersion calls the "ByCatalogKindNameVersion" endpoint of // the "resource" service. // ByCatalogKindNameVersion may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - error: internal error func (c *Client) ByCatalogKindNameVersion(ctx context.Context, p *ByCatalogKindNameVersionPayload) (res *ByCatalogKindNameVersionResult, err error) { var ires interface{} ires, err = c.ByCatalogKindNameVersionEndpoint(ctx, p) @@ -96,9 +96,9 @@ func (c *Client) ByCatalogKindNameVersion(ctx context.Context, p *ByCatalogKindN // ByVersionID calls the "ByVersionId" endpoint of the "resource" service. // ByVersionID may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - error: internal error func (c *Client) ByVersionID(ctx context.Context, p *ByVersionIDPayload) (res *ByVersionIDResult, err error) { var ires interface{} ires, err = c.ByVersionIDEndpoint(ctx, p) @@ -111,9 +111,9 @@ func (c *Client) ByVersionID(ctx context.Context, p *ByVersionIDPayload) (res *B // ByCatalogKindName calls the "ByCatalogKindName" endpoint of the "resource" // service. // ByCatalogKindName may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - error: internal error func (c *Client) ByCatalogKindName(ctx context.Context, p *ByCatalogKindNamePayload) (res *ByCatalogKindNameResult, err error) { var ires interface{} ires, err = c.ByCatalogKindNameEndpoint(ctx, p) @@ -125,9 +125,9 @@ func (c *Client) ByCatalogKindName(ctx context.Context, p *ByCatalogKindNamePayl // ByID calls the "ById" endpoint of the "resource" service. // ByID may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - error: internal error func (c *Client) ByID(ctx context.Context, p *ByIDPayload) (res *ByIDResult, err error) { var ires interface{} ires, err = c.ByIDEndpoint(ctx, p) diff --git a/api/v1/gen/catalog/client.go b/api/v1/gen/catalog/client.go index a679341a06..4d069888d5 100644 --- a/api/v1/gen/catalog/client.go +++ b/api/v1/gen/catalog/client.go @@ -27,8 +27,8 @@ func NewClient(list goa.Endpoint) *Client { // List calls the "List" endpoint of the "catalog" service. // List may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - error: internal error func (c *Client) List(ctx context.Context) (res *ListResult, err error) { var ires interface{} ires, err = c.ListEndpoint(ctx, nil) diff --git a/api/v1/gen/http/catalog/client/encode_decode.go b/api/v1/gen/http/catalog/client/encode_decode.go index 4f2168657d..dddbd5b428 100644 --- a/api/v1/gen/http/catalog/client/encode_decode.go +++ b/api/v1/gen/http/catalog/client/encode_decode.go @@ -37,8 +37,8 @@ func (c *Client) BuildListRequest(ctx context.Context, v interface{}) (*http.Req // List endpoint. restoreBody controls whether the response body should be // restored after having been read. // DecodeListResponse may return the following errors: -// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError -// - error: internal error +// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError +// - error: internal error func DecodeListResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) { if restoreBody { diff --git a/api/v1/gen/http/cli/hub/cli.go b/api/v1/gen/http/cli/hub/cli.go index 7c2368a12b..ebadbed3c8 100644 --- a/api/v1/gen/http/cli/hub/cli.go +++ b/api/v1/gen/http/cli/hub/cli.go @@ -21,8 +21,7 @@ import ( // UsageCommands returns the set of commands and sub-commands using the format // -// command (subcommand1|subcommand2|...) -// +// command (subcommand1|subcommand2|...) func UsageCommands() string { return `catalog list resource (query|list|versions-by-id|by-catalog-kind-name-version|by-catalog-kind-name-version-readme|by-catalog-kind-name-version-yaml|by-version-id|by-catalog-kind-name|by-id|get-raw-yaml-by-catalog-kind-name-version) diff --git a/api/v1/gen/http/resource/client/encode_decode.go b/api/v1/gen/http/resource/client/encode_decode.go index d1a5cf35a2..80db8d9e1a 100644 --- a/api/v1/gen/http/resource/client/encode_decode.go +++ b/api/v1/gen/http/resource/client/encode_decode.go @@ -71,10 +71,10 @@ func EncodeQueryRequest(encoder func(*http.Request) goahttp.Encoder) func(*http. // Query endpoint. restoreBody controls whether the response body should be // restored after having been read. // DecodeQueryResponse may return the following errors: -// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError -// - "invalid-kind" (type *goa.ServiceError): http.StatusBadRequest -// - "not-found" (type *goa.ServiceError): http.StatusNotFound -// - error: internal error +// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError +// - "invalid-kind" (type *goa.ServiceError): http.StatusBadRequest +// - "not-found" (type *goa.ServiceError): http.StatusNotFound +// - error: internal error func DecodeQueryResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) { if restoreBody { @@ -190,9 +190,9 @@ func EncodeListRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.R // List endpoint. restoreBody controls whether the response body should be // restored after having been read. // DecodeListResponse may return the following errors: -// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError -// - "not-found" (type *goa.ServiceError): http.StatusNotFound -// - error: internal error +// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError +// - "not-found" (type *goa.ServiceError): http.StatusNotFound +// - error: internal error func DecodeListResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) { if restoreBody { @@ -289,9 +289,9 @@ func (c *Client) BuildVersionsByIDRequest(ctx context.Context, v interface{}) (* // resource VersionsByID endpoint. restoreBody controls whether the response // body should be restored after having been read. // DecodeVersionsByIDResponse may return the following errors: -// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError -// - "not-found" (type *goa.ServiceError): http.StatusNotFound -// - error: internal error +// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError +// - "not-found" (type *goa.ServiceError): http.StatusNotFound +// - error: internal error func DecodeVersionsByIDResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) { if restoreBody { @@ -395,9 +395,9 @@ func (c *Client) BuildByCatalogKindNameVersionRequest(ctx context.Context, v int // returned by the resource ByCatalogKindNameVersion endpoint. restoreBody // controls whether the response body should be restored after having been read. // DecodeByCatalogKindNameVersionResponse may return the following errors: -// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError -// - "not-found" (type *goa.ServiceError): http.StatusNotFound -// - error: internal error +// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError +// - "not-found" (type *goa.ServiceError): http.StatusNotFound +// - error: internal error func DecodeByCatalogKindNameVersionResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) { if restoreBody { @@ -502,9 +502,9 @@ func (c *Client) BuildByCatalogKindNameVersionReadmeRequest(ctx context.Context, // restoreBody controls whether the response body should be restored after // having been read. // DecodeByCatalogKindNameVersionReadmeResponse may return the following errors: -// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError -// - "not-found" (type *goa.ServiceError): http.StatusNotFound -// - error: internal error +// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError +// - "not-found" (type *goa.ServiceError): http.StatusNotFound +// - error: internal error func DecodeByCatalogKindNameVersionReadmeResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) { if restoreBody { @@ -608,9 +608,9 @@ func (c *Client) BuildByCatalogKindNameVersionYamlRequest(ctx context.Context, v // returned by the resource ByCatalogKindNameVersionYaml endpoint. restoreBody // controls whether the response body should be restored after having been read. // DecodeByCatalogKindNameVersionYamlResponse may return the following errors: -// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError -// - "not-found" (type *goa.ServiceError): http.StatusNotFound -// - error: internal error +// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError +// - "not-found" (type *goa.ServiceError): http.StatusNotFound +// - error: internal error func DecodeByCatalogKindNameVersionYamlResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) { if restoreBody { @@ -707,9 +707,9 @@ func (c *Client) BuildByVersionIDRequest(ctx context.Context, v interface{}) (*h // resource ByVersionId endpoint. restoreBody controls whether the response // body should be restored after having been read. // DecodeByVersionIDResponse may return the following errors: -// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError -// - "not-found" (type *goa.ServiceError): http.StatusNotFound -// - error: internal error +// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError +// - "not-found" (type *goa.ServiceError): http.StatusNotFound +// - error: internal error func DecodeByVersionIDResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) { if restoreBody { @@ -827,9 +827,9 @@ func EncodeByCatalogKindNameRequest(encoder func(*http.Request) goahttp.Encoder) // the resource ByCatalogKindName endpoint. restoreBody controls whether the // response body should be restored after having been read. // DecodeByCatalogKindNameResponse may return the following errors: -// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError -// - "not-found" (type *goa.ServiceError): http.StatusNotFound -// - error: internal error +// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError +// - "not-found" (type *goa.ServiceError): http.StatusNotFound +// - error: internal error func DecodeByCatalogKindNameResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) { if restoreBody { @@ -926,9 +926,9 @@ func (c *Client) BuildByIDRequest(ctx context.Context, v interface{}) (*http.Req // ById endpoint. restoreBody controls whether the response body should be // restored after having been read. // DecodeByIDResponse may return the following errors: -// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError -// - "not-found" (type *goa.ServiceError): http.StatusNotFound -// - error: internal error +// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError +// - "not-found" (type *goa.ServiceError): http.StatusNotFound +// - error: internal error func DecodeByIDResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) { if restoreBody { @@ -1034,9 +1034,9 @@ func (c *Client) BuildGetRawYamlByCatalogKindNameVersionRequest(ctx context.Cont // after having been read. // DecodeGetRawYamlByCatalogKindNameVersionResponse may return the following // errors: -// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError -// - "not-found" (type *goa.ServiceError): http.StatusNotFound -// - error: internal error +// - "internal-error" (type *goa.ServiceError): http.StatusInternalServerError +// - "not-found" (type *goa.ServiceError): http.StatusNotFound +// - error: internal error func DecodeGetRawYamlByCatalogKindNameVersionResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) { if restoreBody { diff --git a/api/v1/gen/resource/client.go b/api/v1/gen/resource/client.go index 1c0f757752..abefbd54a7 100644 --- a/api/v1/gen/resource/client.go +++ b/api/v1/gen/resource/client.go @@ -46,10 +46,10 @@ func NewClient(query, list, versionsByID, byCatalogKindNameVersion, byCatalogKin // Query calls the "Query" endpoint of the "resource" service. // Query may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind +// - error: internal error func (c *Client) Query(ctx context.Context, p *QueryPayload) (res *Resources, err error) { var ires interface{} ires, err = c.QueryEndpoint(ctx, p) @@ -61,10 +61,10 @@ func (c *Client) Query(ctx context.Context, p *QueryPayload) (res *Resources, er // List calls the "List" endpoint of the "resource" service. // List may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind +// - error: internal error func (c *Client) List(ctx context.Context, p *ListPayload) (res *Resources, err error) { var ires interface{} ires, err = c.ListEndpoint(ctx, p) @@ -76,10 +76,10 @@ func (c *Client) List(ctx context.Context, p *ListPayload) (res *Resources, err // VersionsByID calls the "VersionsByID" endpoint of the "resource" service. // VersionsByID may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind +// - error: internal error func (c *Client) VersionsByID(ctx context.Context, p *VersionsByIDPayload) (res *ResourceVersions, err error) { var ires interface{} ires, err = c.VersionsByIDEndpoint(ctx, p) @@ -92,10 +92,10 @@ func (c *Client) VersionsByID(ctx context.Context, p *VersionsByIDPayload) (res // ByCatalogKindNameVersion calls the "ByCatalogKindNameVersion" endpoint of // the "resource" service. // ByCatalogKindNameVersion may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind +// - error: internal error func (c *Client) ByCatalogKindNameVersion(ctx context.Context, p *ByCatalogKindNameVersionPayload) (res *ResourceVersion, err error) { var ires interface{} ires, err = c.ByCatalogKindNameVersionEndpoint(ctx, p) @@ -108,10 +108,10 @@ func (c *Client) ByCatalogKindNameVersion(ctx context.Context, p *ByCatalogKindN // ByCatalogKindNameVersionReadme calls the "ByCatalogKindNameVersionReadme" // endpoint of the "resource" service. // ByCatalogKindNameVersionReadme may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind +// - error: internal error func (c *Client) ByCatalogKindNameVersionReadme(ctx context.Context, p *ByCatalogKindNameVersionReadmePayload) (res *ResourceVersionReadme, err error) { var ires interface{} ires, err = c.ByCatalogKindNameVersionReadmeEndpoint(ctx, p) @@ -124,10 +124,10 @@ func (c *Client) ByCatalogKindNameVersionReadme(ctx context.Context, p *ByCatalo // ByCatalogKindNameVersionYaml calls the "ByCatalogKindNameVersionYaml" // endpoint of the "resource" service. // ByCatalogKindNameVersionYaml may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind +// - error: internal error func (c *Client) ByCatalogKindNameVersionYaml(ctx context.Context, p *ByCatalogKindNameVersionYamlPayload) (res *ResourceVersionYaml, err error) { var ires interface{} ires, err = c.ByCatalogKindNameVersionYamlEndpoint(ctx, p) @@ -139,10 +139,10 @@ func (c *Client) ByCatalogKindNameVersionYaml(ctx context.Context, p *ByCatalogK // ByVersionID calls the "ByVersionId" endpoint of the "resource" service. // ByVersionID may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind +// - error: internal error func (c *Client) ByVersionID(ctx context.Context, p *ByVersionIDPayload) (res *ResourceVersion, err error) { var ires interface{} ires, err = c.ByVersionIDEndpoint(ctx, p) @@ -155,10 +155,10 @@ func (c *Client) ByVersionID(ctx context.Context, p *ByVersionIDPayload) (res *R // ByCatalogKindName calls the "ByCatalogKindName" endpoint of the "resource" // service. // ByCatalogKindName may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind +// - error: internal error func (c *Client) ByCatalogKindName(ctx context.Context, p *ByCatalogKindNamePayload) (res *Resource, err error) { var ires interface{} ires, err = c.ByCatalogKindNameEndpoint(ctx, p) @@ -170,10 +170,10 @@ func (c *Client) ByCatalogKindName(ctx context.Context, p *ByCatalogKindNamePayl // ByID calls the "ById" endpoint of the "resource" service. // ByID may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind +// - error: internal error func (c *Client) ByID(ctx context.Context, p *ByIDPayload) (res *Resource, err error) { var ires interface{} ires, err = c.ByIDEndpoint(ctx, p) @@ -186,10 +186,10 @@ func (c *Client) ByID(ctx context.Context, p *ByIDPayload) (res *Resource, err e // GetRawYamlByCatalogKindNameVersion calls the // "GetRawYamlByCatalogKindNameVersion" endpoint of the "resource" service. // GetRawYamlByCatalogKindNameVersion may return the following errors: -// - "internal-error" (type *goa.ServiceError): Internal Server Error -// - "not-found" (type *goa.ServiceError): Resource Not Found Error -// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind -// - error: internal error +// - "internal-error" (type *goa.ServiceError): Internal Server Error +// - "not-found" (type *goa.ServiceError): Resource Not Found Error +// - "invalid-kind" (type *goa.ServiceError): Invalid Resource Kind +// - error: internal error func (c *Client) GetRawYamlByCatalogKindNameVersion(ctx context.Context, p *GetRawYamlByCatalogKindNameVersionPayload) (resp io.ReadCloser, err error) { var ires interface{} ires, err = c.GetRawYamlByCatalogKindNameVersionEndpoint(ctx, p)