clihub

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAppsecRuleMetric

func GetAppsecRuleMetric(url string, itemName string) map[string]int

func GetParserMetric

func GetParserMetric(url string, itemName string) map[string]map[string]int

GetParserMetric is a complete rip from prom2json

func GetPrometheusMetric

func GetPrometheusMetric(url string) []*prom2json.Family

func GetScenarioMetric

func GetScenarioMetric(url string, itemName string) map[string]int

func InspectItem

func InspectItem(item *cwhub.Item, showMetrics bool, output string, prometheusURL string, wantColor string) error

func ListItems

func ListItems(out io.Writer, wantColor string, itemTypes []string, items map[string][]*cwhub.Item, omitIfEmpty bool, output string) error

func New

func New(cfg configGetter) *cliHub

func SelectItems

func SelectItems(hub *cwhub.Hub, itemType string, args []string, installedOnly bool) ([]*cwhub.Item, error)

selectItems returns a slice of items of a given type, selected by name and sorted by case-insensitive name

func ShowMetrics

func ShowMetrics(prometheusURL string, hubItem *cwhub.Item, wantColor string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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