# README
identity
Package identity provides code for parsing, storing and retrieving Red Hat Cloud identity from Go standard library context.
Documentation
# Functions
DecodeAndCheckIdentity returns identity value decoded from a base64 JSON encoded string.
DecodeIdentity returns identity value decoded from a base64 JSON encoded string.
DecodeIdentityCtx decodes, checks and puts identity raw string and value into existing context.
EncodeIdentity returns the identity header from the given context if one is present.
EnforceIdentity extracts, checks and places the X-Rh-Identity header into the request context.
EnforceIdentityWithLogger extracts, checks and places the X-Rh-Identity header into the request context.
Get returns the identity struct from the context or empty value when not present.
GetIdentity returns the identity struct from the context or empty value when not present.
GetIdentityHeader returns the identity header from the given context if one is present.
GetRawIdentity returns the string identity struct from the context or empty string when not present.
With returns a copy of context with identity header as a value.
WithIdentity returns a copy of context with identity header as a value.
WithRawIdentity returns a copy of context with identity header as a string value.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Associate is the "associate" field of an XRHID.
Identity is the main body of the XRHID.
Internal is the "internal" field of an XRHID.
ServiceAccount is the "service_account" field of an XRHID.
ServiceDetails describe the services the org is entitled to.
System is the "system" field of an XRHID.
User is the "user" field of an XRHID.
X509 is the "x509" field of an XRHID.
XRHID is the "identity" principal object set by Cloud Platform 3scale.
# Type aliases
ErrorFunc is a callback logging function for decoding, parsing and validation errors.