atomicfilefuse

package
v0.0.0-...-ff95916 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Fields      map[string]interface{}
	SizeLimit   int64
	GetAttr     func(ctx context.Context, a *fuse.Attr) (bool, error)
	AtomicRead  func(ctx context.Context) ([]byte, string, bool, error)
	AtomicWrite func(ctx context.Context, data []byte, revision string) (string, error)
	// contains filtered or unexported fields
}

func (*File) Attr

func (f *File) Attr(ctx context.Context, a *fuse.Attr) error

func (*File) Fsync

func (f *File) Fsync(ctx context.Context, req *fuse.FsyncRequest) error

func (*File) Open

func (f *File) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (fs.Handle, error)

func (*File) Setattr

func (f *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *fuse.SetattrResponse) error

type FileState

type FileState struct {
	// contains filtered or unexported fields
}

func (*FileState) AddRef

func (r *FileState) AddRef(h *Handle)

func (*FileState) ClearLazilyTruncated

func (s *FileState) ClearLazilyTruncated()

func (*FileState) IsLazilyTruncated

func (s *FileState) IsLazilyTruncated() bool

func (*FileState) RemoveRef

func (r *FileState) RemoveRef(ctx context.Context, h *Handle)

func (*FileState) SetLazilyTruncated

func (s *FileState) SetLazilyTruncated(ctx context.Context, file *File) error

type Handle

type Handle struct {
	// contains filtered or unexported fields
}

func (*Handle) Flush

func (h *Handle) Flush(ctx context.Context, req *fuse.FlushRequest) error

func (*Handle) Fsync

func (h *Handle) Fsync(ctx context.Context, req *fuse.FsyncRequest) error

func (*Handle) ReadAll

func (h *Handle) ReadAll(ctx context.Context) ([]byte, error)

func (*Handle) Release

func (h *Handle) Release(ctx context.Context, req *fuse.ReleaseRequest) error

func (*Handle) Write

func (h *Handle) Write(ctx context.Context, req *fuse.WriteRequest, resp *fuse.WriteResponse) error

type WriteMetadata

type WriteMetadata struct {
	LastRevision string
}

Jump to

Keyboard shortcuts

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