package
0.0.0-20190702165012-5f0f1276fe42
Repository: https://github.com/docker/licensing.git
Documentation: pkg.go.dev
# Functions
Decode decodes the given JWT string, returning the decoded identity.DockerIdentity.
Encode creates a JWT string for the given identity.DockerIdentity.
FromContext returns the token value stored in ctx, if any.
IsExpired returns true if the token has expired, false otherwise.
NewContext returns a new Context that carries value token.
# Structs
DecodeOptions holds JWT decoding options.
EncodeOptions holds JWT encoding options.
ValidationError interrogates the jwt.ValidationError, returning a more detailed error message.