Versions in this module Expand all Collapse all v0 v0.6.0 Nov 27, 2021 Changes in this version + const FileSystemTypeMock + func CompareEntry(a, b Entry) bool + type Connector interface + Copy func(source Entry, target Path, onSuccess func(pair CopyPair, copied Entry), ...) + Shutdown func() (err FileSystemError) + Startup func(qd eq_queue.Definition) (err FileSystemError) + type CopyPair struct + Source Entry + Target Path + func NewCopyPair(source Entry, target Path) CopyPair + type Entry interface + AsData func() EntryData + ContentHash func() (string, FileSystemError) + IsFile func() bool + IsFolder func() bool + ModTime func() time.Time + Name func() string + Path func() Path + Size func() int64 + func NewMockFileEntry(path string, size int64, modTime time.Time, mockHash string) Entry + func NewMockFolderEntry(path string) Entry + type EntryData struct + Attributes map[string]interface{} + EntryIsFile bool + EntryIsFolder bool + EntryModTime time.Time + EntryName string + EntryPath string + EntrySize int64 + FileSystemType string + func (z EntryData) AsData() EntryData + func (z EntryData) IsFile() bool + func (z EntryData) IsFolder() bool + func (z EntryData) ModTime() time.Time + func (z EntryData) Name() string + func (z EntryData) Size() int64 + type FileSystem interface + CreateFolder func(path Path) (entry Entry, err FileSystemError) + Delete func(path Path) (err FileSystemError) + Entry func(data EntryData) (entry Entry, err FileSystemError) + FileSystemType func() string + Info func(path Path) (entry Entry, err FileSystemError) + List func(path Path) (entries []Entry, err FileSystemError) + OperationalComplexity func(entries []Entry) (complexity int64) + Path func(data PathData) (path Path, err FileSystemError) + Shard func(data ShardData) (shard Shard, err FileSystemError) + type FileSystemError interface + IsConflict func() bool + IsDisallowedName func() bool + IsInsufficientSpace func() bool + IsInvalidEntryDataFormat func() bool + IsMockError func() bool + IsNoPermission func() bool + IsPathNotFound func() bool + func NewLowLevelError(ge error) FileSystemError + type MockEntry struct + MockHash string + func (z MockEntry) ContentHash() (string, FileSystemError) + func (z MockEntry) Path() Path + type MockPath struct + func (z MockPath) Ancestor() Path + func (z MockPath) Base() string + func (z MockPath) Descendant(pathFragment ...string) Path + func (z MockPath) IsRoot() bool + type Path interface + Ancestor func() Path + AsData func() PathData + Base func() string + Descendant func(pathFragment ...string) Path + IsRoot func() bool + Path func() string + Shard func() Shard + func NewMockPath(path string) Path + type PathData struct + Attributes map[string]interface{} + EntryPath string + EntryShard ShardData + FileSystemType string + func (z PathData) AsData() PathData + func (z PathData) Path() string + func (z PathData) Shard() Shard + type Shard interface + AsData func() ShardData + Id func() string + type ShardData struct + Attributes map[string]interface{} + FileSystemType string + ShardId string + func (z ShardData) AsData() ShardData + func (z ShardData) Id() string