Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileSha1Sum ¶
FileSha1Sum returns the SHA1 checksum for the supplied file path
Types ¶
type NoopHashWriter ¶
type NoopHashWriter struct {
// contains filtered or unexported fields
}
NoopHashWriter implements Writer but doesn't actually calculate a checksum
type Sha1HashWriter ¶
type Sha1HashWriter struct {
// contains filtered or unexported fields
}
Sha1HashWriter implements Writer and uses the SHA1 algorithm to calculate the file checksum
type Writer ¶
Writer wraps an io.WriterAt and updates the checksum with every write.
func NewNoopHashWriter ¶
NewNoopHashWriter returns a new NoopHashWriter
func NewSha1HashWriter ¶
NewSha1HashWriter returns a new Sha1HashWriter
Click to show internal directories.
Click to hide internal directories.