scanner

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 15 Imported by: 32

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeRegularInode

func MakeRegularInode(stat *wsyscall.Stat_t) *filesystem.RegularInode

func MakeSpecialInode

func MakeSpecialInode(stat *wsyscall.Stat_t) *filesystem.SpecialInode

func MakeSymlinkInode

func MakeSymlinkInode(stat *wsyscall.Stat_t) *filesystem.SymlinkInode

func NewCpuLimitedHasher

func NewCpuLimitedHasher(cpuLimiter *cpulimiter.CpuLimiter,
	hasher Hasher) cpuLimitedHasher

Types

type FileSystem

type FileSystem struct {
	filesystem.FileSystem
	// contains filtered or unexported fields
}

func ScanFileSystem

func ScanFileSystem(rootDirectoryName string,
	fsScanContext *fsrateio.ReaderContext, scanFilter *filter.Filter,
	checkScanDisableRequest func() bool, hasher Hasher, oldFS *FileSystem) (
	*FileSystem, error)

func (*FileSystem) GetObject

func (fs *FileSystem) GetObject(hashVal hash.Hash) (
	uint64, io.ReadCloser, error)

type Hasher

type Hasher interface {
	Hash(reader io.Reader, length uint64) (hash.Hash, error)
}

func GetSimpleHasher

func GetSimpleHasher(ignoreShortReads bool) Hasher

Jump to

Keyboard shortcuts

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