Skip to content
Snippets Groups Projects
Commit fba13338 authored by Yordan Kinkov's avatar Yordan Kinkov
Browse files

Migrate code.vereign.com refs to gitlab.com/gaia-x

parent 5f8e3b65
No related branches found
No related tags found
No related merge requests found
Showing
with 81 additions and 63 deletions
FROM golang:1.17.8-alpine3.15 as builder FROM golang:1.19-alpine3.15 as builder
RUN apk add git RUN apk add git
......
// Code generated by goa v3.7.0, DO NOT EDIT. // Code generated by goa v3.8.5, DO NOT EDIT.
// //
// cache client // cache client
// //
// Command: // Command:
// $ goa gen gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design // $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design
package cache package cache
......
// Code generated by goa v3.7.0, DO NOT EDIT. // Code generated by goa v3.8.5, DO NOT EDIT.
// //
// cache endpoints // cache endpoints
// //
// Command: // Command:
// $ goa gen gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design // $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design
package cache package cache
......
// Code generated by goa v3.7.0, DO NOT EDIT. // Code generated by goa v3.8.5, DO NOT EDIT.
// //
// cache service // cache service
// //
// Command: // Command:
// $ goa gen gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design // $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design
package cache package cache
......
// Code generated by goa v3.7.0, DO NOT EDIT. // Code generated by goa v3.8.5, DO NOT EDIT.
// //
// health client // health client
// //
// Command: // Command:
// $ goa gen gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design // $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design
package health package health
......
// Code generated by goa v3.7.0, DO NOT EDIT. // Code generated by goa v3.8.5, DO NOT EDIT.
// //
// health endpoints // health endpoints
// //
// Command: // Command:
// $ goa gen gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design // $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design
package health package health
......
// Code generated by goa v3.7.0, DO NOT EDIT. // Code generated by goa v3.8.5, DO NOT EDIT.
// //
// health service // health service
// //
// Command: // Command:
// $ goa gen gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design // $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design
package health package health
......
// Code generated by goa v3.7.0, DO NOT EDIT. // Code generated by goa v3.8.5, DO NOT EDIT.
// //
// cache HTTP client CLI support package // cache HTTP client CLI support package
// //
// Command: // Command:
// $ goa gen gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design // $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design
package client package client
......
// Code generated by goa v3.7.0, DO NOT EDIT. // Code generated by goa v3.8.5, DO NOT EDIT.
// //
// cache client HTTP transport // cache client HTTP transport
// //
// Command: // Command:
// $ goa gen gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design // $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design
package client package client
......
// Code generated by goa v3.7.0, DO NOT EDIT. // Code generated by goa v3.8.5, DO NOT EDIT.
// //
// cache HTTP client encoders and decoders // cache HTTP client encoders and decoders
// //
// Command: // Command:
// $ goa gen gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design // $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design
package client package client
import ( import (
"bytes" "bytes"
"context" "context"
"io/ioutil" "io"
"net/http" "net/http"
"net/url" "net/url"
...@@ -63,13 +64,13 @@ func EncodeGetRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Re ...@@ -63,13 +64,13 @@ func EncodeGetRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Re
func DecodeGetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { func DecodeGetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) {
return func(resp *http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) {
if restoreBody { if restoreBody {
b, err := ioutil.ReadAll(resp.Body) b, err := io.ReadAll(resp.Body)
if err != nil { if err != nil {
return nil, err return nil, err
} }
resp.Body = ioutil.NopCloser(bytes.NewBuffer(b)) resp.Body = io.NopCloser(bytes.NewBuffer(b))
defer func() { defer func() {
resp.Body = ioutil.NopCloser(bytes.NewBuffer(b)) resp.Body = io.NopCloser(bytes.NewBuffer(b))
}() }()
} else { } else {
defer resp.Body.Close() defer resp.Body.Close()
...@@ -86,7 +87,7 @@ func DecodeGetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody ...@@ -86,7 +87,7 @@ func DecodeGetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody
} }
return body, nil return body, nil
default: default:
body, _ := ioutil.ReadAll(resp.Body) body, _ := io.ReadAll(resp.Body)
return nil, goahttp.ErrInvalidResponse("cache", "Get", resp.StatusCode, string(body)) return nil, goahttp.ErrInvalidResponse("cache", "Get", resp.StatusCode, string(body))
} }
} }
...@@ -141,13 +142,13 @@ func EncodeSetRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Re ...@@ -141,13 +142,13 @@ func EncodeSetRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Re
func DecodeSetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { func DecodeSetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) {
return func(resp *http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) {
if restoreBody { if restoreBody {
b, err := ioutil.ReadAll(resp.Body) b, err := io.ReadAll(resp.Body)
if err != nil { if err != nil {
return nil, err return nil, err
} }
resp.Body = ioutil.NopCloser(bytes.NewBuffer(b)) resp.Body = io.NopCloser(bytes.NewBuffer(b))
defer func() { defer func() {
resp.Body = ioutil.NopCloser(bytes.NewBuffer(b)) resp.Body = io.NopCloser(bytes.NewBuffer(b))
}() }()
} else { } else {
defer resp.Body.Close() defer resp.Body.Close()
...@@ -156,7 +157,7 @@ func DecodeSetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody ...@@ -156,7 +157,7 @@ func DecodeSetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody
case http.StatusCreated: case http.StatusCreated:
return nil, nil return nil, nil
default: default:
body, _ := ioutil.ReadAll(resp.Body) body, _ := io.ReadAll(resp.Body)
return nil, goahttp.ErrInvalidResponse("cache", "Set", resp.StatusCode, string(body)) return nil, goahttp.ErrInvalidResponse("cache", "Set", resp.StatusCode, string(body))
} }
} }
...@@ -211,13 +212,13 @@ func EncodeSetExternalRequest(encoder func(*http.Request) goahttp.Encoder) func( ...@@ -211,13 +212,13 @@ func EncodeSetExternalRequest(encoder func(*http.Request) goahttp.Encoder) func(
func DecodeSetExternalResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { func DecodeSetExternalResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) {
return func(resp *http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) {
if restoreBody { if restoreBody {
b, err := ioutil.ReadAll(resp.Body) b, err := io.ReadAll(resp.Body)
if err != nil { if err != nil {
return nil, err return nil, err
} }
resp.Body = ioutil.NopCloser(bytes.NewBuffer(b)) resp.Body = io.NopCloser(bytes.NewBuffer(b))
defer func() { defer func() {
resp.Body = ioutil.NopCloser(bytes.NewBuffer(b)) resp.Body = io.NopCloser(bytes.NewBuffer(b))
}() }()
} else { } else {
defer resp.Body.Close() defer resp.Body.Close()
...@@ -226,7 +227,7 @@ func DecodeSetExternalResponse(decoder func(*http.Response) goahttp.Decoder, res ...@@ -226,7 +227,7 @@ func DecodeSetExternalResponse(decoder func(*http.Response) goahttp.Decoder, res
case http.StatusOK: case http.StatusOK:
return nil, nil return nil, nil
default: default:
body, _ := ioutil.ReadAll(resp.Body) body, _ := io.ReadAll(resp.Body)
return nil, goahttp.ErrInvalidResponse("cache", "SetExternal", resp.StatusCode, string(body)) return nil, goahttp.ErrInvalidResponse("cache", "SetExternal", resp.StatusCode, string(body))
} }
} }
......
// Code generated by goa v3.7.0, DO NOT EDIT. // Code generated by goa v3.8.5, DO NOT EDIT.
// //
// HTTP request path constructors for the cache service. // HTTP request path constructors for the cache service.
// //
// Command: // Command:
// $ goa gen gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design // $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design
package client package client
......
// Code generated by goa v3.7.0, DO NOT EDIT. // Code generated by goa v3.8.5, DO NOT EDIT.
// //
// cache HTTP client types // cache HTTP client types
// //
// Command: // Command:
// $ goa gen gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design // $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design
package client package client
// Code generated by goa v3.7.0, DO NOT EDIT. // Code generated by goa v3.8.5, DO NOT EDIT.
// //
// cache HTTP server encoders and decoders // cache HTTP server encoders and decoders
// //
// Command: // Command:
// $ goa gen gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design // $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design
package server package server
......
// Code generated by goa v3.7.0, DO NOT EDIT. // Code generated by goa v3.8.5, DO NOT EDIT.
// //
// HTTP request path constructors for the cache service. // HTTP request path constructors for the cache service.
// //
// Command: // Command:
// $ goa gen gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design // $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design
package server package server
......
// Code generated by goa v3.7.0, DO NOT EDIT. // Code generated by goa v3.8.5, DO NOT EDIT.
// //
// cache HTTP server // cache HTTP server
// //
// Command: // Command:
// $ goa gen gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design // $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design
package server package server
......
// Code generated by goa v3.7.0, DO NOT EDIT. // Code generated by goa v3.8.5, DO NOT EDIT.
// //
// cache HTTP server types // cache HTTP server types
// //
// Command: // Command:
// $ goa gen gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design // $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design
package server package server
......
// Code generated by goa v3.7.0, DO NOT EDIT. // Code generated by goa v3.8.5, DO NOT EDIT.
// //
// cache HTTP client CLI support package // cache HTTP client CLI support package
// //
// Command: // Command:
// $ goa gen gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design // $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design
package cli package cli
...@@ -21,8 +22,7 @@ import ( ...@@ -21,8 +22,7 @@ import (
// UsageCommands returns the set of commands and sub-commands using the format // UsageCommands returns the set of commands and sub-commands using the format
// //
// command (subcommand1|subcommand2|...) // command (subcommand1|subcommand2|...)
//
func UsageCommands() string { func UsageCommands() string {
return `health (liveness|readiness) return `health (liveness|readiness)
cache (get|set|set-external) cache (get|set|set-external)
......
// Code generated by goa v3.7.0, DO NOT EDIT. // Code generated by goa v3.8.5, DO NOT EDIT.
// //
// health HTTP client CLI support package // health HTTP client CLI support package
// //
// Command: // Command:
// $ goa gen gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design // $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design
package client package client
// Code generated by goa v3.7.0, DO NOT EDIT. // Code generated by goa v3.8.5, DO NOT EDIT.
// //
// health client HTTP transport // health client HTTP transport
// //
// Command: // Command:
// $ goa gen gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design // $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design
package client package client
......
// Code generated by goa v3.7.0, DO NOT EDIT. // Code generated by goa v3.8.5, DO NOT EDIT.
// //
// health HTTP client encoders and decoders // health HTTP client encoders and decoders
// //
// Command: // Command:
// $ goa gen gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design // $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/cache/design
package client package client
import ( import (
"bytes" "bytes"
"context" "context"
"io/ioutil" "io"
"net/http" "net/http"
"net/url" "net/url"
...@@ -38,13 +39,13 @@ func (c *Client) BuildLivenessRequest(ctx context.Context, v interface{}) (*http ...@@ -38,13 +39,13 @@ func (c *Client) BuildLivenessRequest(ctx context.Context, v interface{}) (*http
func DecodeLivenessResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { func DecodeLivenessResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) {
return func(resp *http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) {
if restoreBody { if restoreBody {
b, err := ioutil.ReadAll(resp.Body) b, err := io.ReadAll(resp.Body)
if err != nil { if err != nil {
return nil, err return nil, err
} }
resp.Body = ioutil.NopCloser(bytes.NewBuffer(b)) resp.Body = io.NopCloser(bytes.NewBuffer(b))
defer func() { defer func() {
resp.Body = ioutil.NopCloser(bytes.NewBuffer(b)) resp.Body = io.NopCloser(bytes.NewBuffer(b))
}() }()
} else { } else {
defer resp.Body.Close() defer resp.Body.Close()
...@@ -53,7 +54,7 @@ func DecodeLivenessResponse(decoder func(*http.Response) goahttp.Decoder, restor ...@@ -53,7 +54,7 @@ func DecodeLivenessResponse(decoder func(*http.Response) goahttp.Decoder, restor
case http.StatusOK: case http.StatusOK:
return nil, nil return nil, nil
default: default:
body, _ := ioutil.ReadAll(resp.Body) body, _ := io.ReadAll(resp.Body)
return nil, goahttp.ErrInvalidResponse("health", "Liveness", resp.StatusCode, string(body)) return nil, goahttp.ErrInvalidResponse("health", "Liveness", resp.StatusCode, string(body))
} }
} }
...@@ -80,13 +81,13 @@ func (c *Client) BuildReadinessRequest(ctx context.Context, v interface{}) (*htt ...@@ -80,13 +81,13 @@ func (c *Client) BuildReadinessRequest(ctx context.Context, v interface{}) (*htt
func DecodeReadinessResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) { func DecodeReadinessResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) {
return func(resp *http.Response) (interface{}, error) { return func(resp *http.Response) (interface{}, error) {
if restoreBody { if restoreBody {
b, err := ioutil.ReadAll(resp.Body) b, err := io.ReadAll(resp.Body)
if err != nil { if err != nil {
return nil, err return nil, err
} }
resp.Body = ioutil.NopCloser(bytes.NewBuffer(b)) resp.Body = io.NopCloser(bytes.NewBuffer(b))
defer func() { defer func() {
resp.Body = ioutil.NopCloser(bytes.NewBuffer(b)) resp.Body = io.NopCloser(bytes.NewBuffer(b))
}() }()
} else { } else {
defer resp.Body.Close() defer resp.Body.Close()
...@@ -95,7 +96,7 @@ func DecodeReadinessResponse(decoder func(*http.Response) goahttp.Decoder, resto ...@@ -95,7 +96,7 @@ func DecodeReadinessResponse(decoder func(*http.Response) goahttp.Decoder, resto
case http.StatusOK: case http.StatusOK:
return nil, nil return nil, nil
default: default:
body, _ := ioutil.ReadAll(resp.Body) body, _ := io.ReadAll(resp.Body)
return nil, goahttp.ErrInvalidResponse("health", "Readiness", resp.StatusCode, string(body)) return nil, goahttp.ErrInvalidResponse("health", "Readiness", resp.StatusCode, string(body))
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment