Documentation
¶
Index ¶
- func ClearContexts(app *domain.GDGAppConfiguration)
- func CopyContext(app *domain.GDGAppConfiguration, src, dest string)
- func CreateNewContext(app *domain.GDGAppConfiguration, name string)
- func DefaultConfig() string
- func DeleteContext(app *domain.GDGAppConfiguration, name string)
- func InitGdgConfig(override string) *domain.GDGAppConfiguration
- func InitTemplateConfig(override string) *domain.TemplatingConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearContexts ¶ added in v0.9.1
func ClearContexts(app *domain.GDGAppConfiguration)
ClearContexts resets all contexts to a single default example context and saves the config.```
func CopyContext ¶ added in v0.9.1
func CopyContext(app *domain.GDGAppConfiguration, src, dest string)
CopyContext Makes a copy of the specified context and write to disk
func CreateNewContext ¶ added in v0.9.1
func CreateNewContext(app *domain.GDGAppConfiguration, name string)
CreateNewContext prompts the user to configure a new Grafana context with authentication, folders, and default connection settings. It builds the configuration, writes secure files, updates the internal context map, saves the config to disk, and logs completion.
func DefaultConfig ¶ added in v0.9.1
func DefaultConfig() string
func DeleteContext ¶ added in v0.9.1
func DeleteContext(app *domain.GDGAppConfiguration, name string)
DeleteContext remove a given context
func InitGdgConfig ¶ added in v0.6.0
func InitGdgConfig(override string) *domain.GDGAppConfiguration
InitGdgConfig initializes the global configuration from a file or defaults. It loads gdg.yml (or importer.yml) using Viper, updates context names, and stores the configuration in a global variable for later use.
func InitTemplateConfig ¶ added in v0.5.2
func InitTemplateConfig(override string) *domain.TemplatingConfig
InitTemplateConfig loads templating configuration from a file or defaults. It builds the search path, reads the config with Viper, and returns a populated *domain.TemplatingConfig instance.```
Types ¶
This section is empty.