Documentation ¶
Index ¶
- func Engine() token.Engine
- type Item
- type ItemSecret
- type SecretMgr
- func (mgr *SecretMgr) AddItem(key string, item ItemSecret)
- func (mgr *SecretMgr) AddItemWithSource(source token.Source, item Item)
- func (mgr *SecretMgr) AddSecret(source token.Source, secret secret.Secret)
- func (mgr *SecretMgr) AddSecretWithKey(key string, secret secret.Secret)
- func (mgr *SecretMgr) EnableFlag(source token.Source) int
- func (mgr *SecretMgr) GetSecret(source token.Source) secret.Secret
- func (mgr *SecretMgr) Load(items map[string]Item) error
- func (mgr *SecretMgr) LoadFromFile(file string) error
- func (mgr *SecretMgr) SetEnabled(source token.Source, 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) AddItemWithSource ¶ added in v1.0.3
func (*SecretMgr) AddSecretWithKey ¶ added in v0.5.0
func (*SecretMgr) EnableFlag ¶ added in v0.5.19
EnableFlag implement token.Secret interface
func (*SecretMgr) LoadFromFile ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.