miniKVStoreFSRW

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

README

miniKVStoreFSRW

miniKVStoreFSRW provides a writefs.FullFS implementation backed by a MiniKVStore.

Features

  • KV Store Backend: Uses MiniKVStore for storage of files and metadata.
  • Dynamic Resolution: Supports MiniResolver for locating the storage backend.
  • Full Write Capability: Implements Create, Append, MkDir, Remove, and Rename.

Usage

import (
    "github.com/je4/filesystem/v3/pkg/miniKVStoreFSRW"
)

// Initialize MiniKVStore filesystem
fsys, err := miniKVStoreFSRW.NewFS(
    "resolver-addr:port",
    resolverTimeout,
    notFoundTimeout,
    "domain",
    clientTLSConfig,
    "/base/dir",
    logger,
)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateFSFunc

func NewCreateFSFunc(miniResolverClient *resolver.MiniResolver, domain, vfs, dir string, closer []io.Closer, readOnly bool, logger zLogger.ZLogger) writefs.CreateFSFunc

func NewFS

func NewFS(miniResolverClient *resolver.MiniResolver, domain, vfs, dir string, closer []io.Closer, readOnly bool, logger zLogger.ZLogger) (*miniKVFSRW, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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