filesystem

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 17 Imported by: 4

Documentation

Overview

Package filesystem implements filesystem-based Storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, opts *Options) (blob.Storage, error)

New creates new filesystem-backed storage in a specified directory.

Types

type Options

type Options struct {
	Path string `json:"path"`

	DirectoryShards []int `json:"dirShards"`

	FileMode      os.FileMode `json:"fileMode,omitempty"`
	DirectoryMode os.FileMode `json:"dirMode,omitempty"`

	FileUID *int `json:"uid,omitempty"`
	FileGID *int `json:"gid,omitempty"`

	ListParallelism int `json:"listParallelism,omitempty"`
}

Options defines options for Filesystem-backed storage.

Jump to

Keyboard shortcuts

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