class Bakelite::Core::VerificationReport

Overview

Comprehensive verification report returned by Bakelite::Core::IntegrityVerifier and Bakelite.verify_archive.

Included Modules

Defined in:

bakelite/core/integrity_verifier.cr

Constructors

Instance Method Summary

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) #

[View source]
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]
def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

[View source]

Instance Method Detail

def assert_clean! : self #

[View source]
def assert_valid! : self #

Raises IntegrityError (or the underlying container error) if verification failed.


[View source]
def clean? : Bool #

[View source]
def container_sha256 : String | Nil #

[View source]
def content_address : String #

[View source]
def content_manifest : Hash(String, String) #

[View source]
def duration_seconds : Float64 #

[View source]
def entries : Array(FileVerificationEntry) #

[View source]
def entry_for(path : String) : FileVerificationEntry | Nil #

Looks up the FileVerificationEntry for a virtual file path.


[View source]
def errors_count : Int32 #

[View source]
def failed? : Bool #

[View source]
def manifest_sha256 : String #

[View source]
def passed? : Bool #

[View source]
def root_exception : Exception | Nil #

[View source]
def root_exception=(root_exception : Exception | Nil) #

[View source]
def sha256_for(path : String) : String | Nil #

Looks up the computed SHA-256 hex digest for a virtual file path.


[View source]
def target_name : String #

[View source]
def to_manifest : ArchiveManifest #

Exports the verified entries as a deterministic ArchiveManifest.


[View source]
def to_markdown : String #

Renders a Markdown summary report of the integrity verification run.


[View source]
def total_bytes : Int64 #

[View source]
def total_chunks : Int32 #

[View source]
def total_files : Int32 #

[View source]
def total_volumes : Int32 #

[View source]
def valid : Bool #

[View source]
def valid? : Bool #

[View source]
def verified_chunks : Int32 #

[View source]
def verified_files : Int32 #

[View source]
def verify! : self #

[View source]
def violations : Array(IntegrityViolation) #

[View source]