runbooks

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package runbooks provides embedded runbook documents for procedural guidance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() ([]types.Runbook, error)

Load reads all embedded markdown files and parses them into Runbook objects. Each file must have YAML frontmatter delimited by "---" markers.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry holds loaded runbooks and provides access for indexing and search.

func NewRegistry

func NewRegistry(log logrus.FieldLogger) (*Registry, error)

NewRegistry creates a new runbook registry and loads all embedded runbooks.

func (*Registry) All

func (r *Registry) All() []types.Runbook

All returns all loaded runbooks.

func (*Registry) Count

func (r *Registry) Count() int

Count returns the number of loaded runbooks.

func (*Registry) Get

func (r *Registry) Get(name string) *types.Runbook

Get returns a runbook by name, or nil if not found.

func (*Registry) Tags

func (r *Registry) Tags() []string

Tags returns all unique tags across all runbooks.

Jump to

Keyboard shortcuts

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