storage

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultOperationTimeout = 3 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	// Put writes contents of io.Reader to remote storage at given key location.
	Put(p string, r io.Reader) error
}

Storage is a place that files can be written to and read from.

func New

func New(logger log.Logger, b backend.Backend, timeout time.Duration) Storage

New create a new default storage.

Directories

Path Synopsis
fs

Jump to

Keyboard shortcuts

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