Versions in this module Expand all Collapse all v0 v0.0.1 Nov 5, 2023 Changes in this version + var ErrPermissionSymlink = errors.New("symlinks not allowed in this filesystem") + var LanguageDirsMerger = func(lofi, bofi []os.FileInfo) []os.FileInfo + var NoOpFs = &noOpFs + var Os = &afero.OsFs + func DecorateBasePathFs(base *afero.BasePathFs) afero.Fs + func Glob(fs afero.Fs, pattern string, handle func(fi FileMetaInfo) (bool, error)) error + func IsOsFs(fs afero.Fs) bool + func MakeReadableAndRemoveAllModulePkgDir(fs afero.Fs, dir string) (int, error) + func NewBaseFileDecorator(fs afero.Fs, callbacks ...func(fi FileMetaInfo)) afero.Fs + func NewCreateCountingFs(fs afero.Fs) afero.Fs + func NewFilterFs(fs afero.Fs) (afero.Fs, error) + func NewHasBytesReceiver(delegate afero.Fs, shouldCheck func(name string) bool, ...) afero.Fs + func NewHashingFs(delegate afero.Fs, hashReceiver FileHashReceiver) afero.Fs + func NewLanguageFs(langs map[string]int, fs afero.Fs) (afero.Fs, error) + func NewNoSymlinkFs(fs afero.Fs, logger loggers.Logger, allowFiles bool) afero.Fs + func NewSliceFs(dirs ...FileMetaInfo) (afero.Fs, error) + func NewStacktracerFs(fs afero.Fs, pattern string) afero.Fs + func WalkFilesystems(fs afero.Fs, fn WalkFn) bool + type DuplicatesReporter interface + ReportDuplicates func() string + type FileHashReceiver interface + OnFileClose func(name, md5sum string) + type FileMeta struct + BaseDir string + Classifier files.ContentClass + Filename string + Fs afero.Fs + InclusionFilter *glob.FilenameFilter + IsOrdered bool + IsProject bool + IsRootFile bool + IsSymlink bool + JoinStatFunc func(name string) (FileMetaInfo, error) + Lang string + Module string + MountRoot string + Name string + OpenFunc func() (afero.File, error) + OriginalFilename string + Path string + PathWalk string + SkipDir bool + SourceRoot string + TranslationBaseName string + TranslationBaseNameWithExt string + Translations []string + Watch bool + Weight int + func NewFileMeta() *FileMeta + func (f *FileMeta) JoinStat(name string) (FileMetaInfo, error) + func (f *FileMeta) Open() (afero.File, error) + func (f *FileMeta) PathFile() string + func (m *FileMeta) Copy() *FileMeta + func (m *FileMeta) Merge(from *FileMeta) + type FileMetaInfo interface + Meta func() *FileMeta + func NewFileMetaInfo(fi os.FileInfo, m *FileMeta) FileMetaInfo + type FilesystemUnwrapper interface + UnwrapFilesystem func() afero.Fs + type FilesystemsUnwrapper interface + UnwrapFilesystems func() []afero.Fs + type FilterFs struct + func (fs *FilterFs) Chmod(n string, m os.FileMode) error + func (fs *FilterFs) Chown(n string, uid, gid int) error + func (fs *FilterFs) Chtimes(n string, a, m time.Time) error + func (fs *FilterFs) Create(n string) (afero.File, error) + func (fs *FilterFs) LstatIfPossible(name string) (os.FileInfo, bool, error) + func (fs *FilterFs) Mkdir(n string, p os.FileMode) error + func (fs *FilterFs) MkdirAll(n string, p os.FileMode) error + func (fs *FilterFs) Name() string + func (fs *FilterFs) Open(name string) (afero.File, error) + func (fs *FilterFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error) + func (fs *FilterFs) ReadDir(name string) ([]os.FileInfo, error) + func (fs *FilterFs) Remove(n string) error + func (fs *FilterFs) RemoveAll(p string) error + func (fs *FilterFs) Rename(o, n string) error + func (fs *FilterFs) Stat(name string) (os.FileInfo, error) + func (fs *FilterFs) UnwrapFilesystem() afero.Fs + type Fs struct + Os afero.Fs + PublishDir afero.Fs + PublishDirServer afero.Fs + PublishDirStatic afero.Fs + Source afero.Fs + WorkingDirReadOnly afero.Fs + WorkingDirWritable afero.Fs + func NewDefault(conf config.BaseConfig) *Fs + func NewDefaultOld(cfg config.Provider) *Fs + func NewFrom(fs afero.Fs, conf config.BaseConfig) *Fs + func NewFromOld(fs afero.Fs, cfg config.Provider) *Fs + func NewFromSourceAndDestination(source, destination afero.Fs, cfg config.Provider) *Fs + type Reseter interface + Reset func() + type RootMapping struct + From string + IsProject bool + Meta *FileMeta + Module string + To string + ToBasedir string + type RootMappingFs struct + func NewRootMappingFs(fs afero.Fs, rms ...RootMapping) (*RootMappingFs, error) + func (fs *RootMappingFs) Dirs(base string) ([]FileMetaInfo, error) + func (fs *RootMappingFs) LstatIfPossible(name string) (os.FileInfo, bool, error) + func (fs *RootMappingFs) Open(name string) (afero.File, error) + func (fs *RootMappingFs) Stat(name string) (os.FileInfo, error) + func (fs *RootMappingFs) UnwrapFilesystem() afero.Fs + func (fs RootMappingFs) Filter(f func(m RootMapping) bool) *RootMappingFs + type SliceFs struct + func (fs *SliceFs) Chmod(n string, m os.FileMode) error + func (fs *SliceFs) Chown(n string, uid, gid int) error + func (fs *SliceFs) Chtimes(n string, a, m time.Time) error + func (fs *SliceFs) Create(n string) (afero.File, error) + func (fs *SliceFs) LstatIfPossible(name string) (os.FileInfo, bool, error) + func (fs *SliceFs) Mkdir(n string, p os.FileMode) error + func (fs *SliceFs) MkdirAll(n string, p os.FileMode) error + func (fs *SliceFs) Name() string + func (fs *SliceFs) Open(name string) (afero.File, error) + func (fs *SliceFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error) + func (fs *SliceFs) ReadDir(name string) ([]os.FileInfo, error) + func (fs *SliceFs) Remove(n string) error + func (fs *SliceFs) RemoveAll(p string) error + func (fs *SliceFs) Rename(o, n string) error + func (fs *SliceFs) Stat(name string) (os.FileInfo, error) + func (fs *SliceFs) UnwrapFilesystems() []afero.Fs + type WalkFn func(fs afero.Fs) bool + type WalkFunc func(path string, info FileMetaInfo, err error) error + type WalkHook func(dir FileMetaInfo, path string, readdir []FileMetaInfo) ([]FileMetaInfo, error) + type Walkway struct + func NewWalkway(cfg WalkwayConfig) *Walkway + func (w *Walkway) Walk() error + type WalkwayConfig struct + BasePath string + DirEntries []FileMetaInfo + Fs afero.Fs + HookPost WalkHook + HookPre WalkHook + Info FileMetaInfo + Logger loggers.Logger + Root string + WalkFn WalkFunc