class Bakelite::Core::ArchiveManifest

Overview

Deterministic, serializable SHA-256 content-addressed manifest of an archive or volume.

Included Modules

Defined in:

bakelite/core/integrity_verifier.cr

Constructors

Instance Method Summary

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

[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 [](path : String) : String #

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

[View source]
def algorithm : String #

[View source]
def content_address : String #

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

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

[View source]
def manifest_sha256 : String #

[View source]
def total_bytes : Int64 #

[View source]
def total_files : Int32 #

[View source]
def version : Int32 #

[View source]