identify

package
v0.0.0-...-cd18553 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdentifyFS

func IdentifyFS(filename string, options IdentifyFSOptions)

func MakeSampleOffsets

func MakeSampleOffsets(devSize, blockSize, numSamples uint64) []uint64

Types

type FSEntry

type FSEntry struct {
	FSID      uuid.UUID
	Count     uint
	Entropy   float64
	BlockSize uint32
}

type FSIDCollecter

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

func (*FSIDCollecter) CollectBlock

func (c *FSIDCollecter) CollectBlock(block []byte)

func (*FSIDCollecter) Entries

func (c *FSIDCollecter) Entries(minOccurrence uint) []FSEntry

type IdentifyFSOptions

type IdentifyFSOptions struct {
	BlockSize      uint
	SampleFraction float64
	MinBlocks      uint
	MaxBlocks      uint
	MinOccurrence  uint
}

type Uint64Array

type Uint64Array []uint64

func (Uint64Array) Len

func (a Uint64Array) Len() int

func (Uint64Array) Less

func (a Uint64Array) Less(i, j int) bool

func (Uint64Array) Sort

func (a Uint64Array) Sort()

func (Uint64Array) Swap

func (a Uint64Array) Swap(i, j int)

Jump to

Keyboard shortcuts

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