Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Collectors = map[string]CollectorFactory{}
Functions ¶
func BuildConfigurationOptions ¶
func BuildConfigurationOptions() (map[string]config.Configuration, error)
func GetCollectorNames ¶
func Register ¶
func Register(name string, collector CollectorFactory)
Register can be called from init() on a collector in this package It will automatically be added to the Collectors map to be called externally
Types ¶
type Collector ¶
type Collector interface { Collect(config config.Configuration) (*data.DiagnosticBundle, error) Configuration() config.Configuration IsDefault() bool Description() string }
func GetCollectorByName ¶
type CollectorFactory ¶
CollectorFactory lets us use a closure to get instances of the collector struct
Click to show internal directories.
Click to hide internal directories.