Documentation ¶
Index ¶
- func AtomicallyWriteFile(filename string, data []byte, perm os.FileMode) error
- func BytesMatchLenAndHashes(fetched []byte, length int64, hashes data.Hashes) error
- func FileMetaEqual(actual data.FileMeta, expected data.FileMeta) error
- func GenerateFileMeta(r io.Reader, hashAlgorithms ...string) (data.FileMeta, error)
- func GenerateSnapshotFileMeta(r io.Reader, hashAlgorithms ...string) (data.SnapshotFileMeta, error)
- func GenerateTargetFileMeta(r io.Reader, hashAlgorithms ...string) (data.TargetFileMeta, error)
- func GenerateTimestampFileMeta(r io.Reader, hashAlgorithms ...string) (data.TimestampFileMeta, error)
- func HashedPaths(p string, hashes data.Hashes) []string
- func NormalizeTarget(p string) string
- func SnapshotFileMetaEqual(actual data.SnapshotFileMeta, expected data.SnapshotFileMeta) error
- func TargetFileMetaEqual(actual data.TargetFileMeta, expected data.TargetFileMeta) error
- func TimestampFileMetaEqual(actual data.TimestampFileMeta, expected data.TimestampFileMeta) error
- func VersionEqual(actual int64, expected int64) error
- func VersionedPath(p string, version int64) string
- type ErrNoCommonHash
- type ErrUnknownHashAlgorithm
- type ErrWrongHash
- type ErrWrongLength
- type ErrWrongVersion
- type PassphraseFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtomicallyWriteFile ¶
func BytesMatchLenAndHashes ¶ added in v0.3.1
func GenerateFileMeta ¶
func GenerateTargetFileMeta ¶
func NormalizeTarget ¶
func SnapshotFileMetaEqual ¶
func SnapshotFileMetaEqual(actual data.SnapshotFileMeta, expected data.SnapshotFileMeta) error
func TargetFileMetaEqual ¶
func TargetFileMetaEqual(actual data.TargetFileMeta, expected data.TargetFileMeta) error
func TimestampFileMetaEqual ¶
func TimestampFileMetaEqual(actual data.TimestampFileMeta, expected data.TimestampFileMeta) error
func VersionEqual ¶ added in v0.3.1
func VersionedPath ¶
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
type ErrWrongLength ¶
func (ErrWrongLength) Error ¶
func (e ErrWrongLength) Error() string
type ErrWrongVersion ¶
func (ErrWrongVersion) Error ¶
func (e ErrWrongVersion) Error() string
Click to show internal directories.
Click to hide internal directories.