Documentation
¶
Index ¶
- Constants
- func ConfigDir() string
- func ConfigPath() string
- func CredentialsPath() string
- func DefaultProviderLinks() map[string]string
- func DeleteCredential(accountID string) error
- func DeleteCredentialFrom(path, accountID string) error
- func Save(cfg Config) error
- func SaveAutoDetected(accounts []core.AccountConfig) error
- func SaveAutoDetectedTo(path string, accounts []core.AccountConfig) error
- func SaveCredential(accountID, apiKey string) error
- func SaveCredentialTo(path, accountID, apiKey string) error
- func SaveDashboardProviders(providers []DashboardProviderConfig) error
- func SaveDashboardProvidersTo(path string, providers []DashboardProviderConfig) error
- func SaveDashboardView(view string) error
- func SaveDashboardViewTo(path string, view string) error
- func SaveDashboardWidgetSections(sections []DashboardWidgetSection) error
- func SaveDashboardWidgetSectionsTo(path string, sections []DashboardWidgetSection) error
- func SaveIntegrationState(id string, state IntegrationState) error
- func SaveIntegrationStateTo(path string, id string, state IntegrationState) error
- func SaveTheme(theme string) error
- func SaveThemeTo(path string, theme string) error
- func SaveTimeWindow(window string) error
- func SaveTimeWindowTo(path string, window string) error
- func SaveTo(path string, cfg Config) error
- type Config
- type Credentials
- type DashboardConfig
- type DashboardProviderConfig
- type DashboardWidgetSection
- type DataConfig
- type ExperimentalConfig
- type IntegrationState
- type TelemetryConfig
- type UIConfig
Constants ¶
const ( DashboardViewGrid = "grid" DashboardViewStacked = "stacked" DashboardViewList = "list" DashboardViewTabs = "tabs" DashboardViewSplit = "split" DashboardViewCompare = "compare" )
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
func ConfigPath() string
func CredentialsPath ¶ added in v0.2.0
func CredentialsPath() string
func DefaultProviderLinks ¶ added in v0.5.0
DefaultProviderLinks returns built-in telemetry provider-id to dashboard provider-id mappings.
func DeleteCredential ¶ added in v0.2.0
func DeleteCredentialFrom ¶ added in v0.2.0
func SaveAutoDetected ¶
func SaveAutoDetected(accounts []core.AccountConfig) error
SaveAutoDetected persists auto-detected accounts into the config file (read-modify-write).
func SaveAutoDetectedTo ¶
func SaveAutoDetectedTo(path string, accounts []core.AccountConfig) error
func SaveCredential ¶ added in v0.2.0
func SaveCredentialTo ¶ added in v0.2.0
func SaveDashboardProviders ¶
func SaveDashboardProviders(providers []DashboardProviderConfig) error
SaveDashboardProviders persists dashboard provider preferences into the config file (read-modify-write).
func SaveDashboardProvidersTo ¶
func SaveDashboardProvidersTo(path string, providers []DashboardProviderConfig) error
func SaveDashboardView ¶ added in v0.6.0
SaveDashboardView persists dashboard view preference into the config file (read-modify-write).
func SaveDashboardViewTo ¶ added in v0.6.0
func SaveDashboardWidgetSections ¶ added in v0.6.5
func SaveDashboardWidgetSections(sections []DashboardWidgetSection) error
SaveDashboardWidgetSections persists dashboard widget section preferences into the config file (read-modify-write).
func SaveDashboardWidgetSectionsTo ¶ added in v0.6.5
func SaveDashboardWidgetSectionsTo(path string, sections []DashboardWidgetSection) error
func SaveIntegrationState ¶ added in v0.5.3
func SaveIntegrationState(id string, state IntegrationState) error
SaveIntegrationState persists an integration state into the config file (read-modify-write).
func SaveIntegrationStateTo ¶ added in v0.5.3
func SaveIntegrationStateTo(path string, id string, state IntegrationState) error
func SaveThemeTo ¶
func SaveTimeWindow ¶ added in v0.5.2
SaveTimeWindow persists a time window into the config file (read-modify-write).
func SaveTimeWindowTo ¶ added in v0.5.2
Types ¶
type Config ¶
type Config struct {
UI UIConfig `json:"ui"`
Theme string `json:"theme"`
Data DataConfig `json:"data"`
Experimental ExperimentalConfig `json:"experimental"`
Telemetry TelemetryConfig `json:"telemetry"`
Dashboard DashboardConfig `json:"dashboard"`
ModelNormalization core.ModelNormalizationConfig `json:"model_normalization"`
AutoDetect bool `json:"auto_detect"`
Accounts []core.AccountConfig `json:"accounts"`
AutoDetectedAccounts []core.AccountConfig `json:"auto_detected_accounts"`
Integrations map[string]IntegrationState `json:"integrations,omitempty"`
}
func DefaultConfig ¶
func DefaultConfig() Config
type Credentials ¶ added in v0.2.0
func LoadCredentials ¶ added in v0.2.0
func LoadCredentials() (Credentials, error)
func LoadCredentialsFrom ¶ added in v0.2.0
func LoadCredentialsFrom(path string) (Credentials, error)
type DashboardConfig ¶
type DashboardConfig struct {
Providers []DashboardProviderConfig `json:"providers"`
View string `json:"view"`
WidgetSections []DashboardWidgetSection `json:"widget_sections,omitempty"`
}
type DashboardProviderConfig ¶
type DashboardProviderConfig struct {
AccountID string `json:"account_id"`
Enabled bool `json:"enabled"`
}
func (*DashboardProviderConfig) UnmarshalJSON ¶
func (p *DashboardProviderConfig) UnmarshalJSON(data []byte) error
type DashboardWidgetSection ¶ added in v0.6.5
type DashboardWidgetSection struct {
ID core.DashboardStandardSection `json:"id"`
Enabled bool `json:"enabled"`
}
func (*DashboardWidgetSection) UnmarshalJSON ¶ added in v0.6.5
func (s *DashboardWidgetSection) UnmarshalJSON(data []byte) error
type DataConfig ¶ added in v0.5.2
type ExperimentalConfig ¶
type ExperimentalConfig struct {
Analytics bool `json:"analytics"`
}