Versions in this module Expand all Collapse all v1 v1.13.1 Feb 8, 2017 Changes in this version + var DefaultTHash = NewTHash("sha256", sha256.New) + var ErrNotVersion = errors.New("string does not include a TarSum Version") + var ErrVersionNotImplemented = errors.New("TarSum Version is not yet implemented") + func VersionLabelForChecksum(checksum string) string + type BuilderContext interface + Remove func(string) + type FileInfoSumInterface interface + Name func() string + Pos func() int64 + Sum func() string + type FileInfoSums []FileInfoSumInterface + func (fis FileInfoSums) GetAllFile(name string) FileInfoSums + func (fis FileInfoSums) GetDuplicatePaths() (dups FileInfoSums) + func (fis FileInfoSums) GetFile(name string) FileInfoSumInterface + func (fis FileInfoSums) Len() int + func (fis FileInfoSums) SortByNames() + func (fis FileInfoSums) SortByPos() + func (fis FileInfoSums) SortBySums() + func (fis FileInfoSums) Swap(i, j int) + type THash interface + Hash func() hash.Hash + Name func() string + func NewTHash(name string, h func() hash.Hash) THash + type TarSum interface + GetSums func() FileInfoSums + Hash func() THash + Sum func([]byte) string + Version func() Version + func NewTarSum(r io.Reader, dc bool, v Version) (TarSum, error) + func NewTarSumForLabel(r io.Reader, disableCompression bool, label string) (TarSum, error) + func NewTarSumHash(r io.Reader, dc bool, v Version, tHash THash) (TarSum, error) + type Version int + const Version0 + const Version1 + const VersionDev + func GetVersionFromTarsum(tarsum string) (Version, error) + func GetVersions() []Version + func (tsv Version) String() string