apphelpers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: BSD-3-Clause-LBNL Imports: 8 Imported by: 0

Documentation

Index

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 DeleteContext

func DeleteContext(context string)

DeleteContext Delete a specific

func GetContext

func GetContext() string

GetContext returns the name of the selected context

func GetContexts

func GetContexts() []string

GetContexts returns all available contexts

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

func ShowContext

func ShowContext(ctx string)

ShowContext displays the selected context

Types

This section is empty.

Jump to

Keyboard shortcuts

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