config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const FileName = "wallflower.yaml"

Variables

This section is empty.

Functions

func SearchPaths

func SearchPaths() []string

Types

type File

type File struct {
	PrometheusURL   string  `yaml:"prometheus_url,omitempty"`
	GrafanaURL      string  `yaml:"grafana_url,omitempty"`
	GrafanaToken    string  `yaml:"grafana_token,omitempty"`
	Tenant          string  `yaml:"tenant,omitempty"`
	Lookback        string  `yaml:"lookback,omitempty"`
	CostPer1kSeries float64 `yaml:"cost_per_1k_series,omitempty"`
}

func Load

func Load(paths ...string) (*File, string, error)

func (*File) Write

func (f *File) Write(path string, restrict bool) error

Jump to

Keyboard shortcuts

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