storage

package
v0.0.0-...-c57cf68 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2015 License: GPL-3.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Directory

type Directory interface {
	io.Closer

	Entry() DirectoryEntry

	Stat(path string) (Entry, error)

	NextEntry() (Entry, error)

	Rewind() error

	CreateFile(path string) (WritableFile, error)

	Mkdir(path string) (Directory, error)
}

type DirectoryEntry

type DirectoryEntry interface {
	Entry

	Open() (Directory, error)
}

type Entry

type Entry interface {
	Name() string
	Path() string
	Mtime() time.Time
	SetMtime(time.Time) error

	Remove() error
	Rename(newname string) (Entry, error)
}

type File

type File interface {
	io.ReadCloser

	Entry() FileEntry
}

type FileEntry

type FileEntry interface {
	Entry

	Open() (File, error)
	OpenWrite() (WritableFile, error)
}

type StorageProvider

type StorageProvider interface {
	Root() (Directory, error)

	Marshal() config.Config
}

type WritableFile

type WritableFile interface {
	File
	io.Writer
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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