Skip to content
Snippets Groups Projects
Commit cd65b6ec authored by Lyuben Penkovski's avatar Lyuben Penkovski
Browse files

Migrate code.vereign.com modules and paths to gitlab.com/gaia-x

parent acac05ac
Branches
Tags
No related merge requests found
Showing
with 82 additions and 72 deletions
......@@ -24,8 +24,8 @@ lint:
- golangci-lint --version
- golangci-lint run
before_script:
- ln -s /builds /go/src/code.vereign.com
- cd /go/src/code.vereign.com/${CI_PROJECT_PATH}
- ln -s /builds /go/src/gitlab.com
- cd /go/src/gitlab.com/${CI_PROJECT_PATH}
unit tests:
image: golang:1.17.7
......@@ -37,8 +37,8 @@ unit tests:
- go test $(go list ./... | grep -v /integration) -race -coverprofile=coverage.out
- go tool cover -func=coverage.out
before_script:
- ln -s /builds /go/src/code.vereign.com
- cd /go/src/code.vereign.com/${CI_PROJECT_PATH}
- ln -s /builds /go/src/gitlab.com
- cd /go/src/gitlab.com/${CI_PROJECT_PATH}
amd64:
extends: .docker-build
......
[![pipeline status](https://code.vereign.com/gaiax/tsa/signer/badges/main/pipeline.svg)](https://code.vereign.com/gaiax/tsa/signer/-/commits/main)
[![coverage report](https://code.vereign.com/gaiax/tsa/signer/badges/main/coverage.svg)](https://code.vereign.com/gaiax/tsa/signer/-/commits/main)
[![pipeline status](https://gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/badges/main/pipeline.svg)](https://gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/-/commits/main)
[![coverage report](https://gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/badges/main/coverage.svg)](https://gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/-/commits/main)
# signer
......
......@@ -17,19 +17,19 @@ import (
goa "goa.design/goa/v3/pkg"
"golang.org/x/sync/errgroup"
"code.vereign.com/gaiax/tsa/golib/graceful"
goahealth "code.vereign.com/gaiax/tsa/signer/gen/health"
goahealthsrv "code.vereign.com/gaiax/tsa/signer/gen/http/health/server"
goaopenapisrv "code.vereign.com/gaiax/tsa/signer/gen/http/openapi/server"
goasignersrv "code.vereign.com/gaiax/tsa/signer/gen/http/signer/server"
"code.vereign.com/gaiax/tsa/signer/gen/openapi"
goasigner "code.vereign.com/gaiax/tsa/signer/gen/signer"
"code.vereign.com/gaiax/tsa/signer/internal/clients/vault"
"code.vereign.com/gaiax/tsa/signer/internal/config"
"code.vereign.com/gaiax/tsa/signer/internal/decoder"
"code.vereign.com/gaiax/tsa/signer/internal/service"
"code.vereign.com/gaiax/tsa/signer/internal/service/health"
"code.vereign.com/gaiax/tsa/signer/internal/service/signer"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib/graceful"
goahealth "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/gen/health"
goahealthsrv "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/gen/http/health/server"
goaopenapisrv "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/gen/http/openapi/server"
goasignersrv "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/gen/http/signer/server"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/gen/openapi"
goasigner "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/gen/signer"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/internal/clients/vault"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/internal/config"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/internal/decoder"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/internal/service"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/internal/service/health"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/internal/service/signer"
)
var Version = "0.0.0+development"
......
FROM golang:1.17.10-alpine3.15 as builder
ENV GOPRIVATE=code.vereign.com
FROM golang:1.19-alpine3.15 as builder
RUN apk add git
WORKDIR /go/src/code.vereign.com/gaiax/tsa/signer
WORKDIR /go/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer
ADD . .
......
FROM golang:1.17.10
ENV GO111MODULE=on
ENV GOPRIVATE=code.vereign.com
FROM golang:1.19
RUN go install github.com/canthefason/go-watcher/cmd/watcher@v0.2.4
ADD . /go/src/code.vereign.com/gaiax/tsa/signer
ADD . /go/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer
WORKDIR /go/src/code.vereign.com/gaiax/tsa/signer
WORKDIR /go/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer
RUN go install -mod=vendor ./cmd/signer/...
EXPOSE 8080
ENTRYPOINT ["sh", "-c", "/go/bin/watcher -run code.vereign.com/gaiax/tsa/signer/cmd/signer -watch code.vereign.com/gaiax/tsa/signer"]
ENTRYPOINT ["sh", "-c", "/go/bin/watcher -run gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/cmd/signer -watch gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer"]
// Code generated by goa v3.7.6, DO NOT EDIT.
// Code generated by goa v3.8.5, DO NOT EDIT.
//
// health client
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/signer/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/design
package health
......
// Code generated by goa v3.7.6, DO NOT EDIT.
// Code generated by goa v3.8.5, DO NOT EDIT.
//
// health endpoints
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/signer/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/design
package health
......
// Code generated by goa v3.7.6, DO NOT EDIT.
// Code generated by goa v3.8.5, DO NOT EDIT.
//
// health service
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/signer/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/design
package health
......
// Code generated by goa v3.7.6, DO NOT EDIT.
// Code generated by goa v3.8.5, DO NOT EDIT.
//
// signer HTTP client CLI support package
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/signer/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/design
package cli
......@@ -13,8 +14,8 @@ import (
"net/http"
"os"
healthc "code.vereign.com/gaiax/tsa/signer/gen/http/health/client"
signerc "code.vereign.com/gaiax/tsa/signer/gen/http/signer/client"
healthc "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/gen/http/health/client"
signerc "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/gen/http/signer/client"
goahttp "goa.design/goa/v3/http"
goa "goa.design/goa/v3/pkg"
)
......
// Code generated by goa v3.7.6, DO NOT EDIT.
// Code generated by goa v3.8.5, DO NOT EDIT.
//
// health HTTP client CLI support package
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/signer/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/design
package client
// Code generated by goa v3.7.6, DO NOT EDIT.
// Code generated by goa v3.8.5, DO NOT EDIT.
//
// health client HTTP transport
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/signer/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/design
package client
......
// Code generated by goa v3.7.6, DO NOT EDIT.
// Code generated by goa v3.8.5, DO NOT EDIT.
//
// health HTTP client encoders and decoders
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/signer/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/design
package client
import (
"bytes"
"context"
"io/ioutil"
"io"
"net/http"
"net/url"
......@@ -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) {
return func(resp *http.Response) (interface{}, error) {
if restoreBody {
b, err := ioutil.ReadAll(resp.Body)
b, err := io.ReadAll(resp.Body)
if err != nil {
return nil, err
}
resp.Body = ioutil.NopCloser(bytes.NewBuffer(b))
resp.Body = io.NopCloser(bytes.NewBuffer(b))
defer func() {
resp.Body = ioutil.NopCloser(bytes.NewBuffer(b))
resp.Body = io.NopCloser(bytes.NewBuffer(b))
}()
} else {
defer resp.Body.Close()
......@@ -53,7 +54,7 @@ func DecodeLivenessResponse(decoder func(*http.Response) goahttp.Decoder, restor
case http.StatusOK:
return nil, nil
default:
body, _ := ioutil.ReadAll(resp.Body)
body, _ := io.ReadAll(resp.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
func DecodeReadinessResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error) {
return func(resp *http.Response) (interface{}, error) {
if restoreBody {
b, err := ioutil.ReadAll(resp.Body)
b, err := io.ReadAll(resp.Body)
if err != nil {
return nil, err
}
resp.Body = ioutil.NopCloser(bytes.NewBuffer(b))
resp.Body = io.NopCloser(bytes.NewBuffer(b))
defer func() {
resp.Body = ioutil.NopCloser(bytes.NewBuffer(b))
resp.Body = io.NopCloser(bytes.NewBuffer(b))
}()
} else {
defer resp.Body.Close()
......@@ -95,7 +96,7 @@ func DecodeReadinessResponse(decoder func(*http.Response) goahttp.Decoder, resto
case http.StatusOK:
return nil, nil
default:
body, _ := ioutil.ReadAll(resp.Body)
body, _ := io.ReadAll(resp.Body)
return nil, goahttp.ErrInvalidResponse("health", "Readiness", resp.StatusCode, string(body))
}
}
......
// Code generated by goa v3.7.6, DO NOT EDIT.
// Code generated by goa v3.8.5, DO NOT EDIT.
//
// HTTP request path constructors for the health service.
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/signer/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/design
package client
......
// Code generated by goa v3.7.6, DO NOT EDIT.
// Code generated by goa v3.8.5, DO NOT EDIT.
//
// health HTTP client types
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/signer/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/design
package client
// Code generated by goa v3.7.6, DO NOT EDIT.
// Code generated by goa v3.8.5, DO NOT EDIT.
//
// health HTTP server encoders and decoders
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/signer/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/design
package server
......
// Code generated by goa v3.7.6, DO NOT EDIT.
// Code generated by goa v3.8.5, DO NOT EDIT.
//
// HTTP request path constructors for the health service.
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/signer/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/design
package server
......
// Code generated by goa v3.7.6, DO NOT EDIT.
// Code generated by goa v3.8.5, DO NOT EDIT.
//
// health HTTP server
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/signer/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/design
package server
......@@ -11,7 +12,7 @@ import (
"context"
"net/http"
health "code.vereign.com/gaiax/tsa/signer/gen/health"
health "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/gen/health"
goahttp "goa.design/goa/v3/http"
goa "goa.design/goa/v3/pkg"
)
......
// Code generated by goa v3.7.6, DO NOT EDIT.
// Code generated by goa v3.8.5, DO NOT EDIT.
//
// health HTTP server types
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/signer/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/design
package server
// Code generated by goa v3.7.6, DO NOT EDIT.
// Code generated by goa v3.8.5, DO NOT EDIT.
//
// openapi client HTTP transport
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/signer/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/design
package client
......
// Code generated by goa v3.7.6, DO NOT EDIT.
// Code generated by goa v3.8.5, DO NOT EDIT.
//
// openapi HTTP client encoders and decoders
//
// Command:
// $ goa gen code.vereign.com/gaiax/tsa/signer/design
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/signer/design
package client
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment