fs

package
v0.0.0-...-ed5d140 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRoot = "/tmp/pdd"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	// contains filtered or unexported fields
}

Backend is an file system implementation of the Backend.

func New

func New(logger log.Logger, c Config) (*Backend, error)

New creates a Backend backend.

func (*Backend) Put

func (b *Backend) Put(ctx context.Context, p string, r io.Reader) error

Put uploads contents of the given reader.

type Config

type Config struct {
	Root string
}

Config is a structure to store filesystem backend configuration.

Jump to

Keyboard shortcuts

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