rename infra-sshfp-cf to sshfp-updater

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-08-02 15:23:28 +02:00
parent 16bc968e21
commit 00d135e3a0
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
7 changed files with 14 additions and 13 deletions

1
.gitignore vendored
View File

@ -4,6 +4,7 @@
*.dll *.dll
*.so *.so
*.dylib *.dylib
sshfp-updater
# Test binary, built with `go test -c` # Test binary, built with `go test -c`
*.test *.test

View File

@ -4,17 +4,17 @@ FROM golang:1.18-alpine AS builder
WORKDIR /app WORKDIR /app
COPY . . COPY . .
RUN go mod vendor RUN go mod vendor
RUN go build -mod vendor -o ./infra-sshfp-cf RUN go build -mod vendor -o ./sshfp-updater
FROM alpine:3.16.0 FROM alpine:3.16.0
ARG REVISION=bf6021c8bb34394a70ed49c7e816b0aee4140992 ARG REVISION=bf6021c8bb34394a70ed49c7e816b0aee4140992
LABEL org.opencontainers.image.authors="artur@status.im" LABEL org.opencontainers.image.authors="artur@status.im"
LABEL org.opencontainers.image.source="https://github.com/status-im/sshfp-generator" LABEL org.opencontainers.image.source="https://github.com/status-im/sshfp-updater"
LABEL org.opencontainers.image.revision=${REVISION} LABEL org.opencontainers.image.revision=${REVISION}
WORKDIR /root WORKDIR /root
COPY --from=builder /app/infra-sshfp-cf ./ COPY --from=builder /app/sshfp-updater ./
ENTRYPOINT [ "./infra-sshfp-cf" ] ENTRYPOINT [ "./sshfp-updater" ]

View File

@ -23,7 +23,7 @@ It's possible to create json formatted config file (example in `testcfg`)
As it has been designed to work with `consul watches` passing proper .json file As it has been designed to work with `consul watches` passing proper .json file
to STDIN is required. Ex: to STDIN is required. Ex:
`cat watches.dump | ./infra-sshfp-cf` `cat watches.dump | ./sshfp-updater`
## Current state ## Current state
- CloudFlare integration is fully implemented - CloudFlare integration is fully implemented

View File

@ -1,7 +1,7 @@
package cloudflare package cloudflare
import ( import (
"infra-sshfp-cf/sshfp" "sshfp-updater/sshfp"
"github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go"
) )

View File

@ -3,7 +3,7 @@ package cloudflare
import ( import (
"errors" "errors"
"fmt" "fmt"
"infra-sshfp-cf/sshfp" "sshfp-updater/sshfp"
"github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"

2
go.mod
View File

@ -1,4 +1,4 @@
module infra-sshfp-cf module sshfp-updater
go 1.18 go 1.18

10
main.go
View File

@ -3,13 +3,13 @@ package main
import ( import (
"bufio" "bufio"
"bytes" "bytes"
"infra-sshfp-cf/cloudflare"
"infra-sshfp-cf/config"
"infra-sshfp-cf/consul"
"infra-sshfp-cf/sshfp"
"infra-sshfp-cf/statestore"
"os" "os"
"os/exec" "os/exec"
"sshfp-updater/cloudflare"
"sshfp-updater/config"
"sshfp-updater/consul"
"sshfp-updater/sshfp"
"sshfp-updater/statestore"
"strings" "strings"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"