| register_backendA | Register a new backend with the given configuration.
Args:
name: Unique identifier for the backend (alphanumeric, hyphens, underscores only)
url: Backend connection URL (e.g., "fs:///", "s3://bucket", "memory:///")
description: Human-readable description of the backend
readonly: Whether this backend should be treated as read-only
timeout: Connection timeout in seconds
retry_attempts: Number of retry attempts for failed operations
set_as_default: Whether to set this as the default backend
validate_connection: Whether to validate the connection during registration
Returns:
Success or failure message
|
| list_backendsA | List all registered backends with their configurations and status.
Returns:
List of backend information including name, URL, description,
readonly status, default status, and health status
|
| set_default_backendB | Set the default backend for operations when no backend is specified.
Args:
name: Name of the backend to set as default
Returns:
Success message
|
| remove_backendA | Remove a backend from the manager.
Args:
name: Name of the backend to remove
force: Force removal even if it's the default backend
Returns:
Success message
|
| check_backend_healthB | Check the health status of backends by attempting basic operations.
Args:
backend: Specific backend to check (checks all if not specified)
Returns:
Dictionary mapping backend names to their health status (True/False)
|
| get_backend_statsA | Get statistics and information about the backend manager.
Returns:
Dictionary with total backends, default backend, healthy backends count, etc.
|
| list_filesB | List files and directories in the specified path.
Args:
path: The directory path to list (default: "/")
backend: Backend name to use (uses default backend if not specified)
Returns:
List of entries with their metadata
|
| read_fileC | Read file contents from the specified backend.
Args:
path: File path to read
backend: Backend name to use (uses default backend if not specified)
Returns:
File contents as string
|
| write_fileA | Write content to a file on the specified backend.
Args:
path: File path to write to
content: Content to write to the file
backend: Backend name to use (uses default backend if not specified)
Returns:
Success message
|
| copy_fileB | Copy a file between backends or within the same backend.
Args:
src: Source file path
dst: Destination file path
src_backend: Source backend name (uses default if not specified)
dst_backend: Destination backend name (uses default if not specified)
Returns:
Success message
|
| rename_fileB | Rename or move a file within a backend.
Args:
src: Source file path
dst: Destination file path
backend: Backend name to use (uses default backend if not specified)
Returns:
Success message
|
| create_dirB | Create a directory on the specified backend.
Args:
path: Directory path to create
backend: Backend name to use (uses default backend if not specified)
Returns:
Success message
|
| stat_fileA | Get metadata/statistics for a file or directory.
Args:
path: Path to get statistics for
backend: Backend name to use (uses default backend if not specified)
Returns:
File metadata object
|