Documentation
¶
Index ¶
- func BuildFlowRoutes(proj dsl.Project) (config.Route, []diag.Diagnostic)
- func BuildReceivers(proj dsl.Project) ([]config.Receiver, []diag.Diagnostic)
- func BuildTimeIntervals(proj dsl.Project) ([]config.TimeInterval, []diag.Diagnostic)
- func ResolveSecrets(data any, prov secrets.Provider) []diag.Diagnostic
- func ToAlertmanager(proj dsl.Project, prov secrets.Provider) (*config.Config, []diag.Diagnostic)
- func ToMatchers(when []dsl.Matcher) (config.Matchers, []diag.Diagnostic)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildFlowRoutes ¶
func BuildReceivers ¶
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 ¶
ToAlertmanager translates a loaded Fuse project into an Alertmanager config.