cache: implement fs.ObjectUnWrapper
This commit is contained in:
parent
7f3d5c31d9
commit
eb6aafbd14
1 changed files with 8 additions and 1 deletions
9
backend/cache/object.go
vendored
9
backend/cache/object.go
vendored
|
@ -353,6 +353,13 @@ func (o *Object) tempFileStartedUpload() bool {
|
||||||
return started
|
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 (
|
var (
|
||||||
_ fs.Object = (*Object)(nil)
|
_ fs.Object = (*Object)(nil)
|
||||||
|
_ fs.ObjectUnWrapper = (*Object)(nil)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue