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