Documentation
¶
Index ¶
- type TokenCache
- func (tc *TokenCache) AddRole(roleKey string, roleSlice *[]string) error
- func (tc *TokenCache) AddRoleStr(roleKey string, role *string) error
- func (tc *TokenCache) AddToken(tokenKey string, token *string) error
- func (tc *TokenCache) Clear()
- func (tc *TokenCache) GetRole(roleKey string) *[]string
- func (tc *TokenCache) GetRoleStr(roleKey *string) *[]string
- func (tc *TokenCache) GetRoleWithDefault(roleKey string, defaultRole string) *[]string
- func (tc *TokenCache) GetToken(tokenKey string) *string
- func (tc *TokenCache) GetTokenStr(tokenKeyPtr *string) *string
- func (tc *TokenCache) IsEmpty() bool
- func (tc *TokenCache) SetVaultAddress(vaptr *string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenCache ¶
type TokenCache struct {
VaultAddressPtr *string // Vault address
// contains filtered or unexported fields
}
func NewTokenCache ¶
func NewTokenCache(tokenKey string, token *string, vaptr *string) *TokenCache
func NewTokenCacheEmpty ¶
func NewTokenCacheEmpty(varVaptr ...*string) *TokenCache
func (*TokenCache) AddRole ¶ added in v1.38.0
func (tc *TokenCache) AddRole(roleKey string, roleSlice *[]string) error
func (*TokenCache) AddRoleStr ¶ added in v1.38.0
func (tc *TokenCache) AddRoleStr(roleKey string, role *string) error
func (*TokenCache) Clear ¶
func (tc *TokenCache) Clear()
func (*TokenCache) GetRole ¶ added in v1.38.0
func (tc *TokenCache) GetRole(roleKey string) *[]string
func (*TokenCache) GetRoleStr ¶ added in v1.38.0
func (tc *TokenCache) GetRoleStr(roleKey *string) *[]string
func (*TokenCache) GetRoleWithDefault ¶ added in v1.38.0
func (tc *TokenCache) GetRoleWithDefault(roleKey string, defaultRole string) *[]string
func (*TokenCache) GetToken ¶
func (tc *TokenCache) GetToken(tokenKey string) *string
func (*TokenCache) GetTokenStr ¶ added in v1.38.0
func (tc *TokenCache) GetTokenStr(tokenKeyPtr *string) *string
func (*TokenCache) IsEmpty ¶ added in v1.38.9
func (tc *TokenCache) IsEmpty() bool
func (*TokenCache) SetVaultAddress ¶ added in v1.38.0
func (tc *TokenCache) SetVaultAddress(vaptr *string) error
Click to show internal directories.
Click to hide internal directories.