cache

package
v3.6.11-1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthorizer

func NewAuthorizer(a kauthorizer.Authorizer, ttl time.Duration, cacheSize int) (kauthorizer.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(a kauthorizer.Attributes) (allowed bool, reason string, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL