Documentation ¶
Index ¶
- type InMemoryFile
- func (f *InMemoryFile) Close() (err error)
- func (f *InMemoryFile) Info() *InMemoryFileInfo
- func (f *InMemoryFile) Name() string
- func (f *InMemoryFile) Open() error
- func (f *InMemoryFile) Read(b []byte) (n int, err error)
- func (f *InMemoryFile) ReadAt(b []byte, off int64) (n int, err error)
- func (f *InMemoryFile) Readdir(count int) (res []os.FileInfo, err error)
- func (f *InMemoryFile) Readdirnames(n int) (names []string, err error)
- func (f *InMemoryFile) Seek(offset int64, whence int) (int64, error)
- func (f *InMemoryFile) Stat() (os.FileInfo, error)
- func (f *InMemoryFile) Sync() error
- func (f *InMemoryFile) Truncate(size int64) error
- func (f *InMemoryFile) Write(b []byte) (n int, err error)
- func (f *InMemoryFile) WriteAt(b []byte, off int64) (n int, err error)
- func (f *InMemoryFile) WriteString(s string) (ret int, err error)
- type InMemoryFileInfo
- type MemDir
- type MemDirMap
- type MemS3Fs
- func (m *MemS3Fs) Chmod(name string, mode os.FileMode) error
- func (m *MemS3Fs) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (m *MemS3Fs) Create(name string) (afero.File, error)
- func (m *MemS3Fs) List()
- func (m *MemS3Fs) Mkdir(name string, perm os.FileMode) error
- func (m *MemS3Fs) MkdirAll(path string, perm os.FileMode) error
- func (MemS3Fs) Name() string
- func (m *MemS3Fs) Open(name string) (afero.File, error)
- func (m *MemS3Fs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (m *MemS3Fs) Remove(name string) error
- func (m *MemS3Fs) RemoveAll(path string) error
- func (m *MemS3Fs) Rename(oldname, newname string) error
- func (m *MemS3Fs) Stat(name string) (os.FileInfo, error)
- type Option
- type PermU
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryFile ¶
type InMemoryFile struct {
// contains filtered or unexported fields
}
func MemFileCreate ¶
func MemFileCreate(name string, bucket *s3.Bucket) *InMemoryFile
func (*InMemoryFile) Close ¶
func (f *InMemoryFile) Close() (err error)
func (*InMemoryFile) Info ¶
func (f *InMemoryFile) Info() *InMemoryFileInfo
func (*InMemoryFile) Name ¶
func (f *InMemoryFile) Name() string
func (*InMemoryFile) Open ¶
func (f *InMemoryFile) Open() error
func (*InMemoryFile) Readdir ¶
func (f *InMemoryFile) Readdir(count int) (res []os.FileInfo, err error)
func (*InMemoryFile) Readdirnames ¶
func (f *InMemoryFile) Readdirnames(n int) (names []string, err error)
func (*InMemoryFile) Sync ¶
func (f *InMemoryFile) Sync() error
func (*InMemoryFile) Truncate ¶
func (f *InMemoryFile) Truncate(size int64) error
func (*InMemoryFile) WriteAt ¶
func (f *InMemoryFile) WriteAt(b []byte, off int64) (n int, err error)
func (*InMemoryFile) WriteString ¶
func (f *InMemoryFile) WriteString(s string) (ret int, err error)
type InMemoryFileInfo ¶
type InMemoryFileInfo struct {
// contains filtered or unexported fields
}
func (*InMemoryFileInfo) IsDir ¶
func (s *InMemoryFileInfo) IsDir() bool
func (*InMemoryFileInfo) ModTime ¶
func (s *InMemoryFileInfo) ModTime() time.Time
func (*InMemoryFileInfo) Mode ¶
func (s *InMemoryFileInfo) Mode() os.FileMode
func (*InMemoryFileInfo) Size ¶
func (s *InMemoryFileInfo) Size() int64
func (*InMemoryFileInfo) Sys ¶
func (s *InMemoryFileInfo) Sys() interface{}
type MemS3Fs ¶
type MemS3Fs struct {
// contains filtered or unexported fields
}
func S3FsFromBucket ¶
func (*MemS3Fs) Mkdir ¶
Mkdir doesn't actually save anything to S3 unless they have contents. The cloud doesn't have directories.
func (*MemS3Fs) MkdirAll ¶
MkdirAll doesn't actually save anything to S3 unless they have contents. The cloud doesn't have directories.
Click to show internal directories.
Click to hide internal directories.