fscache

package module
v0.0.0-...-635337a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2024 License: ISC Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSCache

type FSCache struct {
	// contains filtered or unexported fields
}

func FromBytes

func FromBytes(data []byte) (*FSCache, error)

func NewFSCache

func NewFSCache() (*FSCache, error)

func (*FSCache) Checksum

func (fsc *FSCache) Checksum() []byte

func (*FSCache) Children

func (fsc *FSCache) Children(path string) (<-chan string, error)

func (*FSCache) Close

func (fsc *FSCache) Close() error

func (*FSCache) Directories

func (fsc *FSCache) Directories() <-chan string

func (*FSCache) Files

func (fsc *FSCache) Files() <-chan string

func (*FSCache) Record

func (fsc *FSCache) Record(path string, fileinfo fs.FileInfo) error

func (*FSCache) Scan

func (fsc *FSCache) Scan() <-chan string

func (*FSCache) Serialize

func (fsc *FSCache) Serialize() ([]byte, error)

func (*FSCache) Stat

func (fsc *FSCache) Stat(path string) (*FileInfo, error)

type FileInfo

type FileInfo struct {
	Name    string
	Size    int64
	Mode    os.FileMode
	ModTime time.Time
	Dev     uint64
	Ino     uint64
	Uid     uint64
	Gid     uint64
}

func NewFileInfoFromStat

func NewFileInfoFromStat(stat fs.FileInfo) FileInfo

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL