templates

package
v0.3.18 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package templates ships Ether's curated starter Flow templates: the five notification presets plus native power-user recipes (Tautulli & JBOPS parity without external scripts).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All() []flows.Template

All returns deep copies of all curated starter templates with valid default graphs.

func ByCategory

func ByCategory(category string) []flows.Template

ByCategory returns all templates matching category (case-insensitive).

func ByID

func ByID(id string) (flows.Template, bool)

ByID looks up one curated starter template by its stable ID.

func ByNotifyPreset

func ByNotifyPreset(preset string) (flows.Template, bool)

ByNotifyPreset looks up the template corresponding to a legacy notification preset key (critical, playback, providers, updates, newsletter).

func Instantiate

func Instantiate(templateID string, overrides map[string]any) (flows.Flow, error)

Instantiate creates a ready-to-save Flow from templateID using owner-chosen parameter overrides merged over the template's declared defaults.

Types

This section is empty.

Jump to

Keyboard shortcuts

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