config

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigFileName = ".admiral.yaml"
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Fargate          bool        `json:"fargate,omitempty"`
	Events           Events      `json:"events"`
	Logstream        Logstream   `json:"logstream"`
	Performance      Performance `json:"performance"`
	Metrics          Metrics     `json:"metrics"`
	Namespace        string      `json:"namespace,omitempty"`
	Cluster          string      `json:"cluster,omitempty"`
	IgnoreContainers []string    `json:"ignorecontainers"`
}

func New

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

func (*Config) Load

func (c *Config) Load(path string) error

type Events

type Events struct {
	Handler EventsHandler `json:"handler"`
}

type EventsHandler

type EventsHandler struct {
	Webhook Webhook `json:"webhook"`
}

type Logstore

type Logstore struct {
	Loki  Loki `json:"loki"`
	Local bool `josn:"local"`
}

type Logstream

type Logstream struct {
	Timeout  string   `json:"timeout"`
	Logstore Logstore `json:"logstore"`
	Apps     []string `json:"apps"`
}

type Loki

type Loki struct {
	Url string `json:"url"`
}

type Metrics

type Metrics struct {
	Handler MetricsHandler `json:"handler"`
	Apps    []string       `json:"apps"`
}

type MetricsHandler

type MetricsHandler struct {
	Prometheus  string `json:"prometheus"`
	PushGateway string `json:"pushgateway"`
}

type Performance

type Performance struct {
	Apps   []string `json:"apps"`
	Target Target   `json:"target"`
}

type Target

type Target struct {
	Web Web `json:"web"`
}

type Test

type Test struct {
	Url    string `json:"url"`
	Mobile int    `json:"mobile"`
	Runs   int    `json:"runs"`
}

type Web

type Web struct {
	Tests map[string][]Test `json:"tests"`
}

type Webhook

type Webhook struct {
	Url string `json:"url"`
}

Jump to

Keyboard shortcuts

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