package
0.0.0-20250307173044-634e8ce82c05
Repository: https://github.com/sapcc/go-bits.git
Documentation: pkg.go.dev

# Functions

DeserializeCompactContextFromJSON is the inverse of SerializeCompactContextToJSON.
InMemoryCacher builds a Cacher that stores token payloads in memory.
SerializeCompactContextToJSON takes a policy.Context constructed by this package, and compresses its Auth and Roles fields into an extremely compact form.

# Structs

Token represents a validated Keystone v3 token.
TokenValidator combines an Identity v3 client to validate tokens (AuthN), and a policy.Enforcer to check access permissions (AuthZ).

# Interfaces

Cacher is the generic interface for a token cache.
Enforcer contains the Enforce method that struct Token requires to check access permissions.
TokenResult is the interface type for the argument of TokenValidator.TokenFromGophercloudResult().
Validator is the interface provided by TokenValidator.