table

package
v0.0.0-...-479c569 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToStar

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

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

func FormatJSON

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

func FormatJSONCompact

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

func FormatSpew

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

func FormatYAML

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

func Graph

func Graph(value int) (string, error)

func Pointer

func Pointer(data interface{}) string

func SimpleFormat

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

func ToArray

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

func ToArrayFirst

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

func ToJSON

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

Types

type Args

type Args struct {
	Quiet  bool   `name:"quiet" usage:"only print ID" short:"q"`
	Format string `name:"format" usage:"format(yaml/json/jsoncompact/raw)"`
}

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, namespace string, quiet bool, format string) Writer

type WriterConfig

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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