role

package
v1.11.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func GetSupportedFormats added in v1.7.3

func GetSupportedFormats() []string

GetSupportedFormats returns supported formats

func New

func New() *cmd

Types

type Formatter added in v1.7.3

type Formatter interface {
	FormatRole(role *api.ACLRole) (string, error)
	FormatRoleList(roles []*api.ACLRole) (string, error)
}

Formatter defines methods provided by role command output formatter

func NewFormatter added in v1.7.3

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