fsdir

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

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func New

func New(path string) *Storage

New returns a new Storage that reads and writes from the specified directory.

func (*Storage) Append

func (s *Storage) Append(name tapr.PathName) (tapr.File, error)

func (*Storage) Create

func (s *Storage) Create(name tapr.PathName) (tapr.File, error)

func (*Storage) Mkdir

func (s *Storage) Mkdir(name tapr.PathName) error

func (*Storage) MkdirAll

func (s *Storage) MkdirAll(name tapr.PathName) error

func (*Storage) Open

func (s *Storage) Open(name tapr.PathName) (tapr.File, error)

func (*Storage) OpenFile

func (s *Storage) OpenFile(name tapr.PathName, flag int) (tapr.File, error)

func (*Storage) Stat

func (s *Storage) Stat(name tapr.PathName) (os.FileInfo, error)

Jump to

Keyboard shortcuts

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