Versions in this module Expand all Collapse all v1 v1.5.2 Jun 10, 2025 Changes in this version + const Chrooted + const DefaultSizeLimitBytes + const DeltaBundleType + const MD5 + const ManifestExt + const Passthrough + const PlanFile + const RegoExt + const SHA1 + const SHA224 + const SHA256 + const SHA384 + const SHA512 + const SHA512224 + const SHA512256 + const SignaturesFile + const SlashRooted + const SnapshotBundleType + const WasmFile + var BundlesBasePath = v1.BundlesBasePath + func Activate(opts *ActivateOpts) error + func ActivateLegacy(opts *ActivateOpts) error + func Deactivate(opts *DeactivateOpts) error + func EraseManifestFromStore(ctx context.Context, store storage.Store, txn storage.Transaction, name string) error + func EtagStoragePath(name string) storage.Path + func GenerateSignedToken(files []FileInfo, sc *SigningConfig, keyID string) (string, error) + func LegacyEraseManifestFromStore(ctx context.Context, store storage.Store, txn storage.Transaction) error + func LegacyReadRevisionFromStore(ctx context.Context, store storage.Store, txn storage.Transaction) (string, error) + func LegacyWriteManifestToStore(ctx context.Context, store storage.Store, txn storage.Transaction, ...) error + func ManifestStoragePath(name string) storage.Path + func NewIterator(raw []Raw) storage.Iterator + func ReadBundleEtagFromStore(ctx context.Context, store storage.Store, txn storage.Transaction, name string) (string, error) + func ReadBundleMetadataFromStore(ctx context.Context, store storage.Store, txn storage.Transaction, name string) (map[string]any, error) + func ReadBundleNamesFromStore(ctx context.Context, store storage.Store, txn storage.Transaction) ([]string, error) + func ReadBundleRevisionFromStore(ctx context.Context, store storage.Store, txn storage.Transaction, name string) (string, error) + func ReadBundleRootsFromStore(ctx context.Context, store storage.Store, txn storage.Transaction, name string) ([]string, error) + func ReadWasmModulesFromStore(ctx context.Context, store storage.Store, txn storage.Transaction, name string) (map[string][]byte, error) + func RegisterSigner(id string, s Signer) error + func RegisterVerifier(id string, v Verifier) error + func RootPathsContain(roots []string, path string) bool + func RootPathsOverlap(pathA string, pathB string) bool + func VerifyBundleSignature(sc SignaturesConfig, bvc *VerificationConfig) (map[string]FileInfo, error) + func Write(w io.Writer, bundle Bundle) error + func WriteEtagToStore(ctx context.Context, store storage.Store, txn storage.Transaction, ...) error + func WriteManifestToStore(ctx context.Context, store storage.Store, txn storage.Transaction, name string, ...) error + type ActivateOpts = v1.ActivateOpts + type Bundle = v1.Bundle + func Merge(bundles []*Bundle) (*Bundle, error) + func MergeWithRegoVersion(bundles []*Bundle, regoVersion ast.RegoVersion, usePath bool) (*Bundle, error) + type DeactivateOpts = v1.DeactivateOpts + type DecodedSignature = v1.DecodedSignature + type DefaultSigner v1.DefaultSigner + type DefaultVerifier = v1.DefaultVerifier + type Descriptor = v1.Descriptor + func NewDescriptor(url, path string, reader io.Reader) *Descriptor + type DirectoryLoader = v1.DirectoryLoader + func NewDirectoryLoader(root string) DirectoryLoader + func NewFSLoader(filesystem fs.FS) (DirectoryLoader, error) + func NewFSLoaderWithRoot(filesystem fs.FS, root string) DirectoryLoader + func NewTarballLoader(r io.Reader) DirectoryLoader + func NewTarballLoaderWithBaseURL(r io.Reader, baseURL string) DirectoryLoader + type FileInfo = v1.FileInfo + func NewFile(name, hash, alg string) FileInfo + type HashingAlgorithm = v1.HashingAlgorithm + type KeyConfig = v1.KeyConfig + type Manifest = v1.Manifest + type ModuleFile = v1.ModuleFile + type Patch = v1.Patch + type PatchOperation = v1.PatchOperation + type PathFormat = v1.PathFormat + type PlanModuleFile = v1.PlanModuleFile + type Raw = v1.Raw + type Reader = v1.Reader + func NewCustomReader(loader DirectoryLoader) *Reader + func NewReader(r io.Reader) *Reader + type SignatureHasher = v1.SignatureHasher + func NewSignatureHasher(alg HashingAlgorithm) (SignatureHasher, error) + type SignaturesConfig = v1.SignaturesConfig + type Signer v1.Signer + func GetSigner(id string) (Signer, error) + type SigningConfig = v1.SigningConfig + func NewSigningConfig(key, alg, claimsPath string) *SigningConfig + type VerificationConfig = v1.VerificationConfig + func NewVerificationConfig(keys map[string]*KeyConfig, id, scope string, exclude []string) *VerificationConfig + type Verifier v1.Verifier + func GetVerifier(id string) (Verifier, error) + type WasmModuleFile = v1.WasmModuleFile + type WasmResolver = v1.WasmResolver + type Writer = v1.Writer + func NewWriter(w io.Writer) *Writer