filesystem

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: Apache-2.0 Imports: 18 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, isCreate bool) (blob.Storage, error)

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

Types

type Options

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

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

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

	sharded.Options
	throttling.Limits
	// contains filtered or unexported fields
}

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