istio: istio.io/istio/istioctl/pkg/util/formatting Index | Files

package formatting

import "istio.io/istio/istioctl/pkg/util/formatting"

Index

Package Files

formatter.go msg_threshold.go

Constants

const (
    LogFormat  = "log"
    JSONFormat = "json"
    YAMLFormat = "yaml"
)

Formatting options for Messages

Variables

var (
    MsgOutputFormatKeys = []string{LogFormat, JSONFormat, YAMLFormat}
    MsgOutputFormats    = make(map[string]bool)
)

func IstioctlColorDefault Uses

func IstioctlColorDefault(writer io.Writer) bool

func Print Uses

func Print(ms diag.Messages, format string, colorize bool) (string, error)

Print output messages in the specified format with color options

type MessageThreshold Uses

type MessageThreshold struct {
    diag.Level
}

MessageThreshold is a wrapper around Level to be used as a cobra command line argument. It should satisfy the pflag.Value interface.

func (*MessageThreshold) Set Uses

func (m *MessageThreshold) Set(s string) error

Set is a function declared in the pflag.Value interface

func (*MessageThreshold) String Uses

func (m *MessageThreshold) String() string

String is a function declared in the pflag.Value interface

func (*MessageThreshold) Type Uses

func (m *MessageThreshold) Type() string

Type is a function declared in the pflag.Value interface

Package formatting imports 10 packages (graph) and is imported by 4 packages. Updated 2020-12-21. Refresh now. Tools for package owners.