Documentation
¶
Index ¶
- Constants
- Variables
- func Close(fsys fs.FS) error
- func Copy(srcFS fs.FS, src string, dstFS fs.FS, dst string) (int64, error)
- func Equal(fsys1, fsys2 fs.FS) bool
- func Fullpath(fsys fs.FS, name string) (string, error)
- func HasContent(fsys fs.FS) bool
- func IsEmpty(fsys fs.FS, dir string) (bool, error)
- func IsWriteable(fsys fs.FS, path string) bool
- func Join(fsys fs.FS, elems ...string) string
- func MkDir(fsys fs.FS, path string) error
- func NewDirEntry(info fs.FileInfo) *dirEntry
- func NewFileInfoDir(base string) *fileInfoDir
- func NewNopReadCloser(r io.Reader) io.ReadCloser
- func NewNopWriteCloser(w io.Writer) io.WriteCloser
- func NewSidecarAESWriter(w io.Writer, aesWriter io.WriteCloser) (io.WriteCloser, error)
- func NewSidecarChecksumWriter(w io.Writer, sidecars map[checksum.DigestAlgorithm]io.WriteCloser) (io.WriteCloser, error)
- func NewSubFS(fsys fs.FS, dir string) (fs.FS, error)
- func RealPath(fSys fs.FS, dir string) string
- func Remove(fsys fs.FS, path string) error
- func Rename(fsys fs.FS, oldPath, newPath string) error
- func Sub(fsys fs.FS, dir string) (fs.FS, error)
- func SubCreate(fSys fs.FS, dir string) (fs.FS, error)
- func WriteFile(fsys fs.FS, name string, data []byte) (int64, error)
- type AppendFS
- type CloseFS
- type CopyFS
- type CreateFS
- type CreateFSFunc
- type EqualFS
- type Factory
- type FileWrite
- type FileWriteSeeker
- type FileWriterAt
- type FullFS
- type FullpathFS
- type IFactory
- type IsEmptyFS
- type IsLockedFS
- type IsWriteableFS
- type JoinFS
- type MkDirFS
- type Mutex
- type ReadWriteFS
- type RealPathFS
- type RemoveFS
- type RenameFS
- type SubCreateFS
- type SubFS
- type WriteFileFS
Constants ¶
View Source
const ( LowFS levelFS = iota MediumFS HighFS )
Variables ¶
View Source
var ErrNotImplemented = errors.NewPlain("not implemented")
Functions ¶
func HasContent ¶
func NewDirEntry ¶
NewDirEntry creates a new DirEntry from a FileInfo.
func NewFileInfoDir ¶
func NewFileInfoDir(base string) *fileInfoDir
NewFileInfoDir creates a new FileInfo for a directory.
func NewNopReadCloser ¶
func NewNopReadCloser(r io.Reader) io.ReadCloser
NopReadCloser returns a ReadCloser with a no-op Close method wrapping
func NewNopWriteCloser ¶
func NewNopWriteCloser(w io.Writer) io.WriteCloser
func NewSidecarAESWriter ¶
func NewSidecarAESWriter(w io.Writer, aesWriter io.WriteCloser) (io.WriteCloser, error)
func NewSidecarChecksumWriter ¶
func NewSidecarChecksumWriter(w io.Writer, sidecars map[checksum.DigestAlgorithm]io.WriteCloser) (io.WriteCloser, error)
Types ¶
type FileWrite ¶
type FileWrite interface {
io.WriteCloser
}
type FileWriteSeeker ¶
type FileWriterAt ¶
type FullFS ¶
type FullFS interface {
CopyFS
CreateFS
AppendFS
MkDirFS
RenameFS
RemoveFS
CloseFS
WriteFileFS
FullpathFS
EqualFS
SubFS
SubCreateFS
RealPathFS
IsEmptyFS
fs.FS
fs.ReadDirFS
fs.ReadFileFS
fs.StatFS
}
type FullpathFS ¶
type IsLockedFS ¶
IsLockedFS is a fs.FS that can be checked for being locked.
type IsWriteableFS ¶
type ReadWriteFS ¶
type RealPathFS ¶
Click to show internal directories.
Click to hide internal directories.