Versions in this module Expand all Collapse all v0 v0.0.1 Apr 17, 2024 Changes in this version + const Delimiter + const LinkCount + func FileIDFromString(str string) uint64 + type FileCache struct + func NewFileCache(dir string) *FileCache + func (c *FileCache) Get(key string) (*os.File, error) + func (c *FileCache) Set(key string, content io.ReadCloser, expected int64) (*os.File, error) + type FileInfo struct + func ImmutableDir(filename string, mtime time.Time) *FileInfo + func ImmutableInfo(filename string, mtime time.Time, mode os.FileMode, size int64, opener Opener) *FileInfo + func (f *FileInfo) AsPath(filename string) *FileInfo + func (f *FileInfo) ContentType(ctx context.Context) (string, error) + func (f *FileInfo) ETag(ctx context.Context) (string, error) + func (f *FileInfo) FileID() uint64 + func (f *FileInfo) FullPath() string + func (f *FileInfo) Gid() uint32 + func (f *FileInfo) IsDir() bool + func (f *FileInfo) ModTime() time.Time + func (f *FileInfo) Mode() fs.FileMode + func (f *FileInfo) NLink() uint32 + func (f *FileInfo) Name() string + func (f *FileInfo) Open(flag int, perm os.FileMode) (FileLike, error) + func (f *FileInfo) Size() int64 + func (f *FileInfo) Sys() any + func (f *FileInfo) Uid() uint32 + type FileInfoList []*FileInfo + func (a FileInfoList) Len() int + func (a FileInfoList) Less(i, j int) bool + func (a FileInfoList) Swap(i, j int) + func (a FileInfoList) ToOSFiles() []os.FileInfo + type FileLike interface + type OpenFn func(fullPath string, flag int, perm os.FileMode) (FileLike, error) + func (o OpenFn) Open(fullPath string, flag int, perm os.FileMode) (FileLike, error) + type Opener interface + Open func(fullPath string, flag int, perm os.FileMode) (FileLike, error)