files

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package files validates static file declarations shared by Flow extensions. It does not retain bytes, open providers, or implement runtime storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCompilerMeta

func ValidateCompilerMeta(meta map[string]any, key string) error

ValidateCompilerMeta checks a compiler metadata Files map while preserving the typed xfile.Ref contract; malformed or string-valued maps are rejected.

func ValidateMap

func ValidateMap(values map[string]xfile.Ref) error

ValidateMap validates the typed Files-map contract. The map is inspected only; callers keep ownership and no runtime file state is created.

func ValidatePath

func ValidatePath(name string) error

ValidatePath accepts one canonical slash-separated path below a declared fs.FS/root. It rejects absolute paths, traversal, empty components, and platform-specific separators so the same reference is safe on every OS.

Types

This section is empty.

Jump to

Keyboard shortcuts

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