Documentation
¶
Index ¶
- Variables
- func CleanPath(in string) string
- type Entries
- func (instance *Entries) Add(pathname string, entry Entry) error
- func (instance Entries) Filter(predicate Predicate) (Entries, error)
- func (instance *Entries) Find(pathname string) *Entry
- func (instance *Entries) Get(pathname string) (Entry, error)
- func (instance *Entries) Replace(pathname string, entry Entry) error
- type Entry
- func (instance Entry) ChecksumString() string
- func (instance Entry) IsDir() bool
- func (instance Entry) ModTime() time.Time
- func (instance Entry) Mode() os.FileMode
- func (instance Entry) Name() string
- func (instance Entry) Size() int64
- func (instance Entry) String() string
- func (instance Entry) Sys() interface{}
- type File
- func (instance *File) Close() error
- func (instance *File) Read(p []byte) (n int, err error)
- func (instance *File) Readdir(count int) ([]os.FileInfo, error)
- func (instance *File) Seek(offset int64, whence int) (int64, error)
- func (instance *File) Stat() (os.FileInfo, error)
- func (instance File) String() string
- type Meta
- type Predicate
- type Reader
- type ReaderFactory
- type Sha256Checksum
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoReaderFactoryProvided = errors.New("no entry.ReaderFactory provided") ErrNoToFileTransformerProvided = errors.New("no entry.ToFileTransformer provided") )
Functions ¶
Types ¶
type Entry ¶
type Entry struct { BaseName string // 0 Offset common.FileOffset // 1 Length int64 // 2 FileMode os.FileMode // 3 Time time.Time // 4 Checksum Sha256Checksum // 5 Meta Meta // 6 // contains filtered or unexported fields }
noinspection GoStructTag
func (Entry) ChecksumString ¶
type File ¶
type File struct { Entry Entry Path string ReaderFactory ReaderFactory // contains filtered or unexported fields }
type ReaderFactory ¶
type Sha256Checksum ¶
Click to show internal directories.
Click to hide internal directories.