remotefs

package
v1.0.13 Latest Latest
Warning

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

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

README

remotefs

remotefs provides a client implementation for interacting with a custom remote filesystem service.

Features

  • Network Access: Connects to a remote server over HTTP/HTTPS with TLS support.
  • Authentication: Uses JWT for secure communication.
  • Remote Operations: Proxies file system requests to the server, including Open, Stat, Create, Remove, and Rename.
  • Sub-systems: Supports sub-filesystem access within the remote system.

Usage

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

// Initialize remote FS client
fsys, err := remotefs.NewFS(
    tlsConfig, 
    "https://api.example.com", 
    "/base/dir", 
    "vfs-name", 
    nil, // closers
    "jwt-signing-key", 
    false, // read-only
    logger,
)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateFSFunc

func NewCreateFSFunc(tlsConfig *tls.Config, addr string, vfs string, closer []io.Closer, jwtKey string, logger zLogger.ZLogger) writefs.CreateFSFunc

func NewFS

func NewFS(tlsConfig *tls.Config, addr string, dir, vfs string, closer []io.Closer, jwtKey string, readOnly bool, logger zLogger.ZLogger) (*remoteFSRW, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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