Documentation
¶
Index ¶
- func ClearContexts()
- func CopyContext(src, dest string)
- func DeleteContext(context string)
- func GetContext() string
- func GetContexts() []string
- func GetCtxDefaultGrafanaConfig() *config.GrafanaConfig
- func GetCtxGrafanaConfig(name string) *config.GrafanaConfig
- func NewContext(name string)
- func SetContext(context string)
- func ShowContext(ctx string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearContexts ¶
func ClearContexts()
ClearContexts clear all contexts except a simple running example (required for app not to error out)
func CopyContext ¶
func CopyContext(src, dest string)
func GetCtxDefaultGrafanaConfig ¶
func GetCtxDefaultGrafanaConfig() *config.GrafanaConfig
GetCtxDefaultGrafanaConfig returns the default aka. selected grafana config
func GetCtxGrafanaConfig ¶
func GetCtxGrafanaConfig(name string) *config.GrafanaConfig
GetCtxGrafanaConfig returns the selected context or terminates app if not found
func NewContext ¶
func NewContext(name string)
func SetContext ¶
func SetContext(context string)
SetContext will try to find the specified context, if it exists in the file, will re-write the importer.yml with the selected context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.