package
0.9.0-alpha
Repository: https://github.com/comcast/webpa-common.git
Documentation: pkg.go.dev

# Functions

NewUpdater conditionally creates a Runnable which will update the keys in the given resolver on the configured updateInterval.

# Constants

KeyIdParameterName is the template parameter that must be present in URI templates if there are any parameters.
PurposeDecrypt refers to a key used to decrypt data.
PurposeEncrypt refers to a key used to encrypt data.
PurposeSign refers to a key used to create a signature.
PurposeVerify refers to a key used to verify a signature.

# Variables

DefaultParser is the global, singleton default parser.
ErrorInvalidTemplate is the error returned when a URI template is invalid for a key resource.
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

MockCache is a stretchr mock for Cache.
MockPair is a stretchr mock for Pair.
No description provided by the author
MockResolver is a stretchr mock for Resolver.
ResolverFactory provides a JSON representation of a collection of keys together with a factory interface for creating distinct Resolver instances.

# Interfaces

Cache is a Resolver type which provides caching for keys based on keyID.
Pair represents a resolved key pair.
Parser parses a chunk of bytes into a Pair.
Resolver loads and parses keys associated with key identifiers.

# Type aliases

Purpose is an enumerated type describing the reason a given key is being used.