implemented os file interface acstraction

This commit is contained in:
ston1th 2022-04-02 14:08:59 +02:00
commit ad41ddbe54
11 changed files with 223 additions and 92 deletions

View file

@ -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