loopback

package
v2.0.0-...-82e32b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoopbackFSComponent

func NewLoopbackFSComponent() internal.Component

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 (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 (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) Start

func (lfs *LoopbackFS) Start(ctx context.Context) 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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL