ui

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LoadedConfigPath  string
	DefaultConfigPath string
)

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevel       string    `yaml:"logLevel"`
	CurrentContext string    `yaml:"currentContext"`
	Contexts       []Context `yaml:"contexts"`
}

func NewDefaultConfig

func NewDefaultConfig() Config

func (Config) GetCurrentContext

func (c Config) GetCurrentContext() (Context, bool)

func (Config) PrintConfig

func (c Config) PrintConfig() ([]byte, error)

func (*Config) SetCurrentContext

func (c *Config) SetCurrentContext(ctx string) bool

func (Config) WriteConfig

func (c Config) WriteConfig() error

type Context

type Context struct {
	Name    string `yaml:"name"`
	Target  string `yaml:"target"`
	Grafana string `yaml:"grafana"`
}

Jump to

Keyboard shortcuts

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