Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct { // UID is a unique identifier for the collector. UID string `json:"uid"` // DisplayName is the name of the collector. User facing. DisplayName string `json:"displayName"` // Description is a description of the collector. User facing. Description string `json:"description"` // IncludedByDefault determines if the collector is included by default. // User cannot override this. IncludedByDefault bool `json:"includedByDefault"` // Default determines if the collector is included by default. // User can override this. Default bool `json:"default"` // Fn is the function that collects the support item. Fn CollectorFunc `json:"-"` // EnabledFn is a function that determines if the collector is enabled. If nil, the collector is always enabled. EnabledFn func() bool `json:"-"` }
type CollectorFunc ¶
type CollectorFunc func(context.Context) (*SupportItem, error)
type SupportItem ¶
Click to show internal directories.
Click to hide internal directories.