config

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2026 License: BSD-3-Clause-LBNL Imports: 16 Imported by: 0

Documentation

Index

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL