Documentation ¶
Index ¶
- Constants
- type FS
- func (g *FS) Capabilities() billy.Capability
- func (g *FS) Close() error
- func (g *FS) Create(filename string) (billy.File, error)
- func (g *FS) Join(elem ...string) string
- func (g *FS) MkdirAll(filename string, perm os.FileMode) error
- func (g *FS) Open(filename string) (billy.File, error)
- func (g *FS) OpenFile(filename string, flag int, perm os.FileMode) (billy.File, error)
- func (g *FS) ReadDir(path string) ([]os.FileInfo, error)
- func (g *FS) Remove(filename string) error
- func (g *FS) Rename(oldpath string, newpath string) error
- func (g *FS) Stat(filename string) (os.FileInfo, error)
- type File
- func (f *File) Close() error
- func (f *File) Lock() error
- func (f *File) Name() string
- func (f *File) Read(p []byte) (int, error)
- func (f *File) ReadAt(p []byte, off int64) (int, error)
- func (f *File) Seek(offset int64, whence int) (int64, error)
- func (f *File) Truncate(size int64) error
- func (f *File) Unlock() error
- func (f *File) Write(p []byte) (int, error)
Constants ¶
View Source
const ( // ErrReadOnly returned when file is read only. ErrReadOnly = "cannot write in %s, the file is read only" // ErrWriteOnly returned when file is write only. ErrWriteOnly = "cannot read from %s, the file is write only" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS manages the filesystem of a gluster volume. It implements billy.Basic.
func (*FS) Capabilities ¶
func (g *FS) Capabilities() billy.Capability
Capabilities implements billy.Capable interface.
type File ¶
type File struct {
// contains filtered or unexported fields
}
File holds a gluster file descriptor.
func (*File) Lock ¶
Lock implements billy.File interface. It is a no-op as it is not supported by gluster library.
Click to show internal directories.
Click to hide internal directories.