Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewDashboardFileReader ¶
func NewDashboardFileReader(cfg *DashboardsAsConfig, log log.Logger) (*fileReader, error)
Types ¶
type ConfigVersion ¶
type ConfigVersion struct {
ApiVersion int64 `json:"apiVersion" yaml:"apiVersion"`
}
type DashboardAsConfigV1 ¶
type DashboardAsConfigV1 struct {
Providers []*DashboardProviderConfigs `json:"providers" yaml:"providers"`
}
type DashboardProviderConfigs ¶
type DashboardProviderConfigs struct {
Name string `json:"name" yaml:"name"`
Type string `json:"type" yaml:"type"`
OrgId int64 `json:"orgId" yaml:"orgId"`
Folder string `json:"folder" yaml:"folder"`
Editable bool `json:"editable" yaml:"editable"`
Options map[string]interface{} `json:"options" yaml:"options"`
DisableDeletion bool `json:"disableDeletion" yaml:"disableDeletion"`
UpdateIntervalSeconds int64 `json:"updateIntervalSeconds" yaml:"updateIntervalSeconds"`
}
type DashboardProvisioner ¶
type DashboardProvisioner struct {
// contains filtered or unexported fields
}
func NewDashboardProvisioner ¶
func NewDashboardProvisioner(configDirectory string) *DashboardProvisioner
func (*DashboardProvisioner) Provision ¶
func (provider *DashboardProvisioner) Provision(ctx context.Context) error
type DashboardsAsConfig ¶
type DashboardsAsConfigV0 ¶
type DashboardsAsConfigV0 struct {
Name string `json:"name" yaml:"name"`
Type string `json:"type" yaml:"type"`
OrgId int64 `json:"org_id" yaml:"org_id"`
Folder string `json:"folder" yaml:"folder"`
Editable bool `json:"editable" yaml:"editable"`
Options map[string]interface{} `json:"options" yaml:"options"`
DisableDeletion bool `json:"disableDeletion" yaml:"disableDeletion"`
UpdateIntervalSeconds int64 `json:"updateIntervalSeconds" yaml:"updateIntervalSeconds"`
}
Source Files
¶
- config_reader.go
- dashboard.go
- file_reader.go
- types.go
Click to show internal directories.
Click to hide internal directories.