Discover Packages
github.com/Symantec/keymaster
keymasterd
admincache
package
Version:
v1.7.0
Opens a new window with list of versions in this module.
Published: Oct 22, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package admin cache caches admin credentials
Cache caches admin credentials
New creates a new cache that expires entries older than maxDuration.
Get returns cached admin credentials for given user. isAdmin is true
if user has admin credentials. valid is true if cache entry for user has
not expired. Initially, Get returns false, false for all users.
If c is nil, Get always returns false, false
Put replaces admin credentials for given user. Admin credentials for user
will remain valid for maxDuration time. If c is nil, Put is a no-op.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.