Documentation ¶
Index ¶
- Variables
- func CanAccess(list []string, destPath string) bool
- func DirCombination(keyPath string) []string
- func MostParentPath(s string) string
- func NewFileSystem(sess *S3Session) *pathfs.PathNodeFs
- func NextParentPath(s, prefix string) string
- type FileSystem
- func (f *FileSystem) Access(name string, mode uint32, _ *fuse.Context) (code fuse.Status)
- func (f *FileSystem) Create(name string, flags uint32, mode uint32, ctx *fuse.Context) (nodefs.File, fuse.Status)
- func (f *FileSystem) GetAttr(name string, ctx *fuse.Context) (*fuse.Attr, fuse.Status)
- func (f *FileSystem) Mkdir(name string, mode uint32, ctx *fuse.Context) fuse.Status
- func (f *FileSystem) Open(name string, flags uint32, ctx *fuse.Context) (nodefs.File, fuse.Status)
- func (f *FileSystem) OpenDir(name string, _ *fuse.Context) ([]fuse.DirEntry, fuse.Status)
- func (f *FileSystem) Rename(oldName string, newName string, _ *fuse.Context) fuse.Status
- func (f *FileSystem) Rmdir(name string, ctx *fuse.Context) (code fuse.Status)
- func (f *FileSystem) String() string
- func (f *FileSystem) Unlink(name string, _ *fuse.Context) (code fuse.Status)
- func (f *FileSystem) Utimens(name string, Atime *time.Time, Mtime *time.Time, ctx *fuse.Context) (code fuse.Status)
- type Move
- type Position
- type S3File
- func (f *S3File) Allocate(off uint64, size uint64, mode uint32) (code fuse.Status)
- func (f *S3File) Flush() fuse.Status
- func (f *S3File) Fsync(flags int) (code fuse.Status)
- func (f *S3File) Read(dest []byte, off int64) (fuse.ReadResult, fuse.Status)
- func (f *S3File) Release()
- func (f *S3File) String() string
- func (f *S3File) Truncate(size uint64) fuse.Status
- func (f *S3File) Utimens(atime *time.Time, mtime *time.Time) fuse.Status
- func (f *S3File) Write(data []byte, off int64) (written uint32, code fuse.Status)
- type S3Object
- type S3Session
- func (s *S3Session) CreateBucket(bucket string) error
- func (s *S3Session) Delete(bucket, key string) error
- func (s *S3Session) DeleteBucket(bucket string) error
- func (s *S3Session) Exists(bucket, key string) bool
- func (s *S3Session) ExistsBucket(bucket string) bool
- func (s *S3Session) Get(bucket, key string) ([]byte, error)
- func (s *S3Session) List(bucket, prefix string) ([]S3Object, error)
- func (s *S3Session) ListBuckets() ([]string, error)
- func (s *S3Session) Put(bucket, key string, r io.ReadSeeker) error
- func (s *S3Session) PutBytes(bucket, key string, b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var LocalStackEndpoint = "http://localhost:4566"
Functions ¶
func DirCombination ¶ added in v0.3.0
func MostParentPath ¶
func NewFileSystem ¶
func NewFileSystem(sess *S3Session) *pathfs.PathNodeFs
func NextParentPath ¶
Types ¶
type FileSystem ¶
type FileSystem struct { pathfs.FileSystem // contains filtered or unexported fields }
func (*FileSystem) String ¶
func (f *FileSystem) String() string
type Position ¶
type S3Session ¶
type S3Session struct {
// contains filtered or unexported fields
}
func NewS3Session ¶
func (*S3Session) CreateBucket ¶
func (*S3Session) DeleteBucket ¶ added in v0.3.0
func (*S3Session) ExistsBucket ¶
func (*S3Session) ListBuckets ¶
Click to show internal directories.
Click to hide internal directories.