Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var All embed.FS
All is the CVE templates
Functions ¶
func GetTemplateFileSystem ¶
func GetTemplateFileSystem(ctx context.Context, templatePaths []string, targetPorts []int) ([]fs.FS, error)
GetTemplateFileSystem returns filesystem views for templates based on the provided template paths. templatePaths can contain either: - Complete paths to template files (e.g., "cve/2024/CVE-2024-13624.yaml") - Folder paths (e.g., "cve/2024" or "cve") - will collect all .yaml/.yml files recursively from that folder
targetPorts filters templates to only those whose target-port metadata matches at least one of the given ports. Pass nil or an empty slice to disable port filtering.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.