Documentation ¶
Index ¶
- func Engine() token.Engine
- type Item
- type ItemSecret
- type SecretMgr
- func (mgr *SecretMgr) AddItem(key string, item ItemSecret)
- func (mgr *SecretMgr) AddSecret(key string, secret secret.Secret)
- func (mgr *SecretMgr) EnableFlag(key string) int
- func (mgr *SecretMgr) GetSecret(key string) secret.Secret
- func (mgr *SecretMgr) Load(items map[string]Item) error
- func (mgr *SecretMgr) LoadFromFile(file string) error
- func (mgr *SecretMgr) SetEnabled(key string, enable bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Item ¶
func (*Item) EnableFlag ¶ added in v1.0.3
EnableFlag return 0= disable, 1=enable, 2=not exist
func (*Item) SetEnabled ¶ added in v1.0.3
type ItemSecret ¶ added in v1.0.3
type SecretMgr ¶
type SecretMgr struct {
// contains filtered or unexported fields
}
func NewSecretMgr ¶ added in v0.5.11
func NewSecretMgr() *SecretMgr
func (*SecretMgr) AddItem ¶ added in v0.5.0
func (mgr *SecretMgr) AddItem(key string, item ItemSecret)
func (*SecretMgr) EnableFlag ¶ added in v0.5.19
EnableFlag implement token.Secret interface
func (*SecretMgr) LoadFromFile ¶ added in v0.5.0
func (*SecretMgr) SetEnabled ¶
SetEnabled implement token.Secret interface
Click to show internal directories.
Click to hide internal directories.