Documentation ¶
Index ¶
- func ClearCurrentLine()
- func ColumnNames(columns []*queryresult.ColumnDef) []string
- func ColumnValueAsString(val interface{}, col *queryresult.ColumnDef) (result string, err error)
- func ColumnValuesAsString(values []interface{}, columns []*queryresult.ColumnDef) ([]string, error)
- func DisplayErrorTiming(t time.Time)
- func ParseJSONOutputColumnValue(val interface{}, col *queryresult.ColumnDef) (interface{}, error)
- func PrintInstallReports(reports PluginInstallReports, isUpdateReport bool)
- func ShowOutput(ctx context.Context, result *queryresult.Result)
- func ShowPaged(ctx context.Context, content string)
- func ShowVarsListJson(vars []*modconfig.Variable)
- func ShowVarsListTable(vars []*modconfig.Variable)
- func ShowWrappedTable(headers []string, rows [][]string, opts *ShowWrappedTableOptions)
- type PluginInstallReport
- type PluginInstallReports
- type PluginRemoveReport
- type PluginRemoveReports
- type ShowWrappedTableOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearCurrentLine ¶
func ClearCurrentLine()
func ColumnNames ¶
func ColumnNames(columns []*queryresult.ColumnDef) []string
ColumnNames :: extract names from columns
func ColumnValueAsString ¶
func ColumnValueAsString(val interface{}, col *queryresult.ColumnDef) (result string, err error)
ColumnValueAsString converts column value to string
func ColumnValuesAsString ¶
func ColumnValuesAsString(values []interface{}, columns []*queryresult.ColumnDef) ([]string, error)
ColumnValuesAsString converts a slice of columns into strings
func DisplayErrorTiming ¶ added in v0.16.2
DisplayErrorTiming shows the time taken for the query to fail
func ParseJSONOutputColumnValue ¶
func ParseJSONOutputColumnValue(val interface{}, col *queryresult.ColumnDef) (interface{}, error)
ParseJSONOutputColumnValue segregate data types, ignore string conversion for certain data types : JSON, JSONB, BOOL and so on..
func PrintInstallReports ¶
func PrintInstallReports(reports PluginInstallReports, isUpdateReport bool)
PrintInstallReports Prints out the installation reports onto the console
func ShowOutput ¶
func ShowOutput(ctx context.Context, result *queryresult.Result)
ShowOutput displays the output using the proper formatter as applicable
func ShowVarsListJson ¶
func ShowVarsListTable ¶
func ShowWrappedTable ¶
func ShowWrappedTable(headers []string, rows [][]string, opts *ShowWrappedTableOptions)
Types ¶
type PluginInstallReport ¶
type PluginInstallReport struct { Skipped bool Plugin string SkipReason string DocURL string Version string IsUpdateReport bool }
func (*PluginInstallReport) String ¶
func (i *PluginInstallReport) String() string
type PluginInstallReports ¶
type PluginInstallReports []*PluginInstallReport
func (PluginInstallReports) Len ¶
func (i PluginInstallReports) Len() int
making the type compatible with sort.Interface so that we can use the sort package utilities
func (PluginInstallReports) Less ¶
func (i PluginInstallReports) Less(lIdx, rIdx int) bool
func (PluginInstallReports) Swap ¶
func (i PluginInstallReports) Swap(lIdx, rIdx int)
type PluginRemoveReport ¶
type PluginRemoveReport struct { Image *ociinstaller.SteampipeImageRef ShortName string Connections []modconfig.Connection }
type PluginRemoveReports ¶
type PluginRemoveReports []PluginRemoveReport
func (PluginRemoveReports) Print ¶
func (r PluginRemoveReports) Print()
type ShowWrappedTableOptions ¶ added in v0.17.0
Click to show internal directories.
Click to hide internal directories.