Documentation ¶
Index ¶
- func ColorFromName(name string) *color.Color
- func ColorOfJSON(content string, keys ...string) *color.Color
- func Format(text string, outputter *color.Color) string
- func FormatGrep(text string, logFilter *regexp.Regexp, outputter *color.Color) string
- type Formatter
- type Logger
- func (l Logger) Log(ctx context.Context, kube client.Kube) error
- func (l Logger) WithColorFilter(colorFilter *color.Color) Logger
- func (l Logger) WithContainerRegexp(containerRegexp *regexp.Regexp) Logger
- func (l Logger) WithDryRun(dryRun bool) Logger
- func (l Logger) WithInvertRegexp(invertRegexp bool) Logger
- func (l Logger) WithJsonColorKeys(jsonColorKeys []string) Logger
- func (l Logger) WithLogRegexes(logRegexes []*regexp.Regexp) Logger
- func (l Logger) WithNoFollow(noFollow bool) Logger
- func (l Logger) WithRawOutput(rawOutput bool) Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorFromName ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (Logger) WithContainerRegexp ¶
func (Logger) WithDryRun ¶
func (Logger) WithInvertRegexp ¶ added in v0.6.0
func (Logger) WithJsonColorKeys ¶
func (Logger) WithLogRegexes ¶ added in v0.10.0
func (Logger) WithNoFollow ¶ added in v0.8.6
func (Logger) WithRawOutput ¶
Click to show internal directories.
Click to hide internal directories.