cache: implement fs.ObjectUnWrapper

This commit is contained in:
Fabian Möller
2018-08-07 09:28:55 +01:00
committed by Nick Craig-Wood
parent 7f3d5c31d9
commit eb6aafbd14
+8 -1
View File
@@ -353,6 +353,13 @@ func (o *Object) tempFileStartedUpload() bool {
return started
}
// UnWrap returns the Object that this Object is wrapping or
// nil if it isn't wrapping anything
func (o *Object) UnWrap() fs.Object {
return o.Object
}
var (
_ fs.Object = (*Object)(nil)
_ fs.Object = (*Object)(nil)
_ fs.ObjectUnWrapper = (*Object)(nil)
)