 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthorizer ¶
func NewAuthorizer(a authorizer.Authorizer, ttl time.Duration, cacheSize int) (authorizer.Authorizer, error)
NewAuthorizer returns an authorizer that caches the results of the given authorizer
Types ¶
type CacheAuthorizer ¶
type CacheAuthorizer struct {
	// contains filtered or unexported fields
}
    func (*CacheAuthorizer) Authorize ¶
func (c *CacheAuthorizer) Authorize(ctx kapi.Context, a authorizer.AuthorizationAttributes) (allowed bool, reason string, err error)
func (*CacheAuthorizer) GetAllowedSubjects ¶
func (c *CacheAuthorizer) GetAllowedSubjects(ctx kapi.Context, attributes authorizer.AuthorizationAttributes) (sets.String, sets.String, error)
       Source Files
      ¶
      Source Files
      ¶
    
- authorizer.go
 Click to show internal directories. 
   Click to hide internal directories.