formatted

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Age

func Age(t *metav1.Time, c clockwork.Clock) string

func Condition

func Condition(c v1beta1.Conditions) string

Condition returns a human readable text based on the status of the Condition

func Duration

func Duration(t1, t2 *metav1.Time) string

Types

type Color

type Color struct {
	Rainbow *rainbow
	// contains filtered or unexported fields
}

Color formatter to print the colored output on streams

func NewColor

func NewColor() *Color

NewColor returns a new instance color formatter

func (*Color) Error

func (c *Color) Error(w io.Writer, format string, args ...interface{})

Error prints the formatted content to given destination in red color

func (*Color) PrintRed

func (c *Color) PrintRed(w io.Writer, format string, args ...interface{})

PrintRed prints the formatted content to given destination in red color

Jump to

Keyboard shortcuts

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