1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2025-06-30 21:28:28 +00:00

*: add an update/restore functionality

This allows for restoring some attributes of files from the state in an
mtree Manifest

Reported-by: Matthew Garrett <Matthewgarrett@google.com>
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2016-08-02 15:57:51 -04:00
parent e359fa7d2d
commit fc5450ed71
Signed by: vbatts
GPG key ID: 10937E57733F1362
10 changed files with 351 additions and 11 deletions

View file

@ -29,6 +29,10 @@ const (
// have different values (or have not been set in one of the
// manifests).
Modified DifferenceType = "modified"
// ErrorDifference represents an attempted update to the values of
// a keyword that failed
ErrorDifference DifferenceType = "errored"
)
// These functions return *type from the parameter. It's just shorthand, to
@ -126,6 +130,7 @@ type KeyDelta struct {
name Keyword
old string
new string
err error // used for update delta results
}
// Type returns the type of discrepancy encountered when comparing this key