class
Bakelite::DSL::VerifyArchiveBuilder
- Bakelite::DSL::VerifyArchiveBuilder
- Reference
- Object
Overview
Tier 2 Declarative Builder for configuring and running Bakelite.verify_archive. Wraps Bakelite::Core::IntegrityVerifier in a fluent block receiver DSL.
Defined in:
bakelite/dsl/verify_archive_builder.crConstructors
Instance Method Summary
-
#archive(source : VerificationTarget) : self
Sets the target archive, byte slice, stream, volume, or registry to verify.
- #assert_clean(val : Bool = true) : self
- #assert_invariant(name : String = "invariant_#{@verifier.invariants.size + 1}", &block : Core::VerificationReport -> Bool) : self
- #assert_valid(val : Bool = true) : self
- #build : Core::IntegrityVerifier
- #bytes(slice : Bytes) : self
- #digest(path : String, sha256 : String) : self
-
#expect_crc32(path : String, crc32 : UInt32) : self
Declares an expected CRC32 checksum for a specific virtual file path.
- #expect_digest(path : String, sha256 : String) : self
-
#expect_manifest(digests : Hash(String, String), strict : Bool = false) : self
Declares a map of expected virtual file paths to SHA-256 hex digests.
- #expect_manifest(manifest : Core::ArchiveManifest, strict : Bool = true) : self
-
#expect_manifest_sha256(digest : String) : self
Declares the expected deterministic SHA-256 manifest digest of the entire archive/volume.
-
#expect_sha256(path : String, sha256 : String) : self
Declares an expected SHA-256 hex digest for a specific virtual file path.
- #fail_fast(val : Bool = true) : self
-
#invariant(name : String = "invariant_#{@verifier.invariants.size + 1}", &block : Core::VerificationReport -> Bool) : self
Registers a custom verification invariant predicate.
- #manifest(digests : Hash(String, String), strict : Bool = false) : self
- #manifest(manifest : Core::ArchiveManifest, strict : Bool = true) : self
- #manifest_sha256(digest : String) : self
- #max_decompressed_bytes(bytes : Int64 | Int32) : self
- #raise_on_error(val : Bool = true) : self
- #raise_on_error=(raise_on_error : Bool)
- #registry(reg : FS::Registry) : self
-
#require_file(path : String) : self
Declares one or more required virtual file paths that must exist in the archive.
- #require_files(paths : Enumerable(String)) : self
- #require_files(*paths : String) : self
- #run : Core::VerificationReport
- #signature(digest : String) : self
- #source(source : VerificationTarget) : self
- #strict(val : Bool = true) : self
- #strict_manifest(val : Bool = true) : self
- #target(source : VerificationTarget) : self
- #target_source : VerificationTarget | Nil
- #target_source=(target_source : VerificationTarget | Nil)
- #verifier : Core::IntegrityVerifier
- #verify_chunks(val : Bool = true) : self
- #verify_crc32(val : Bool = true) : self
- #verify_sha256(val : Bool = true) : self
-
#volume(vol : Volume) : self
Filters verification to a specific volume name, or sets a Volume instance as the target.
- #volume(name : Symbol | String) : self
Constructor Detail
Instance Method Detail
Sets the target archive, byte slice, stream, volume, or registry to verify.
Declares an expected CRC32 checksum for a specific virtual file path.
Declares a map of expected virtual file paths to SHA-256 hex digests.
Declares the expected deterministic SHA-256 manifest digest of the entire archive/volume.
Declares an expected SHA-256 hex digest for a specific virtual file path.
Registers a custom verification invariant predicate.
Declares one or more required virtual file paths that must exist in the archive.
Filters verification to a specific volume name, or sets a Volume instance as the target.