Skip to content
This repository was archived by the owner on Mar 8, 2023. It is now read-only.

Commit e2f7fd9

Browse files
authored
Merge pull request #14 from keylockerbv/feature/project-rename
Rename project to secrethub-http-proxy
2 parents 1540e6f + d31f912 commit e2f7fd9

6 files changed

Lines changed: 13 additions & 15 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Go
2-
secrethub-proxy
2+
secrethub-http-proxy
33
*.exe
44
*.exe~
55
*.dll

.goreleaser.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
project_name: secrethub-proxy
2-
31
builds:
4-
- binary: "{{ .ProjectName }}"
5-
main: ./cmd/secrethub-proxy/main.go
2+
- binary: secrethub-http-proxy
3+
main: ./cmd/secrethub-http-proxy/main.go
64
env:
75
- CGO_ENABLED=0
86
goos:
@@ -26,7 +24,7 @@ dockers:
2624
goos: linux
2725
goarch: amd64
2826
binaries:
29-
- secrethub-proxy
27+
- secrethub-http-proxy
3028
image_templates:
31-
- "secrethubio/proxy:{{ .Version }}"
32-
- "secrethubio/proxy:latest"
29+
- "secrethub/http-proxy:{{ .Version }}"
30+
- "secrethub/http-proxy:latest"

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
FROM alpine
22

3-
COPY secrethub-proxy /usr/bin/secrethub-proxy
3+
COPY secrethub-http-proxy /usr/bin/secrethub-http-proxy
44
RUN apk add --no-cache ca-certificates && update-ca-certificates
55

66
EXPOSE 8080
77

8-
CMD secrethub-proxy -C ${SECRETHUB_CREDENTIAL:-$(cat /secrethub/credential)} -P ${SECRETHUB_CREDENTIAL_PASSPHRASE} -h 0.0.0.0 -p 8080
8+
CMD secrethub-http-proxy -C ${SECRETHUB_CREDENTIAL:-$(cat /secrethub/credential)} -P ${SECRETHUB_CREDENTIAL_PASSPHRASE} -h 0.0.0.0 -p 8080

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
build:
2-
go build ./cmd/secrethub-proxy
2+
go build ./cmd/secrethub-http-proxy
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"os/signal"
99
"syscall"
1010

11-
"github.com/keylockerbv/secrethub-proxy/pkg/restproxy"
11+
"github.com/keylockerbv/secrethub-http-proxy/pkg/restproxy"
1212
"github.com/secrethub/secrethub-go/pkg/secrethub"
1313
)
1414

@@ -67,10 +67,10 @@ func gracefulShutdown(proxy restproxy.ClientProxy) {
6767
}
6868

6969
func exit(err error) {
70-
fmt.Printf("secrethub-proxy: error: %v\n", err)
70+
fmt.Printf("secrethub-http-proxy: error: %v\n", err)
7171
os.Exit(1)
7272
}
7373

7474
func log(message string) {
75-
fmt.Printf("secrethub-proxy: %v\n", message)
75+
fmt.Printf("secrethub-http-proxy: %v\n", message)
7676
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/keylockerbv/secrethub-proxy
1+
module github.com/keylockerbv/secrethub-http-proxy
22

33
require (
44
github.com/gorilla/mux v1.7.0

0 commit comments

Comments
 (0)