Documentation ¶
Index ¶
- Constants
- type AuthServerCache
- func (asc *AuthServerCache) Get(ctx context.Context, storage logical.Storage, ...) (entry *AuthServerCacheEntry, err error)
- func (asc *AuthServerCache) Invalidate(keyer persistence.AuthServerKeyer) (found bool)
- func (asc *AuthServerCache) InvalidateFromStorage(key string) bool
- func (asc *AuthServerCache) Purge()
- type AuthServerCacheEntry
- type Cache
- type ConfigCache
- type ConfigCacheEntry
Constants ¶
View Source
const AuthServerCacheSize = 64
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthServerCache ¶
type AuthServerCache struct {
// contains filtered or unexported fields
}
func NewAuthServerCache ¶
func NewAuthServerCache(size int, providerRegistry *provider.Registry, data *persistence.AuthServerHolder) (*AuthServerCache, error)
func (*AuthServerCache) Get ¶
func (asc *AuthServerCache) Get(ctx context.Context, storage logical.Storage, keyer persistence.AuthServerKeyer) (entry *AuthServerCacheEntry, err error)
func (*AuthServerCache) Invalidate ¶
func (asc *AuthServerCache) Invalidate(keyer persistence.AuthServerKeyer) (found bool)
func (*AuthServerCache) InvalidateFromStorage ¶
func (asc *AuthServerCache) InvalidateFromStorage(key string) bool
func (*AuthServerCache) Purge ¶
func (asc *AuthServerCache) Purge()
type AuthServerCacheEntry ¶
type AuthServerCacheEntry struct { *persistence.AuthServerEntry Provider provider.Provider // contains filtered or unexported fields }
func (*AuthServerCacheEntry) Put ¶
func (asce *AuthServerCacheEntry) Put()
type Cache ¶
type Cache struct { Config *ConfigCache AuthServer *AuthServerCache }
func (*Cache) InvalidateFromStorage ¶
type ConfigCache ¶
type ConfigCache struct {
// contains filtered or unexported fields
}
func NewConfigCache ¶
func NewConfigCache(data *persistence.ConfigHolder) *ConfigCache
func (*ConfigCache) Get ¶
func (cc *ConfigCache) Get(ctx context.Context, storage logical.Storage) (entry *ConfigCacheEntry, err error)
func (*ConfigCache) Invalidate ¶
func (cc *ConfigCache) Invalidate() (found bool)
func (*ConfigCache) InvalidateFromStorage ¶
func (cc *ConfigCache) InvalidateFromStorage(key string) bool
func (*ConfigCache) Purge ¶
func (cc *ConfigCache) Purge()
type ConfigCacheEntry ¶
type ConfigCacheEntry struct {
*persistence.ConfigEntry
}
Click to show internal directories.
Click to hide internal directories.