storage

package
v0.0.0-...-c8a5df3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	// Create creates the named file, truncating it if it already exists.
	Create(tapr.PathName) (tapr.File, error)

	// Open opens the named file for reading.
	Open(tapr.PathName) (tapr.File, error)

	// OpenFile is the generalized open call. It opens the named file with
	// the specified flag.
	OpenFile(name tapr.PathName, flag int) (tapr.File, error)

	// Append opens the named file for appending.
	Append(tapr.PathName) (tapr.File, error)

	// Stat returns a FileInfo describing the named file.
	Stat(tapr.PathName) (os.FileInfo, error)

	// Mkdir creates a new directory with the specified name and permission bits.
	Mkdir(tapr.PathName) error

	// MkdirAll creates a directory named path, along with any necessary parents,
	// and returns nil, or else returns an error. The permission bits perm are
	// used for all directories that MkdirAll creates. If path is already a
	// directory, MkdirAll does nothing and returns nil.
	MkdirAll(tapr.PathName) error
}

Storage is the storage interface.

Directories

Path Synopsis
Package fsdir implements a storage backend that writes to some mounted file system.
Package fsdir implements a storage backend that writes to some mounted file system.

Jump to

Keyboard shortcuts

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