Documentation
¶
Index ¶
- Variables
- func Download(url url.URL) (*http.Response, error)
- func FileExists(path string) bool
- func FileMetaEqual(actual data.FileMeta, expected data.FileMeta) error
- func HashedPaths(path string, hashes data.Hashes) []string
- func NormalizeTarget(path string) string
- func StrSliceContains(ss []string, s string) bool
- func StrSliceContainsI(ss []string, s string) bool
- func Upload(url string, body io.Reader) (*http.Response, error)
- func ValidateTarget(r io.Reader, m *data.FileMeta) error
- type ErrNoCommonHash
- type ErrUnknownHashAlgorithm
- type ErrWrongHash
- type PassphraseFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWrongLength = errors.New("wrong length")
Functions ¶
func FileExists ¶
func NormalizeTarget ¶
func StrSliceContains ¶
func StrSliceContainsI ¶
Types ¶
type ErrNoCommonHash ¶
func (ErrNoCommonHash) Error ¶
func (e ErrNoCommonHash) Error() string
type ErrUnknownHashAlgorithm ¶
type ErrUnknownHashAlgorithm struct {
Name string
}
func (ErrUnknownHashAlgorithm) Error ¶
func (e ErrUnknownHashAlgorithm) Error() string
type ErrWrongHash ¶
func (ErrWrongHash) Error ¶
func (e ErrWrongHash) Error() string
Click to show internal directories.
Click to hide internal directories.