diff --git a/services/vault/vault.go b/services/vault/vault.go index ba694b090f..b3e5f54124 100644 --- a/services/vault/vault.go +++ b/services/vault/vault.go @@ -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