Documentation
¶
Overview ¶
Package packageasset defines the shared generated-package asset descriptor. Generation writes it; package loading consumes it without importing emitters.
Index ¶
Constants ¶
View Source
const ManifestName = ".datly-gen.json"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resources ¶
func DiscoverSourceResources ¶
DiscoverSourceResources finds generated go:embed declarations in a package.
type Snapshotter ¶
Snapshotter creates a completed filesystem for one unpublished generation. Standard-library archive storage retains all bytes without fabricating embed internals.
type StaticSource ¶
type StaticSource struct {
// LocalRoot is an optional caller-owned authority selected independently of
// ContentURL. Local ContentURL must be relative to it. The caller must keep it
// open through staging and must not derive it by following configured paths.
// Nil uses the volume root for absolute paths, or cwd for relative paths.
LocalRoot *os.Root
Resources *resource.Store
ContentURL string
}
StaticSource resolves static authority once per generation. Local OS roots are confined while snapshotting; remote ContentURL keeps AFS ownership.
func (StaticSource) Snapshot ¶
func (s StaticSource) Snapshot(ctx context.Context, content *spec.StaticContent) (fs.FS, error)
Click to show internal directories.
Click to hide internal directories.