Documentation ¶
Index ¶
- func DeferSnapshot(fsys fs.FS, opts SnapshotOpts) compute.Computable[fs.FS]
- func DirHandle(basename string, entries []fs.DirEntry) fs.ReadDirFile
- func FileHandle(f fnfs.File) fs.File
- type FS
- func (m *FS) Add(path string, contents []byte)
- func (m *FS) Clone() fnfs.ReadWriteFS
- func (m *FS) ComputeDigest(ctx context.Context) (schema.Digest, error)
- func (m *FS) Open(name string) (fs.File, error)
- func (m *FS) OpenWrite(name string, _ fs.FileMode) (fnfs.WriteFileHandle, error)
- func (m *FS) ReadDir(relPath string) ([]fs.DirEntry, error)
- func (m *FS) Remove(relPath string) error
- func (m *FS) Stats() FSStats
- func (m *FS) TotalSize(ctx context.Context) (uint64, error)
- func (m *FS) VisitFiles(ctx context.Context, ...) error
- func (m *FS) VisitFilesWithoutContext(visitor func(string, bytestream.Static, FileDirent) error) error
- type FSStats
- type FileDirent
- func (f FileDirent) Info() (fs.FileInfo, error)
- func (f FileDirent) IsDir() bool
- func (f FileDirent) ModTime() time.Time
- func (f FileDirent) Mode() fs.FileMode
- func (f FileDirent) Name() string
- func (f FileDirent) Size() int64
- func (f FileDirent) Sys() interface{}
- func (f FileDirent) Type() fs.FileMode
- type SnapshotFS
- type SnapshotOpts
- type WithMatch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeferSnapshot ¶ added in v0.0.109
func DeferSnapshot(fsys fs.FS, opts SnapshotOpts) compute.Computable[fs.FS]
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
func SnapshotDir ¶
func (*FS) Clone ¶
func (m *FS) Clone() fnfs.ReadWriteFS
func (*FS) VisitFiles ¶
func (m *FS) VisitFiles(ctx context.Context, visitor func(string, bytestream.ByteStream, fs.DirEntry) error) error
func (*FS) VisitFilesWithoutContext ¶
func (m *FS) VisitFilesWithoutContext(visitor func(string, bytestream.Static, FileDirent) error) error
type FileDirent ¶
func (FileDirent) IsDir ¶
func (f FileDirent) IsDir() bool
func (FileDirent) ModTime ¶
func (f FileDirent) ModTime() time.Time
func (FileDirent) Mode ¶
func (f FileDirent) Mode() fs.FileMode
func (FileDirent) Name ¶
func (f FileDirent) Name() string
func (FileDirent) Size ¶
func (f FileDirent) Size() int64
func (FileDirent) Sys ¶
func (f FileDirent) Sys() interface{}
func (FileDirent) Type ¶
func (f FileDirent) Type() fs.FileMode
type SnapshotFS ¶
type SnapshotFS interface {
Snapshot(SnapshotOpts) (*FS, error)
}
type SnapshotOpts ¶
Click to show internal directories.
Click to hide internal directories.