mirror of
https://github.com/octoleo/restic.git
synced 2024-12-23 03:18:55 +00:00
Add possibility to set snapshot ID (used in test)
This commit is contained in:
parent
04a8ee80fb
commit
696c18e031
@ -146,6 +146,11 @@ func (sn Snapshot) ID() *ID {
|
||||
return sn.id
|
||||
}
|
||||
|
||||
// SetID sets the snapshot's ID.
|
||||
func (sn *Snapshot) SetID(id ID) {
|
||||
sn.id = &id
|
||||
}
|
||||
|
||||
func (sn *Snapshot) fillUserInfo() error {
|
||||
usr, err := user.Current()
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user