Categorygithub.com/beyondstorage/go-service-fs/v3
modulepackage
3.5.0
Repository: https://github.com/beyondstorage/go-service-fs.git
Documentation: pkg.go.dev

# README

Build Status License

go-services-fs

Local file system service support for go-storage.

Install

go get github.com/beyondstorage/go-service-fs/v3

Usage

import (
	"log"

	_ "github.com/beyondstorage/go-service-fs/v3"
	"github.com/beyondstorage/go-storage/v4/services"
)

func main() {
	store, err := services.NewStoragerFromString("fs:///path/to/workdir")
	if err != nil {
		log.Fatal(err)
	}
	
	// Write data from io.Reader into hello.txt
	n, err := store.Write("hello.txt", r, length)
}

# Packages

No description provided by the author

# Functions

GetObjectSystemMetadata will get ObjectSystemMetadata from Object.
GetStorageSystemMetadata will get SystemMetadata from StorageMeta.
NewStorager will create Storager only.
WithDefaultStoragePairs will apply default_storage_pairs value to Options.
WithStorageFeatures will apply storage_features value to Options.

# Constants

This is a block device.
This is a character device.
This is a directory.
This is a named pipe (FIFO).
This is a symbolic link.
This is a regular file.
This is a UNIX domain socket.
The file type is unknown.
WhiteOut from BSD, don't know what's it mean.
Std{in/out/err} support.
Std{in/out/err} support.
Std{in/out/err} support.
Type is the type for fs.

# Structs

DefaultStoragePairs is default pairs for specific action.
ObjectSystemMetadata stores system metadata for object.
Storage is the fs client.
No description provided by the author
StorageSystemMetadata stores system metadata for storage meta.