class
Bakelite::Core::VerificationReport
- Bakelite::Core::VerificationReport
- Reference
- Object
Overview
Comprehensive verification report returned by Bakelite::Core::IntegrityVerifier and Bakelite.verify_archive.
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
bakelite/core/integrity_verifier.crConstructors
- .new(target_name : String, valid : Bool, total_volumes : Int32, total_files : Int32, verified_files : Int32, total_chunks : Int32, verified_chunks : Int32, total_bytes : Int64, manifest_sha256 : String, duration_seconds : Float64, entries : Array(FileVerificationEntry) = [] of FileVerificationEntry, violations : Array(IntegrityViolation) = [] of IntegrityViolation, content_manifest : Hash(String, String) = {} of String => String, container_sha256 : String | Nil = nil, root_exception : Exception | Nil = nil)
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Instance Method Summary
- #assert_clean! : self
-
#assert_valid! : self
Raises IntegrityError (or the underlying container error) if verification failed.
- #clean? : Bool
- #container_sha256 : String | Nil
- #content_address : String
- #content_manifest : Hash(String, String)
- #duration_seconds : Float64
- #entries : Array(FileVerificationEntry)
-
#entry_for(path : String) : FileVerificationEntry | Nil
Looks up the FileVerificationEntry for a virtual file path.
- #errors_count : Int32
- #failed? : Bool
- #manifest_sha256 : String
- #passed? : Bool
- #root_exception : Exception | Nil
- #root_exception=(root_exception : Exception | Nil)
-
#sha256_for(path : String) : String | Nil
Looks up the computed SHA-256 hex digest for a virtual file path.
- #target_name : String
-
#to_manifest : ArchiveManifest
Exports the verified entries as a deterministic ArchiveManifest.
-
#to_markdown : String
Renders a Markdown summary report of the integrity verification run.
- #total_bytes : Int64
- #total_chunks : Int32
- #total_files : Int32
- #total_volumes : Int32
- #valid : Bool
- #valid? : Bool
- #verified_chunks : Int32
- #verified_files : Int32
- #verify! : self
- #violations : Array(IntegrityViolation)
Constructor Detail
def self.new(target_name : String, valid : Bool, total_volumes : Int32, total_files : Int32, verified_files : Int32, total_chunks : Int32, verified_chunks : Int32, total_bytes : Int64, manifest_sha256 : String, duration_seconds : Float64, entries : Array(FileVerificationEntry) = [] of FileVerificationEntry, violations : Array(IntegrityViolation) = [] of IntegrityViolation, content_manifest : Hash(String, String) = {} of String => String, container_sha256 : String | Nil = nil, root_exception : Exception | Nil = nil)
#
def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
#
Instance Method Detail
def assert_valid! : self
#
Raises IntegrityError (or the underlying container error) if verification failed.
def entry_for(path : String) : FileVerificationEntry | Nil
#
Looks up the FileVerificationEntry for a virtual file path.
def sha256_for(path : String) : String | Nil
#
Looks up the computed SHA-256 hex digest for a virtual file path.
def to_manifest : ArchiveManifest
#
Exports the verified entries as a deterministic ArchiveManifest.