class
Bakelite::Core::ArchiveManifest
- Bakelite::Core::ArchiveManifest
- Reference
- Object
Overview
Deterministic, serializable SHA-256 content-addressed manifest of an archive or volume.
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
bakelite/core/integrity_verifier.crConstructors
- .new(manifest_sha256 : String, total_files : Int32, total_bytes : Int64, files : Hash(String, String), entries : Array(FileVerificationEntry) = [] of FileVerificationEntry, version : Int32 = 1, algorithm : String = "sha256")
- .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
- #[](path : String) : String
- #[]?(path : String) : String | Nil
- #algorithm : String
- #content_address : String
- #entries : Array(FileVerificationEntry)
- #files : Hash(String, String)
- #manifest_sha256 : String
- #total_bytes : Int64
- #total_files : Int32
- #version : Int32
Constructor Detail
def self.new(manifest_sha256 : String, total_files : Int32, total_bytes : Int64, files : Hash(String, String), entries : Array(FileVerificationEntry) = [] of FileVerificationEntry, version : Int32 = 1, algorithm : String = "sha256")
#
def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
#