Documentation
¶
Index ¶
- type MD5Sum
- func (m *MD5Sum) Add(name string, src io.Reader) error
- func (m *MD5Sum) Check(name string, src io.Reader) (bool, error)
- func (m *MD5Sum) Entries() map[string]string
- func (m *MD5Sum) Read(p []byte) (n int, err error)
- func (m *MD5Sum) ReadFrom(src io.Reader) (n int64, err error)
- func (m *MD5Sum) Write(p []byte) (n int, err error)
- func (m *MD5Sum) WriteTo(w io.Writer) (n int64, err error)
- type SumFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SumFile ¶
type SumFile interface { // Returns a map of the entries Entries() map[string]string // Add the digest of src file as a new entry in the sum file Add(name string, src io.Reader) error // Checks if the file specified by name has the correct // sum against the sum computed from the Reader Check(name string, src io.Reader) (bool, error) // Writes a new entry from rfc 1321 formatted input Write(p []byte) (n int, err error) // Writes the file digests in the rfc 1321 format to the target writer WriteTo(w io.Writer) (n int64, err error) // Read entries in the rfc 1321 format Read(p []byte) (n int, err error) // Read the entries from a src reader ReadFrom(src io.Reader) (n int64, err error) }
Click to show internal directories.
Click to hide internal directories.