table

package
v0.6.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: Apache-2.0 Imports: 19 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToStar added in v0.1.0

func BoolToStar(obj interface{}) (string, error)

func FormatCreated

func FormatCreated(data interface{}) (string, error)

func FormatFirst

func FormatFirst(data, data2 interface{}) (string, error)

func FormatID added in v0.6.0

func FormatID(obj runtime.Object, namespace string) (string, error)

func FormatJSON

func FormatJSON(data interface{}) (string, error)

func FormatJSONCompact added in v0.0.3

func FormatJSONCompact(data interface{}) (string, error)

func FormatSpew added in v0.1.0

func FormatSpew(data interface{}) (string, error)

func FormatYAML

func FormatYAML(data interface{}) (string, error)

func Graph added in v0.1.0

func Graph(value int) (string, error)

func Pointer added in v0.6.0

func Pointer(data interface{}) string

func SimpleFormat

func SimpleFormat(values [][]string) (string, string)

func ToArray added in v0.1.0

func ToArray(s []string) (string, error)

func ToArrayFirst added in v0.6.0

func ToArrayFirst(s []string) (string, error)

func ToJSON added in v0.1.0

func ToJSON(data interface{}) (map[string]interface{}, error)

func WriterFlags

func WriterFlags() []cli.Flag

Types

type FormatFunc

type FormatFunc interface{}

type Writer

type Writer interface {
	Write(obj interface{})
	Close() error
	Err() error
	AddFormatFunc(name string, f FormatFunc)
}

func NewWriter

func NewWriter(values [][]string, config WriterConfig) Writer

type WriterConfig added in v0.1.0

type WriterConfig interface {
	GetSetNamespace() string
	Quiet() bool
	Format() string
	Writer() io.Writer
}

Jump to

Keyboard shortcuts

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