package
1.2.0
Repository: https://github.com/open-policy-agent/opa.git
Documentation: pkg.go.dev

# Functions

GetURIPath returns the escaped URI component from the provided URL.
SanitizeHostForHeader removes default port from host and updates request.Host.
StripExcessSpaces will rewrite the passed in slice's string values to not contain multiple side-by-side spaces.

# Constants

AmzAlgorithmKey indicates the signing algorithm.
AmzCredentialKey is the access key ID and credential scope.
AmzDateKey is the UTC timestamp for the request in the format YYYYMMDD'T'HHMMSS'Z'.
AmzSecurityTokenKey indicates the security token to be used with temporary credentials.
AmzSignatureKey is the query parameter to store the SigV4 signature.
AmzSignedHeadersKey is the set of headers signed for the request.
ContentSHAKey is the SHA256 of request body.
EmptyStringSHA256 is the hex encoded sha256 value of an empty string.
ShortTimeFormat is the shorten time format used in the credential scope.
TimeFormat is the time format to be used in the X-Amz-Date header or query parameter.
UnsignedPayload indicates that the request payload body is unsigned.

# Variables

AllowedQueryHoisting is a whitelist for Build query headers.
IgnoredHeaders is a list of headers that are ignored during signing.
RequiredSignedHeaders is a whitelist for Build canonical headers.

# Structs

AllowList is a generic Rule for whitelisting.
DenyList is a generic Rule for blacklisting.

# Interfaces

Rule interface allows for more flexible rules and just simply checks whether or not a value adheres to that Rule.

# Type aliases

InclusiveRules rules allow for rules to depend on one another.
MapRule generic Rule for maps.
Patterns is a list of strings to match against.
Rules houses a set of Rule needed for validation of a string value.