Versions in this module Expand all Collapse all v1 v1.0.2 Mar 17, 2021 Changes in this version + type BadDigest struct + CalculatedMD5 string + ExpectedMD5 string + func (e BadDigest) Error() string + type ErrSizeMismatch struct + Got int64 + Want int64 + func (e ErrSizeMismatch) Error() string + type Reader struct + func NewReader(src io.Reader, size int64, md5Hex, sha256Hex string, actualSize int64) (*Reader, error) + func (r *Reader) ActualSize() int64 + func (r *Reader) Close() error + func (r *Reader) ETag() etag.ETag + func (r *Reader) MD5() []byte + func (r *Reader) MD5Base64String() string + func (r *Reader) MD5Current() []byte + func (r *Reader) MD5HexString() string + func (r *Reader) Read(p []byte) (int, error) + func (r *Reader) SHA256() []byte + func (r *Reader) SHA256HexString() string + func (r *Reader) Size() int64 + type SHA256Mismatch struct + CalculatedSHA256 string + ExpectedSHA256 string + func (e SHA256Mismatch) Error() string