safeasset

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package safeasset centralizes checks for files that must not be copied into generated public or embedded output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmbeddableGeneratedOutputFile added in v0.12.1

func EmbeddableGeneratedOutputFile(rel string) bool

EmbeddableGeneratedOutputFile reports whether rel should be copied into a generated app's embedded filesystem. Runtime-private manifests are embedded for generated code but remain non-public in the runtime handler.

func PrivateKeyFile

func PrivateKeyFile(base string) bool

PrivateKeyFile reports common private key filenames without extension.

func PublicGeneratedOutputFile added in v0.12.1

func PublicGeneratedOutputFile(rel string) bool

PublicGeneratedOutputFile reports whether rel is part of the browser-facing generated-output surface. Unknown files fail closed so compiler-private metadata and user-added files under an output directory are not served or embedded by default.

func UnsafeEmbeddedDirectory

func UnsafeEmbeddedDirectory(rel string) bool

UnsafeEmbeddedDirectory reports whether a directory should be skipped when copying generated output into a generated app.

func UnsafeEmbeddedFile

func UnsafeEmbeddedFile(rel string) bool

UnsafeEmbeddedFile reports whether a file must not be embedded or served as generated static output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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