Documentation
¶
Overview ¶
Package assets distributes immutable plugin files through Foundry's shared guarded publisher. Publication is explicit and never part of application boot.
Index ¶
Constants ¶
const MaxBytes = generate.MaxDistributionBytes
const MaxFileBytes = generate.MaxDistributionFileBytes
const MaxFiles = generate.MaxDistributionFiles
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(r *foundation.Registrar, bundle *Bundle) error
Register contributes an already snapshotted bundle under the captured plugin owner/release. It performs no publication or filesystem reads.
Types ¶
type Bundle ¶
type Bundle struct {
// contains filtered or unexported fields
}
Bundle snapshots every source file. It is safe to share across applications; inspection returns copies and publication does not modify the bundle.
func Bundles ¶
func Bundles(resolver foundation.Resolver) ([]*Bundle, error)
Bundles returns immutable bundles registered in dependency order. Calling it on App.Services needs no boot or runtime infrastructure.
func (*Bundle) Info ¶
func (b *Bundle) Info() manifest.Distribution
Info returns distribution metadata, or zero metadata for a nil bundle.
func (*Bundle) Publish ¶
Publish confines files to one existing selected output root. Different bundle owners, older releases, unowned files and edited owned files are refused. Check is read-only, including when recovery is pending. Failed publication can leave newly created empty directories; it never recursively deletes directories.