sivafs

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2017 License: MIT Imports: 12 Imported by: 0

README

go-billy-siva GoDoc Build Status

Installation

The recommended way to install go-billy-siva

go get -u gopkg.in/src-d/go-billy-siva.v0/...

License

MIT, see LICENSE

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNonSeekableFile          = errors.New("file non-seekable")
	ErrAlreadyClosed            = errors.New("file was already closed")
	ErrFileWriteModeAlreadyOpen = errors.New("previous file in write mode already open")
	ErrReadOnlyFile             = errors.New("file is read-only")
	ErrWriteOnlyFile            = errors.New("file is write-only")
)

Functions

func New

func New(fs billy.Filesystem, path string) billy.Filesystem

New creates a new filesystem backed by a siva file with the given path in the given filesystem. The siva file will be opened or created lazily with the first operation.

All files opened in write mode must be closed, otherwise the siva file will be corrupted.

TempFile is not supported. tmpoverlay should be used if TempFile is needed.

Types

type Syncer

type Syncer interface {
	Sync() error
}

Jump to

Keyboard shortcuts

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