implemented os file interface acstraction
This commit is contained in:
parent
23528fe28e
commit
ad41ddbe54
11 changed files with 223 additions and 92 deletions
|
|
@ -3,6 +3,7 @@
|
|||
package fs
|
||||
|
||||
import (
|
||||
"cachefs/pkg/provider"
|
||||
"context"
|
||||
"errors"
|
||||
"io"
|
||||
|
|
@ -13,7 +14,7 @@ import (
|
|||
|
||||
type File struct {
|
||||
log logr.Logger
|
||||
f *os.File
|
||||
f provider.File
|
||||
md *Metadata
|
||||
offset int64
|
||||
offline bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue