Documentation ¶
Index ¶
Constants ¶
View Source
const ( VersionKey = "AuthCacheVersion" MaxTagsKey = "AuthCacheMaxTags" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func NewAuthCache ¶
func (*Cache) IsTagAuthorized ¶
IsTagAuthorized Check if the tag exists in the global authorization cache, the status of the tag is "Accepted" and if it has not expired yet.
func (*Cache) LoadAuthFile ¶
func (c *Cache) LoadAuthFile()
LoadAuthFile loads tags from the cache file
func (*Cache) RemoveCachedTags ¶
func (c *Cache) RemoveCachedTags()
RemoveCachedTags Remove all Tags from the global authorization cache.
func (*Cache) SetMaxCachedTags ¶
SetMaxCachedTags Set the maximum number of Tags allowed in the global authorization cache.
Click to show internal directories.
Click to hide internal directories.