Documentation
¶
Index ¶
- func LoadBundleFromDisk(path, name string, bvc *bundle.VerificationConfig) (*bundle.Bundle, error)deprecated
- func LoadBundleFromDiskForRegoVersion(regoVersion ast.RegoVersion, path, name string, bvc *bundle.VerificationConfig, ...) (*bundle.Bundle, error)
- func LoadWasmResolversFromStore(ctx context.Context, store storage.Store, txn storage.Transaction, ...) ([]*wasm.Resolver, error)
- func MergedBundlePrefix(p string) (string, error)
- func SaveBundleToDisk(path string, raw io.Reader) (string, error)
- func WarnSourcesAboveManifest(w io.Writer, paths []string, filter func(string, os.FileInfo, int) bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadBundleFromDisk
deprecated
added in
v0.49.0
func LoadBundleFromDiskForRegoVersion ¶ added in v0.61.0
func LoadBundleFromDiskForRegoVersion(regoVersion ast.RegoVersion, path, name string, bvc *bundle.VerificationConfig, legacyWarn func(string, ...any)) (*bundle.Bundle, error)
LoadBundleFromDiskForRegoVersion loads a persisted bundle. A non-nil legacyWarn accepts the legacy manifest placement of downloaded bundles.
func LoadWasmResolversFromStore ¶
func LoadWasmResolversFromStore(ctx context.Context, store storage.Store, txn storage.Transaction, otherBundles map[string]*bundle.Bundle) ([]*wasm.Resolver, error)
LoadWasmResolversFromStore will lookup all Wasm modules from the store along with the associated bundle manifest configuration and instantiate the respective resolvers.
func MergedBundlePrefix ¶ added in v1.23.0
MergedBundlePrefix returns the slash-separated directory that holds the files of the bundle loaded from p, when several bundles are merged into one. Leading ".." segments are replaced by the name of the directory they resolve to, so that entries stay inside the merged bundle.
func SaveBundleToDisk ¶ added in v0.49.0
SaveBundleToDisk saves the given raw bytes representing the bundle's content to disk
Types ¶
This section is empty.