Documentation ¶
Index ¶
- func NewLoopbackFSComponent() internal.Component
- type LoopbackFS
- func (lfs *LoopbackFS) Chmod(options internal.ChmodOptions) error
- func (lfs *LoopbackFS) Chown(options internal.ChownOptions) error
- func (lfs *LoopbackFS) CloseFile(options internal.CloseFileOptions) error
- func (lfs *LoopbackFS) CommitData(options internal.CommitDataOptions) error
- func (lfs *LoopbackFS) Configure(_ bool) error
- func (lfs *LoopbackFS) CopyFromFile(options internal.CopyFromFileOptions) error
- func (lfs *LoopbackFS) CopyToFile(options internal.CopyToFileOptions) error
- func (lfs *LoopbackFS) CreateDir(options internal.CreateDirOptions) error
- func (lfs *LoopbackFS) CreateFile(options internal.CreateFileOptions) (*handlemap.Handle, error)
- func (lfs *LoopbackFS) CreateLink(options internal.CreateLinkOptions) error
- func (lfs *LoopbackFS) DeleteDir(options internal.DeleteDirOptions) error
- func (lfs *LoopbackFS) DeleteFile(options internal.DeleteFileOptions) error
- func (lfs *LoopbackFS) FlushFile(options internal.FlushFileOptions) error
- func (lfs *LoopbackFS) GetAttr(options internal.GetAttrOptions) (*internal.ObjAttr, error)
- func (lfs *LoopbackFS) GetCommittedBlockList(name string) (*internal.CommittedBlockList, error)
- func (lfs *LoopbackFS) IsDirEmpty(options internal.IsDirEmptyOptions) bool
- func (lfs *LoopbackFS) Name() string
- func (lfs *LoopbackFS) OpenFile(options internal.OpenFileOptions) (*handlemap.Handle, error)
- func (lfs *LoopbackFS) Priority() internal.ComponentPriority
- func (lfs *LoopbackFS) ReadDir(options internal.ReadDirOptions) ([]*internal.ObjAttr, error)
- func (lfs *LoopbackFS) ReadFile(options internal.ReadFileOptions) ([]byte, error)
- func (lfs *LoopbackFS) ReadInBuffer(options internal.ReadInBufferOptions) (int, error)
- func (lfs *LoopbackFS) ReadLink(options internal.ReadLinkOptions) (string, error)
- func (lfs *LoopbackFS) ReleaseFile(options internal.ReleaseFileOptions) error
- func (lfs *LoopbackFS) RenameDir(options internal.RenameDirOptions) error
- func (lfs *LoopbackFS) RenameFile(options internal.RenameFileOptions) error
- func (lfs *LoopbackFS) StageData(options internal.StageDataOptions) error
- func (lfs *LoopbackFS) Start(ctx context.Context) error
- func (lfs *LoopbackFS) StreamDir(options internal.StreamDirOptions) ([]*internal.ObjAttr, string, error)
- func (lfs *LoopbackFS) TruncateFile(options internal.TruncateFileOptions) error
- func (lfs *LoopbackFS) UnlinkFile(options internal.UnlinkFileOptions) error
- func (lfs *LoopbackFS) WriteFile(options internal.WriteFileOptions) (int, error)
- type LoopbackFSOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLoopbackFSComponent ¶
Types ¶
type LoopbackFS ¶
type LoopbackFS struct { internal.BaseComponent // contains filtered or unexported fields }
func (*LoopbackFS) Chmod ¶
func (lfs *LoopbackFS) Chmod(options internal.ChmodOptions) error
func (*LoopbackFS) Chown ¶
func (lfs *LoopbackFS) Chown(options internal.ChownOptions) error
func (*LoopbackFS) CloseFile ¶
func (lfs *LoopbackFS) CloseFile(options internal.CloseFileOptions) error
func (*LoopbackFS) CommitData ¶
func (lfs *LoopbackFS) CommitData(options internal.CommitDataOptions) error
func (*LoopbackFS) Configure ¶
func (lfs *LoopbackFS) Configure(_ bool) error
func (*LoopbackFS) CopyFromFile ¶
func (lfs *LoopbackFS) CopyFromFile(options internal.CopyFromFileOptions) error
func (*LoopbackFS) CopyToFile ¶
func (lfs *LoopbackFS) CopyToFile(options internal.CopyToFileOptions) error
func (*LoopbackFS) CreateDir ¶
func (lfs *LoopbackFS) CreateDir(options internal.CreateDirOptions) error
func (*LoopbackFS) CreateFile ¶
func (lfs *LoopbackFS) CreateFile(options internal.CreateFileOptions) (*handlemap.Handle, error)
func (*LoopbackFS) CreateLink ¶
func (lfs *LoopbackFS) CreateLink(options internal.CreateLinkOptions) error
func (*LoopbackFS) DeleteDir ¶
func (lfs *LoopbackFS) DeleteDir(options internal.DeleteDirOptions) error
func (*LoopbackFS) DeleteFile ¶
func (lfs *LoopbackFS) DeleteFile(options internal.DeleteFileOptions) error
func (*LoopbackFS) FlushFile ¶
func (lfs *LoopbackFS) FlushFile(options internal.FlushFileOptions) error
func (*LoopbackFS) GetAttr ¶
func (lfs *LoopbackFS) GetAttr(options internal.GetAttrOptions) (*internal.ObjAttr, error)
func (*LoopbackFS) GetCommittedBlockList ¶
func (lfs *LoopbackFS) GetCommittedBlockList(name string) (*internal.CommittedBlockList, error)
func (*LoopbackFS) IsDirEmpty ¶
func (lfs *LoopbackFS) IsDirEmpty(options internal.IsDirEmptyOptions) bool
func (*LoopbackFS) Name ¶
func (lfs *LoopbackFS) Name() string
func (*LoopbackFS) OpenFile ¶
func (lfs *LoopbackFS) OpenFile(options internal.OpenFileOptions) (*handlemap.Handle, error)
func (*LoopbackFS) Priority ¶
func (lfs *LoopbackFS) Priority() internal.ComponentPriority
func (*LoopbackFS) ReadDir ¶
func (lfs *LoopbackFS) ReadDir(options internal.ReadDirOptions) ([]*internal.ObjAttr, error)
func (*LoopbackFS) ReadFile ¶
func (lfs *LoopbackFS) ReadFile(options internal.ReadFileOptions) ([]byte, error)
func (*LoopbackFS) ReadInBuffer ¶
func (lfs *LoopbackFS) ReadInBuffer(options internal.ReadInBufferOptions) (int, error)
func (*LoopbackFS) ReadLink ¶
func (lfs *LoopbackFS) ReadLink(options internal.ReadLinkOptions) (string, error)
func (*LoopbackFS) ReleaseFile ¶
func (lfs *LoopbackFS) ReleaseFile(options internal.ReleaseFileOptions) error
func (*LoopbackFS) RenameDir ¶
func (lfs *LoopbackFS) RenameDir(options internal.RenameDirOptions) error
func (*LoopbackFS) RenameFile ¶
func (lfs *LoopbackFS) RenameFile(options internal.RenameFileOptions) error
func (*LoopbackFS) StageData ¶
func (lfs *LoopbackFS) StageData(options internal.StageDataOptions) error
func (*LoopbackFS) StreamDir ¶
func (lfs *LoopbackFS) StreamDir(options internal.StreamDirOptions) ([]*internal.ObjAttr, string, error)
TODO: we can make it more intricate by generating a token and splitting streamed dir mimicking storage
func (*LoopbackFS) TruncateFile ¶
func (lfs *LoopbackFS) TruncateFile(options internal.TruncateFileOptions) error
func (*LoopbackFS) UnlinkFile ¶
func (lfs *LoopbackFS) UnlinkFile(options internal.UnlinkFileOptions) error
func (*LoopbackFS) WriteFile ¶
func (lfs *LoopbackFS) WriteFile(options internal.WriteFileOptions) (int, error)
type LoopbackFSOptions ¶
type LoopbackFSOptions struct {
Path string `config:"path"`
}
Click to show internal directories.
Click to hide internal directories.