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
*.so
*.dylib
sshfp-updater
# Test binary, built with `go test -c`
*.test

View File

@ -4,17 +4,17 @@ FROM golang:1.18-alpine AS builder
WORKDIR /app
COPY . .
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
ARG REVISION=bf6021c8bb34394a70ed49c7e816b0aee4140992
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}
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
to STDIN is required. Ex:
`cat watches.dump | ./infra-sshfp-cf`
`cat watches.dump | ./sshfp-updater`
## Current state
- CloudFlare integration is fully implemented

View File

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

View File

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

2
go.mod
View File

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

10
main.go
View File

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