loopback

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 13 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 added in v1.1.0

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 added in v1.1.0

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) ReadInBuffer

func (lfs *LoopbackFS) ReadInBuffer(options internal.ReadInBufferOptions) (int, error)
func (lfs *LoopbackFS) ReadLink(options internal.ReadLinkOptions) (string, 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 added in v1.1.0

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