logger

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorizeAction

func ColorizeAction(action ssa.Action) string

func ColorizeAny

func ColorizeAny(v any) string

func ColorizeBundle

func ColorizeBundle(bundle string) string

func ColorizeChange

func ColorizeChange(subject string, action ssa.Action) string

func ColorizeChangeSetEntry

func ColorizeChangeSetEntry(change ssa.ChangeSetEntry) string

func ColorizeCluster

func ColorizeCluster(cluster string) string

func ColorizeDryRun

func ColorizeDryRun(dryRun DryRunType) string

func ColorizeError

func ColorizeError(err error) string

func ColorizeInfo

func ColorizeInfo(subject string) string

func ColorizeInstance

func ColorizeInstance(instance string) string

func ColorizeJoin

func ColorizeJoin(values ...any) string

func ColorizeReady

func ColorizeReady(subject string) string

func ColorizeRuntime

func ColorizeRuntime(runtime string) string

func ColorizeStatus

func ColorizeStatus(status status.Status) string

func ColorizeSubject

func ColorizeSubject(subject string) string

func ColorizeUnstructured

func ColorizeUnstructured(object *unstructured.Unstructured) string

func ColorizeWarning

func ColorizeWarning(subject string) string

func NewConsoleLogger

func NewConsoleLogger(colorize, prettify bool) logr.Logger

NewConsoleLogger returns a human-friendly Logger. Pretty print adds timestamp, log level and colorized output to the logs.

func StartSpinner

func StartSpinner(msg string) interface{ Stop() }

StartSpinner starts a spinner with the given message.

Types

type DryRunType

type DryRunType string
const (
	DryRunClient DryRunType = "(dry run)"
	DryRunServer DryRunType = "(server dry run)"
)

Jump to

Keyboard shortcuts

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