Documentation ¶
Index ¶
- func Init() error
- func LookupAdapterConfig() (params *config.Params, found bool)
- func LookupAuthZDecision(idsConsumerHeader, idsAuthzToken string, callParams *xacml.Request) (authorized bool, found bool)
- func LookupDapsIDToken() (token string, found bool)
- func PutAdapterConfig(params *config.Params) (ok bool)
- func PutAuthZDecision(idsConsumerHeader, idsAuthzToken string, callParams *xacml.Request, ...) (ok bool)
- func PutDapsIDToken(jwtData string) (ok bool)
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 ¶
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 ¶
LookupDapsIDToken gets any cached DAPS ID token. Use the found flag to tell if the lookup was successful.
func PutAdapterConfig ¶
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 ¶
PutDapsIDToken caches a DAPS ID token. Use the ok flag to tell if the operation was successful.
Types ¶
This section is empty.