Documentation ¶
Index ¶
- Constants
- Variables
- func Close(fsys fs.FS) error
- func Fullpath(fsys fs.FS, name string) (string, error)
- func HasContent(fsys fs.FS) bool
- 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) *subFS
- func Remove(fsys fs.FS, path string) error
- func Rename(fsys fs.FS, oldPath, newPath string) error
- func SubFSCreate(fsys fs.FS, path string) (fs.FS, error)
- func WriteFile(fsys fs.FS, name string, data []byte) error
- type CloseFS
- type CreateFS
- type CreateFSFunc
- type Factory
- type FileWrite
- type FileWriteSeeker
- type FileWriterAt
- type FullpathFS
- type IsLockedFS
- type MkDirFS
- type Mutex
- type ReadWriteFS
- type RemoveFS
- type RenameFS
- 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 FullpathFS ¶
type IsLockedFS ¶
IsLockedFS is a fs.FS that can be checked for being locked.
type ReadWriteFS ¶
type WriteFileFS ¶
Click to show internal directories.
Click to hide internal directories.