struct V1::Hash
- V1::Hash
- Struct
- Value
- Object
Overview
Hash is an unqualified digest of some content, e.g. sha256:deadbeef
Defined in:
v1/hash.crConstructors
Class Method Summary
- .empty
- .from_json(pull : JSON::PullParser)
- .hasher(name : String)
- .sha256(r : IO)
- .to_json(h : Hash, json : JSON::Builder)
- .to_json(json : JSON::Builder)
Instance Method Summary
-
#algorithm : String
Algorithm holds the algorithm used to compute the hash.
-
#hex : String
Hex holds the hex portion of the content hash.
- #to_s