parse

package
v0.0.0-...-e8fe7a1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFlowRoutes

func BuildFlowRoutes(proj dsl.Project) (config.Route, []diag.Diagnostic)

func BuildReceivers

func BuildReceivers(proj dsl.Project) ([]config.Receiver, []diag.Diagnostic)

BuildReceivers maps team channels into AM receivers. Does not deduplicate — that’s handled later in validation. Channel.Type determines which AM config array gets populated.

func BuildTimeIntervals

func BuildTimeIntervals(proj dsl.Project) ([]config.TimeInterval, []diag.Diagnostic)

BuildTimeIntervals maps global + team silence_windows into AM time_intervals. Team-level windows can shadow global ones with the same name (warn).

func ResolveSecrets

func ResolveSecrets(data any, prov secrets.Provider) []diag.Diagnostic

ResolveSecrets walks the loaded DSL project and resolves any string values that start with "secret://<KEY>" using the provided secrets.Provider.

It mutates proj in place, replacing secret references with their resolved values, and returns diagnostics for any failures encountered.

func ToAlertmanager

func ToAlertmanager(proj dsl.Project, prov secrets.Provider) (*config.Config, []diag.Diagnostic)

ToAlertmanager translates a loaded Fuse project into an Alertmanager config.

func ToMatchers

func ToMatchers(when []dsl.Matcher) (config.Matchers, []diag.Diagnostic)

Types

type Options

type Options struct {
	Verbose bool
}

Jump to

Keyboard shortcuts

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