checking in
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user