Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPluginsDir ¶
func DefaultPluginsDir() string
Types ¶
type BarChartItem ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
type MetricItem ¶
type Panel ¶
type Panel struct {
ID string `json:"id" yaml:"id"`
Type PanelType `json:"type" yaml:"type"`
Title string `json:"title" yaml:"title"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
Sortable bool `json:"sortable,omitempty" yaml:"sortable,omitempty"`
Expandable bool `json:"expandable,omitempty" yaml:"expandable,omitempty"`
Width string `json:"width,omitempty" yaml:"width,omitempty"`
}
type PanelData ¶
type PanelData struct {
Items json.RawMessage `json:"items,omitempty"`
Columns []string `json:"columns,omitempty"`
Rows json.RawMessage `json:"rows,omitempty"`
}
type Plugin ¶
type Plugin struct {
Name string `json:"name" yaml:"name"`
Tab string `json:"tab" yaml:"tab"`
Command string `json:"command" yaml:"command"`
CacheSecs int `json:"cache_seconds" yaml:"cache_seconds"`
Panels []Panel `json:"panels" yaml:"panels"`
AutoDetect []string `json:"-" yaml:"-"`
BuiltIn bool `json:"-" yaml:"-"`
}
func ScanPlugins ¶
Click to show internal directories.
Click to hide internal directories.