Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ filippo.io/age v1.3.1 h1:hbzdQOJkuaMEpRCLSN1/C5DX74RPcNCk6oqhKMXmZi0=
filippo.io/age v1.3.1/go.mod h1:EZorDTYUxt836i3zdori5IJX/v2Lj6kWFU0cfh6C0D4=
filippo.io/hpke v0.4.0 h1:p575VVQ6ted4pL+it6M00V/f2qTZITO0zgmdKCkd5+A=
filippo.io/hpke v0.4.0/go.mod h1:EmAN849/P3qdeK+PCMkDpDm83vRHM5cDipBJ8xbQLVY=
github.com/cplieger/health v1.0.0 h1:mevbZo10XtMAzfWaYoi6UrcGooFgHJvlhIJwbNQIVoM=
github.com/cplieger/health v1.0.0/go.mod h1:INjkN9qJnR14X5AFqX6ymFaHvx51djYgk2oQb/gJ9u8=
github.com/cplieger/health v1.0.1 h1:ZzOL6vEVOncHU2i2XDVg4G4v654vFaoCuE+Wvp0mXF0=
github.com/cplieger/health v1.0.1/go.mod h1:INjkN9qJnR14X5AFqX6ymFaHvx51djYgk2oQb/gJ9u8=
github.com/cplieger/health v1.0.2 h1:tS2XtQVQL4TXEAr8u0xCtjOqJFrOtRzD8pzm/l2DbSU=
github.com/cplieger/health v1.0.2/go.mod h1:INjkN9qJnR14X5AFqX6ymFaHvx51djYgk2oQb/gJ9u8=
github.com/cplieger/health v1.1.0 h1:s//JW6MZtiHLLAhJhD21wxzeqFP94dqV0KMa+zJRTWM=
github.com/cplieger/health v1.1.0/go.mod h1:INjkN9qJnR14X5AFqX6ymFaHvx51djYgk2oQb/gJ9u8=
golang.org/x/crypto v0.50.0 h1:zO47/JPrL6vsNkINmLoo/PH1gcxpls50DNogFvB5ZGI=
Expand Down
58 changes: 0 additions & 58 deletions health.go

This file was deleted.

189 changes: 0 additions & 189 deletions health_test.go

This file was deleted.

5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ import (
"syscall"

"filippo.io/age"
"github.com/cplieger/health"
)

func main() {
// CLI health probe for Docker healthcheck (distroless has no curl/wget).
if len(os.Args) > 1 && os.Args[1] == modeHealth {
runProbe(healthMarkerPath)
health.RunProbe(health.DefaultPath)
}

cfg, err := parseConfig()
Expand Down Expand Up @@ -62,7 +63,7 @@ func runServer(repoRoot string, identity age.Identity) int {
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer stop()

marker := newHealthMarker(healthMarkerPath)
marker := health.NewMarker(health.DefaultPath)
marker.Set(false)

result, err := decryptAll(ctx, repoRoot, identity)
Expand Down
Loading