Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeyringAPI ¶
type KeyringAPI interface {
Get(service, account string) (string, error)
Set(service, account, value string) error
Delete(service, account string) error
}
KeyringAPI 是对 OS keyring 的最小抽象,便于测试与跨平台。 service 对应 keyring 的 service name,account 对应 user/account。
type Options ¶
type Options struct {
AllowPlaintext bool // 是否允许明文(默认 false)
Keyring KeyringAPI // 可注入的 keyring 实现(nil 则用默认)
}
Options 控制 secret 解析行为。
Click to show internal directories.
Click to hide internal directories.