filesystem

package
v0.2.2-0...-86e9763 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PipeReader

func PipeReader(f func(w io.Writer) error) io.Reader

PipeReader pipes r to f(w).

Types

type FileSystem

type FileSystem interface {
	// Create creates an object with the specified name, and will read
	// from r up to io.EOF. The reader is explicitly passed in to allow
	// implementations to cleanup, and guarantee consistency.
	Create(ctx context.Context, name string, r io.Reader) error
	Open(ctx context.Context, name string) (Reader, error)
	Remove(ctx context.Context, name string) error
}

A FileSystem is a persistent store of objects uniquely identified by name.

type Reader

type Reader interface {
	io.ReadSeeker
	io.Closer
}

A Reader is a readable, seekable and closable file stream.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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