Documentation
¶
Index ¶
- type Scheme
- func (s *Scheme) CreateAt(ctx context.Context, dst cadata.PostExister, src cadata.Getter, root []byte, ...) (string, []byte, error)
- func (s *Scheme) DeleteAt(ctx context.Context, dst cadata.PostExister, src cadata.Getter, root []byte, ...) ([]byte, error)
- func (s *Scheme) FlushExtents(ctx context.Context, dst cadata.PostExister, src cadata.Getter, root []byte, ...) ([]byte, error)
- func (s *Scheme) ReadDir(ctx context.Context, src cadata.Getter, root []byte, id string) ([]bcfs.DirEntry[string], error)
- func (s *Scheme) ReadFile(ctx context.Context, src cadata.Getter, root []byte, id string, buf []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheme ¶
Scheme implements the bcfs.Scheme interface using GLFS
func (*Scheme) CreateAt ¶
func (s *Scheme) CreateAt(ctx context.Context, dst cadata.PostExister, src cadata.Getter, root []byte, parentID string, name string, mode uint32) (string, []byte, error)
CreateAt creates a new file in the directory
func (*Scheme) DeleteAt ¶
func (s *Scheme) DeleteAt(ctx context.Context, dst cadata.PostExister, src cadata.Getter, root []byte, parentID string, name string) ([]byte, error)
DeleteAt removes a file from the directory
func (*Scheme) FlushExtents ¶
func (s *Scheme) FlushExtents(ctx context.Context, dst cadata.PostExister, src cadata.Getter, root []byte, extents []bcfs.Extent[string]) ([]byte, error)
FlushExtents writes all the extents to the volume
Click to show internal directories.
Click to hide internal directories.