Documentation ¶
Index ¶
- Variables
- func AdminAuthCtx(ctx context.Context) context.Context
- func CheckErr(e error)
- func Fatal(err error, args ...interface{})
- func Message(format string, args ...interface{})
- func MustAuthCtx(ctx context.Context) context.Context
- func RenderTable(writer io.Writer, header []string, data [][]string)
- func Success(format string, args ...interface{})
- func WatchJobIds(jobIds ...string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // PowClient is the powergate client. PowClient *client.Client // CmdTimeout is the standard timeout. CmdTimeout = time.Second * 60 )
Functions ¶
func AdminAuthCtx ¶
AdminAuthCtx returns the admin auth context built from viper admin token.
func Fatal ¶
func Fatal(err error, args ...interface{})
Fatal prints a fatal error to stdout, and exits immediately with error code 1.
func MustAuthCtx ¶
MustAuthCtx returns the auth context built from viper token.
func RenderTable ¶
RenderTable renders a table with header columns and data rows to writer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.