Documentation ¶
Overview ¶
Package formatter exposes printers and formatters for justifications and justification tokens.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter interface { // FormatTo streams the result to the writer. FormatTo(ctx context.Context, w io.Writer, token jwt.Token, breakglass bool) error }
Formatter is an interface which all formatters must implement.
type Text ¶
type Text struct{}
Text outputs the token into three sections:
- breakglass
- justification
- standard claims
Click to show internal directories.
Click to hide internal directories.