cache

package
v0.0.0-...-6254df8 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

Init gets the cache infrastructure ready for use. It must be the first call to this module and must be done in the main function before any other thread can possibly call the functions this module exports.

func LookupAdapterConfig

func LookupAdapterConfig() (params *config.Params, found bool)

LookupAdapterConfig gets any cached adapter config. Use the found flag to tell if the lookup was successful.

func LookupAuthZDecision

func LookupAuthZDecision(idsConsumerHeader, idsAuthzToken string,
	callParams *xacml.Request) (authorized bool, found bool)

LookupAuthZDecision gets any cached AuthZ decision for the specified call parameters. Use the found flag to tell if the lookup was successful.

func LookupDapsIDToken

func LookupDapsIDToken() (token string, found bool)

LookupDapsIDToken gets any cached DAPS ID token. Use the found flag to tell if the lookup was successful.

func PutAdapterConfig

func PutAdapterConfig(params *config.Params) (ok bool)

PutAdapterConfig caches adapter config. Use the ok flag to tell if the operation was successful.

func PutAuthZDecision

func PutAuthZDecision(idsConsumerHeader, idsAuthzToken string,
	callParams *xacml.Request, authorized bool, cacheMaxSecs uint64) (ok bool)

PutAuthZDecision caches an AuthZ decision. Use the ok flag to tell if the operation was successful.

func PutDapsIDToken

func PutDapsIDToken(jwtData string) (ok bool)

PutDapsIDToken caches a DAPS ID token. Use the ok flag to tell if the operation was successful.

Types

This section is empty.

Jump to

Keyboard shortcuts

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