Versions in this module Expand all Collapse all v1 v1.3.0 Oct 15, 2014 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") + 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 + func NewTarSum(r io.Reader, dc bool, v Version) (TarSum, error) + func NewTarSumHash(r io.Reader, dc bool, v Version, tHash THash) (TarSum, error) + Hash func() THash + Version func() Version + type Version int + const Version0 + const VersionDev + func GetVersionFromTarsum(tarsum string) (Version, error) + func GetVersions() []Version + func (tsv Version) String() string v1.2.0 Aug 20, 2014 Changes in this version + type TarSum struct + DisableCompression bool + func (ts *TarSum) GetSums() map[string]string + func (ts *TarSum) Read(buf []byte) (int, error) + func (ts *TarSum) Sum(extra []byte) string