Documentation ¶
Index ¶
- Variables
- type Digest
- func (tsd *Digest) BlockSize() int
- func (tsd *Digest) Finished() bool
- func (tsd *Digest) Label() string
- func (tsd *Digest) Len() int64
- func (tsd *Digest) Reset()
- func (tsd *Digest) Restore(state []byte) error
- func (tsd *Digest) Size() int
- func (tsd *Digest) State() ([]byte, error)
- func (tsd *Digest) Sum(extra []byte) []byte
- func (tsd *Digest) SumString(extra []byte) string
- func (tsd *Digest) Write(p []byte) (n int, err error)
- type Version
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotVersion = errors.New("string does not include a TarSum Version") ErrVersionNotImplemented = errors.New("TarSum Version is not yet implemented") )
Errors that may be returned by functions in this package
Functions ¶
This section is empty.
Types ¶
type Digest ¶
type Digest struct {
// contains filtered or unexported fields
}
Digest implements a write-driven interface for calculating TarSums
type Version ¶
type Version int
versioning of the TarSum algorithm based on the prefix of the hash used i.e. "tarsum+sha256:e58fcf7418d4390dec8e8fb69d88c06ec07039d651fedd3aa72af9972e7d046b"
const ( Version0 Version = iota Version1 // NOTE: this variable will be either the latest or an unsettled next-version of the TarSum calculation VersionDev )
Prefix of "tarsum"
func GetVersionFromTarsum ¶
GetVersionFromTarsum returns the Version from the provided string
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
archive
|
|
tar
Package tar implements access to tar archives.
|
Package tar implements access to tar archives. |
Package sha256 implements the SHA224 and SHA256 hash algorithms as defined in FIPS 180-4.
|
Package sha256 implements the SHA224 and SHA256 hash algorithms as defined in FIPS 180-4. |
Click to show internal directories.
Click to hide internal directories.