2
0

feat(vault): add IsDeleted helper method to Secret
Some checks failed
Build and Release / Create Release (push) Successful in 0s
Build and Release / Unit Tests (push) Successful in 3m4s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 4m44s
Build and Release / Lint (push) Successful in 5m3s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Successful in 2m59s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Successful in 9h3m46s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Successful in 5m11s
Build and Release / Build Binaries (arm64, darwin, macos) (push) Successful in 6m3s
Build and Release / Build Binary (linux/arm64) (push) Failing after 1m21s

This commit is contained in:
2026-01-20 17:18:18 -05:00
parent 2473567155
commit 1ced5e9f55

View File

@@ -77,6 +77,11 @@ type Secret struct {
DeletedUnix int64
}
// IsDeleted returns true if the secret is soft deleted
func (s Secret) IsDeleted() bool {
return s.DeletedUnix > 0
}
// SecretVersion represents a version of a secret
type SecretVersion struct {
ID int64