Documentation
¶
Index ¶
- Constants
- type File
- func (f *File) Close() error
- func (f *File) Name() string
- func (f *File) Read(p []byte) (n int, err error)
- func (f *File) ReadAt(p []byte, off int64) (n int, err error)
- func (f *File) Readdir(count int) ([]os.FileInfo, error)
- func (f *File) Readdirnames(n int) ([]string, error)
- func (f *File) Seek(offset int64, whence int) (int64, error)
- func (f *File) Stat() (os.FileInfo, error)
- func (f *File) Sync() error
- func (f *File) Truncate(size int64) error
- func (f *File) Write(p []byte) (n int, err error)
- func (f *File) WriteAt(p []byte, off int64) (n int, err error)
- func (f *File) WriteString(s string) (ret int, err error)
- type FileFlags
- type FileInfo
- type STFS
- func (f *STFS) Chmod(name string, mode os.FileMode) error
- func (f *STFS) Chown(name string, uid, gid int) error
- func (f *STFS) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (f *STFS) Create(name string) (afero.File, error)
- func (f *STFS) Initialize(rootProposal string, rootPerm os.FileMode) (root string, err error)
- func (f *STFS) LstatIfPossible(name string) (os.FileInfo, bool, error)
- func (f *STFS) Mkdir(name string, perm os.FileMode) error
- func (f *STFS) MkdirAll(path string, perm os.FileMode) error
- func (f *STFS) Name() string
- func (f *STFS) Open(name string) (afero.File, error)
- func (f *STFS) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (f *STFS) ReadlinkIfPossible(name string) (string, error)
- func (f *STFS) Remove(name string) error
- func (f *STFS) RemoveAll(path string) error
- func (f *STFS) Rename(oldname, newname string) error
- func (f *STFS) Stat(name string) (os.FileInfo, error)
- func (f *STFS) SymlinkIfPossible(oldname, newname string) error
- type Stat
Constants ¶
View Source
const (
O_ACCMODE = syscall.O_ACCMODE
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
func NewFile ¶
func NewFile( readOps *operations.Operations, writeOps *operations.Operations, metadata config.MetadataConfig, path string, link string, flags *FileFlags, compressionLevel string, getFileBuffer func() (cache.WriteCache, func() error, error), ioLock *sync.Mutex, name string, info *FileInfo, onHeader func(hdr *config.Header), log logging.StructuredLogger, ) *File
type FileInfo ¶
func NewFileInfo ¶
func NewFileInfoFromTarHeader ¶
func NewFileInfoFromTarHeader( hdr *tar.Header, log logging.StructuredLogger, ) *FileInfo
type STFS ¶
type STFS struct {
// contains filtered or unexported fields
}
func NewSTFS ¶
func NewSTFS( readOps *operations.Operations, writeOps *operations.Operations, metadata config.MetadataConfig, compressionLevel string, getFileBuffer func() (cache.WriteCache, func() error, error), readOnly bool, writePermImpliesReadPerm bool, onHeader func(hdr *config.Header), log logging.StructuredLogger, ) *STFS
func (*STFS) Initialize ¶
func (*STFS) LstatIfPossible ¶
func (*STFS) SymlinkIfPossible ¶
Click to show internal directories.
Click to hide internal directories.