config

package
v0.0.0-...-9960df0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tenants

func Tenants(config *Config) (map[string]tenant.Tenant, error)

Tenants returns a map of username and tenant as read from the config

Types

type Config

type Config struct {
	Database database  `json:"database"`
	Tenants  []*Tenant `json:"tenants"`
	Users    []*User   `json:"users"`
}

func LoadFile

func LoadFile(filename string) (*Config, error)

type JaegerConfig

type JaegerConfig struct {
	URL string `json:"url"`
}

type PrometheusConfig

type PrometheusConfig struct {
	URL string `json:"url"`
}

type Tenant

type Tenant struct {
	ID         string           `json:"id"`
	Users      []string         `json:"users"`
	Prometheus PrometheusConfig `json:"prometheus"`
	Jaeger     JaegerConfig     `json:"jaeger"`
}

type User

type User struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Token    string `json:"token"`
}

Jump to

Keyboard shortcuts

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