utils

package
v0.0.3-dev Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatJSON

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

func HomeDir

func HomeDir() string

func KubeConfigFilePath

func KubeConfigFilePath() string

func SimpleFormat

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

func WriteToFile

func WriteToFile(data []byte, file string) error

Types

type TableWriter

type TableWriter struct {
	HeaderFormat string
	ValueFormat  string

	Writer *tabwriter.Writer
	// contains filtered or unexported fields
}

func NewTableWriter

func NewTableWriter(values [][]string, ctx *cli.Context) *TableWriter

func (*TableWriter) Close

func (t *TableWriter) Close() error

func (*TableWriter) Err

func (t *TableWriter) Err() error

func (*TableWriter) Write

func (t *TableWriter) Write(obj interface{})

Jump to

Keyboard shortcuts

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