bindingrule

package
v1.16.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func GetSupportedFormats

func GetSupportedFormats() []string

GetSupportedFormats returns supported formats

func New

func New() *cmd

Types

type Formatter

type Formatter interface {
	FormatBindingRule(rule *api.ACLBindingRule) (string, error)
	FormatBindingRuleList(rules []*api.ACLBindingRule) (string, error)
}

Formatter defines methods provided by bindingrule command output formatter

func NewFormatter

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