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, protocol string) ([]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
protocol filters templates to only those whose info.metadata.protocol matches the given application protocol (e.g., "FTP", "SSH", "HTTP"). Pass an empty string to disable filtering.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.