token

package
v1.16.109 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrettyFormat string = "pretty"
	JSONFormat   string = "json"

	WHITESPACE_2 string = "\t"
	WHITESPACE_4 string = "\t\t"
)

Variables

This section is empty.

Functions

func GetSupportedFormats added in v1.16.100

func GetSupportedFormats() []string

GetSupportedFormats returns supported formats

func New

func New() *cmd

Types

type Formatter added in v1.16.100

type Formatter interface {
	FormatToken(token *api.ACLToken) (string, error)
	FormatTokenExpanded(token *api.ACLTokenExpanded) (string, error)
	FormatTokenList(tokens []*api.ACLTokenListEntry) (string, error)
}

Formatter defines methods provided by token command output formatter

func NewFormatter added in v1.16.100

func NewFormatter(format string, showMeta bool) (formatter Formatter, err error)

NewFormatter returns Formatter implementation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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