Documentation
¶
Index ¶
- Variables
- func ArgsNumCheck(cmd *cobra.Command, args []string, invalidNum int)
- func Debugf(format string, a ...interface{}) (n int, err error)
- func Debugln(a ...interface{}) (n int, err error)
- func Errorf(format string, a ...interface{}) (n int, err error)
- func Errorln(a ...interface{}) (n int, err error)
- func Fatalf(format string, a ...interface{})
- func Fatalln(a ...interface{})
- func HttpErrStrip(err error) error
- func JsonFormatter(v interface{}) string
- func PrintDict(u interface{}, keys KeyList, fmts FormatterList)
- func PrintList(slice interface{}, keys KeyList, fmts FormatterList)
- func Printf(format string, a ...interface{}) (n int, err error)
- func Println(a ...interface{}) (n int, err error)
- func Run() error
- func TableDict(u interface{}, keys KeyList, fmts FormatterList) string
- func TableList(slice interface{}, keys KeyList, fmts FormatterList) string
- func Warnf(format string, a ...interface{}) (n int, err error)
- func Warnln(a ...interface{}) (n int, err error)
- type DebugWriter
- type DummyWriter
- type FormatterList
- type KeyList
- type StructElemCb
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Debug bool
)
Functions ¶
func ArgsNumCheck ¶ added in v0.1.8
func Fatalln ¶ added in v0.1.8
func Fatalln(a ...interface{})
func HttpErrStrip ¶ added in v0.1.8
Strip some redundant message from client http error.
func PrintDict ¶
func PrintDict(u interface{}, keys KeyList, fmts FormatterList)
func PrintList ¶
func PrintList(slice interface{}, keys KeyList, fmts FormatterList)
Output formats slice of structs data and writes to standard output.(Using box drawing characters)
func TableDict ¶
func TableDict(u interface{}, keys KeyList, fmts FormatterList) string
Table formats slice of structs data and returns the resulting string.(Using standard ascii characters)
func TableList ¶
func TableList(slice interface{}, keys KeyList, fmts FormatterList) string
Table formats slice of structs data and returns the resulting string.(Using box drawing characters)
Types ¶
type DebugWriter ¶ added in v0.3.4
type DebugWriter struct{}
func (DebugWriter) Write ¶ added in v0.3.4
func (writer DebugWriter) Write(data []byte) (n int, err error)
do nothing
Source Files
¶
- cli.go
- common.go
- dock.go
- fileshare.go
- fileshareacl.go
- filesharesnapshot.go
- pool.go
- profile.go
- replication.go
- table.go
- version.go
- volume.go
- volumeattachment.go
- volumegroup.go
- volumesnapshot.go
Click to show internal directories.
Click to hide internal directories.