Documentation ¶
Index ¶
- Variables
- func WithLogger(l *slog.Logger) fsOption
- type FS
- func (fsys *FS) Copy(ctx context.Context, dst, src string) error
- func (fsys *FS) ObjectRoots(ctx context.Context, sel ocfl.PathSelector, ...) error
- func (fsys *FS) OpenFile(ctx context.Context, name string) (fs.File, error)
- func (fsys *FS) ReadDir(ctx context.Context, name string) ([]fs.DirEntry, error)
- func (fsys *FS) ReaderOptions(opts *blob.ReaderOptions) *FS
- func (fsys *FS) Remove(ctx context.Context, name string) error
- func (fsys *FS) RemoveAll(ctx context.Context, name string) error
- func (fsys *FS) Write(ctx context.Context, name string, r io.Reader) (int64, error)
- func (fsys *FS) WriterOptions(opts *blob.WriterOptions) *FS
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotDir = fmt.Errorf("not a directory")
Functions ¶
func WithLogger ¶
Types ¶
type FS ¶
type FS struct { *blob.Bucket // Experimental config ObjectRootsUseWalkDirs bool ObjectRootWalkDirsGos int // contains filtered or unexported fields }
FS is a generic backend for cloud storage backends using a blob.Bucket
func (*FS) ObjectRoots ¶
func (fsys *FS) ObjectRoots(ctx context.Context, sel ocfl.PathSelector, fn func(obj *ocfl.ObjectRoot) error) error
ObjectRoots implements ObjectRootIterator
func (*FS) ReaderOptions ¶
func (fsys *FS) ReaderOptions(opts *blob.ReaderOptions) *FS
func (*FS) WriterOptions ¶
func (fsys *FS) WriterOptions(opts *blob.WriterOptions) *FS
Click to show internal directories.
Click to hide internal directories.