Documentation
¶
Index ¶
- 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 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 DataConfig
- type ExperimentalConfig
- type IntegrationState
- type TelemetryConfig
- type UIConfig
Constants ¶
This section is empty.
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 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"`
}
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 DataConfig ¶ added in v0.5.2
type ExperimentalConfig ¶
type ExperimentalConfig struct {
Analytics bool `json:"analytics"`
}
type IntegrationState ¶ added in v0.5.3
type TelemetryConfig ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.