Skip to content

Commit

Permalink
fix(project): Project rename (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
renatoaguimaraes authored Sep 24, 2022
1 parent 57bb060 commit e4eef77
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 27 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ COPY . .
RUN cd /aws-quota-provider && go mod download

# Build
RUN go build -a -o server ./cmd/server
RUN go build -a -o quota ./cmd/quota

# Use distroless as minimal base image to package the manager binary
FROM gcr.io/distroless/base:latest-amd64
WORKDIR /

LABEL org.opencontainers.image.source https://github.com/ydataai/aws-quota-provider

COPY --from=builder /aws-quota-provider/server .
COPY --from=builder /aws-quota-provider/quota .

ENTRYPOINT ["/server"]
ENTRYPOINT ["/quota"]
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export $(shell sed 's/=.*//' .env)

GOPATH=$(shell go env GOPATH)

.PHONY: build fmt vet debug server test mock
.PHONY: build fmt vet debug quota test mock

build: ### Build
go build -a cmd
Expand All @@ -17,8 +17,8 @@ vet: ### Run go vet against code
debug: ### Run debug
go run ./debug

server: ### Run main package
go run ./cmd/server
quota: ### Run main package
go run ./cmd/quota

test: ### Runs application's tests in verbose mode
go test -v -cover ./...
Expand All @@ -27,5 +27,5 @@ mock:
@ rm mock/*.go || true && \
$(GOPATH)/bin/mockgen -source=pkg/service/rest_service.go -destination=mock/rest_service_mock.go -package=mock && \
$(GOPATH)/bin/mockgen -source=pkg/clients/ec2_client.go -destination=mock/ec2_client_mock.go -package=mock && \
$(GOPATH)/bin/mockgen -source=pkg/clients/service_quota_client.go -destination=mock/service_quota_client_mock.go -package=mock
$(GOPATH)/bin/mockgen -source=pkg/clients/service_quota_client.go -destination=mock/service_quota_client_mock.go -package=mock

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# aws-quota-provider
AWS Quota Provider
# aws-adapter
Adapter Layer for AWS services
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type Configuration struct {
AWSRegion string `envconfig:"REGION" required:"true"`
}

// LoadEnvVars reads all env vars required for the server package
// LoadEnvVars reads all env vars required for the quota package
func (c *Configuration) LoadFromEnvVars() error {
return envconfig.Process("", c)
}
6 changes: 3 additions & 3 deletions cmd/server/main.go → cmd/quota/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/ydataai/go-core/pkg/common/logging"
"github.com/ydataai/go-core/pkg/common/server"

"github.com/ydataai/aws-quota-provider/pkg/clients"
"github.com/ydataai/aws-quota-provider/pkg/controller"
"github.com/ydataai/aws-quota-provider/pkg/service"
"github.com/ydataai/aws-adapter/pkg/clients"
"github.com/ydataai/aws-adapter/pkg/controller"
"github.com/ydataai/aws-adapter/pkg/service"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/ydataai/aws-quota-provider
module github.com/ydataai/aws-adapter

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion mock/ec2_client_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mock/rest_service_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mock/service_quota_client_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/clients/ec2_client.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package clients

import (
"github.com/ydataai/aws-quota-provider/pkg/common"
"github.com/ydataai/aws-adapter/pkg/common"
"github.com/ydataai/go-core/pkg/common/logging"

"github.com/aws/aws-sdk-go/aws"
Expand Down
2 changes: 1 addition & 1 deletion pkg/clients/service_quota_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package clients
import (
"log"

"github.com/ydataai/aws-quota-provider/pkg/common"
"github.com/ydataai/aws-adapter/pkg/common"
"github.com/ydataai/go-core/pkg/common/logging"

"github.com/aws/aws-sdk-go/aws"
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/rest_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"net/http"

"github.com/ydataai/aws-quota-provider/pkg/service"
"github.com/ydataai/aws-adapter/pkg/service"
"github.com/ydataai/go-core/pkg/common/config"
"github.com/ydataai/go-core/pkg/common/logging"
"github.com/ydataai/go-core/pkg/common/server"
Expand Down
4 changes: 2 additions & 2 deletions pkg/service/rest_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package service
import (
"context"

"github.com/ydataai/aws-quota-provider/pkg/clients"
"github.com/ydataai/aws-quota-provider/pkg/common"
"github.com/ydataai/aws-adapter/pkg/clients"
"github.com/ydataai/aws-adapter/pkg/common"
"github.com/ydataai/go-core/pkg/common/logging"
)

Expand Down
8 changes: 4 additions & 4 deletions pkg/service/rest_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"github.com/golang/mock/gomock"
"github.com/google/go-cmp/cmp"

"github.com/ydataai/aws-quota-provider/mock"
"github.com/ydataai/aws-quota-provider/pkg/clients"
"github.com/ydataai/aws-quota-provider/pkg/common"
"github.com/ydataai/aws-quota-provider/pkg/service"
"github.com/ydataai/aws-adapter/mock"
"github.com/ydataai/aws-adapter/pkg/clients"
"github.com/ydataai/aws-adapter/pkg/common"
"github.com/ydataai/aws-adapter/pkg/service"
"github.com/ydataai/go-core/pkg/common/logging"
)

Expand Down

0 comments on commit e4eef77

Please sign in to comment.