Documentation ¶
Index ¶
- Constants
- func JwtMethodKey(source token.Source) string
- func SourceKey(source token.Source) string
- type Engine
- type Item
- type SecretMgr
- func (mgr *SecretMgr) AddItem(source token.Source, item Item)
- func (mgr *SecretMgr) AddItemWithKey(key string, item Item)
- func (mgr *SecretMgr) AddSecret(source token.Source, secret secret.Secret)
- func (mgr *SecretMgr) AddSecretWithKey(key string, secret secret.Secret)
- func (mgr *SecretMgr) GetSecret(source token.Source) secret.Secret
- func (mgr *SecretMgr) IsEnabled(source token.Source) bool
- 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 ¶
View Source
const JwtMethod = "jwt"
Variables ¶
This section is empty.
Functions ¶
func JwtMethodKey ¶ added in v0.5.11
Types ¶
type Engine ¶ added in v0.5.11
type Engine struct {
// contains filtered or unexported fields
}
func DefaultEngine ¶ added in v0.5.11
func DefaultEngine() *Engine
type SecretMgr ¶
type SecretMgr struct {
// contains filtered or unexported fields
}
func NewSecretMgr ¶ added in v0.5.11
func NewSecretMgr(skFuncs token.SourceKeyFunc) *SecretMgr
func (*SecretMgr) AddItemWithKey ¶ added in v0.5.0
func (*SecretMgr) AddSecretWithKey ¶ added in v0.5.0
func (*SecretMgr) LoadFromFile ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.