GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - feather-framework/feather-storage-fs: A local file system-based storage driver for the Feather CMS storage service.

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
Sources/FeatherStorageFS
Sources/FeatherStorageFS
 
 
Tests/FeatherStorageFSTests
Tests/FeatherStorageFSTests
 
 
docker/tests
docker/tests
 
 
.gitignore
.gitignore
 
 
.swift-format
.swift-format
 
 
.swiftformatignore
.swiftformatignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
Package.resolved
Package.resolved
 
 
Package.swift
Package.swift
 
 
README.md
README.md
 
 

Repository files navigation

Feather Storage FS

File system-based driver implementation for the abstract Feather Storage Swift API package.

Release: 1.0.0-rc.3

Features

  • File system-based (NIO) driver for Feather Storage
  • Designed for modern Swift concurrency
  • DocC-based API Documentation
  • Unit tests and code coverage

Requirements

Swift 6.3+ Platforms: Linux, macOS, iOS, tvOS, watchOS, visionOS

  • Swift 6.3+
  • Platforms:
    • Linux
    • macOS 15+
    • iOS 18+
    • tvOS 18+
    • watchOS 11+
    • visionOS 2+

Installation

Add the dependency to your Package.swift:

.package(url: "https://github.com/feather-framework/feather-storage-fs", exact: "1.0.0-rc.3"),

Then add FeatherStorageFS to your target dependencies:

.product(name: "FeatherStorageFS", package: "feather-storage-fs"),

Usage

API documentation is available at the link below:

DocC API documentation

Here is a brief example:

import NIOCore
import FeatherStorage
import FeatherStorageFS

let path = "/path/to/storage"
let storage = StorageClientFS(rootPath: path)

let text = "Hello, World"
var buffer = ByteBufferAllocator().buffer(capacity: text.utf8.count)
buffer.writeString(text)
    
try await storage.upload(
    key: "docs/hello.txt",
    sequence: StorageSequence(
        asyncSequence: ByteBufferSequence(buffer: buffer),
        length: UInt64(buffer.readableBytes)
    )
)

try await storage.exists(key: "docs/hello.txt")
try await storage.size(key: "docs/hello.txt")

let result = try await storage.download(key: "docs/hello.txt", range: nil)
let buffer = try await result.collect(upTo: .max)
let value = buffer.getString(at: 0, length: buffer.readableBytes)
print(value)

Warning

This repository is a work in progress, things can break until it reaches v1.0.0.

Other storage drivers

The following storage client implementations are also available for use:

  • S3

Development

  • Build: swift build
  • Test:
    • local: swift test
    • using Docker: make docker-test
  • Format: make format
  • Check: make check

Contributing

Pull requests are welcome. Please keep changes focused and include tests for new logic. 🙏

About

A local file system-based storage driver for the Feather CMS storage service.

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.