Documentation ¶
Overview ¶
blobs provides a thin layer around crypto/sha512, adding value semantics and origin data's size to hashes. blobs is intended for trusted environments as checksums or data pointers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type BLOB ¶
type BLOB struct {
// contains filtered or unexported fields
}
BLOB is an opaque data reference
func (BLOB) Path ¶
Path injectively returns a relative path where a BLOB's associated file may be stored on a filesystem. NOTE: Different to e.g. git, this path's base is the complete hash. This is done deliberately so that the BLOB's associated file fully represents the BLOB even if it is viewed without the context of a surrounding directory structure.
func (BLOB) Short ¶ added in v1.1.0
Short returns the first seven hexits of a BLOB's string representation, often enough to uniquely identify it. In scenarios with large amounts of data, uniqueness should be ascertained.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}