afs

package
v0.0.0-...-fb9fcc8 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package afs provides an abstract file system, that can be used to write data to the backing store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name      string
	Directory bool
}

type File

type File struct {
	*os.File
	// contains filtered or unexported fields
}

func (*File) Stat

func (f *File) Stat() (os.FileInfo, error)

type FileSystem

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

func Open

func Open(dir, u string) (*FileSystem, error)

func (*FileSystem) Destroy

func (fs *FileSystem) Destroy() error

func (*FileSystem) Finalize

func (fs *FileSystem) Finalize() (string, error)

func (*FileSystem) List

func (fs *FileSystem) List(name string) ([]Entry, error)

func (*FileSystem) Mkdir

func (fs *FileSystem) Mkdir(name string) error

func (*FileSystem) Open

func (fs *FileSystem) Open(name string) (*File, error)

func (*FileSystem) Remove

func (fs *FileSystem) Remove(name string) error

func (*FileSystem) Rename

func (fs *FileSystem) Rename(from, to string) error

func (*FileSystem) Rmdir

func (fs *FileSystem) Rmdir(name string) error

func (*FileSystem) Stat

func (fs *FileSystem) Stat(name string) (os.FileInfo, error)

Jump to

Keyboard shortcuts

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