config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReportIDTypeSemver = "semver"
	ReportIDTypeInt    = "int"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart

type Chart struct {
	Name    string   `yaml:"name" json:"name"`
	Metrics []string `yaml:"metrics" json:"metrics"`
}

type Config

type Config struct {
	Projects map[string]*Project `yaml:"projects" json:"projects"`
}

func New

func New(path string) (*Config, error)

type Dashboard

type Dashboard struct {
	Name   string   `yaml:"name" json:"name"`
	Charts []*Chart `yaml:"charts" json:"charts"`
}

type Project

type Project struct {
	Name       string       `yaml:"name" json:"name"`
	IDType     string       `yaml:"id_type" json:"idType"`
	Layers     []string     `yaml:"pattern" json:"layers"`
	Dashboards []*Dashboard `yaml:"dashboards" json:"dashboards"`
}

Jump to

Keyboard shortcuts

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