token

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowToken

func ShowToken(cmd *cobra.Command) error

showToken pretty-prints the token on the command line.

func SignToken

func SignToken(cmd *cobra.Command) error

Create, sign, and output a token. This is a great, simple example of how to use this library to create and sign a token.

func VerifyToken

func VerifyToken(cmd *cobra.Command) error

Verify a token and output the claims. This is a great example of how to verify and view a token.

Types

type ArgList

type ArgList map[string]string

func (ArgList) Set

func (l ArgList) Set(arg string) error

func (ArgList) String

func (l ArgList) String() string

func (ArgList) Type

func (l ArgList) Type() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL