1
0

checking in

This commit is contained in:
brent saner
2025-12-23 20:58:56 -05:00
parent d94a46af0b
commit 84845f9fe5
37 changed files with 3117 additions and 642 deletions

View File

@@ -1,22 +1,34 @@
package internal
import (
`os`
`log`
`github.com/go-playground/validator/v10`
`r00t2.io/goutils/logging`
)
const (
ParseNsDelim string = "-"
ParseEnvNsDelim string = "_"
)
const (
cmdPfx string = "vault_totp"
logFlags int = log.LstdFlags | log.Lmsgprefix
logFlagsDebug int = logFlags | log.Llongfile
)
const (
DefAddr string = "https://clandestine.r00t2.io/"
VaultTokEnv string = "VAULT_TOKEN"
CollNm string = "OTP"
TgtMnt string = "totp_bts.work"
// These attrs need to be added to new SecretService TOTP secrets
// ~/.local/share/gnome-shell/extensions/totp@dkosmari.github.com/schemas/org.gnome.shell.extensions.totp.gschema.xml
SsSchemaName string = "xdg:schema"
SsSchemaVal string = "org.gnome.shell.extensions.totp" // also the gosecret.ItemType
)
var (
TermFd int = int(os.Stdin.Fd())
Logger *logging.MultiLogger
validate *validator.Validate = validator.New(validator.WithRequiredStructEnabled())
)
var (