fingerprint

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const HASH_SIZE = 16
View Source
const (
	OutputFileNameFingerprints = "debricked.fingerprints.txt"
)

Variables

View Source
var EXCLUDED_EXT = []string{}/* 140 elements not displayed */
View Source
var EXCLUDED_FILES = []string{
	"gradlew", "gradlew.bat", "mvnw", "mvnw.cmd", "gradle-wrapper.jar", "maven-wrapper.jar",
	"thumbs.db", "babel.config.js", "license.txt", "license.md", "copying.lib", "makefile",
	"[content_types].xml",
}
View Source
var EXCLUDED_FILE_ENDINGS = []string{"-doc", "changelog", "config", "copying", "license", "authors", "news", "licenses", "notice",
	"readme", "swiftdoc", "texidoc", "todo", "version", "ignore", "manifest", "sqlite", "sqlite3"}
View Source
var FILES_TO_UNPACK = []string{".jar", ".nupkg", ".war"}

Functions

This section is empty.

Types

type FileFingerprint

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

func (FileFingerprint) ToString

func (f FileFingerprint) ToString() string

type Fingerprinter

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

func NewFingerprinter

func NewFingerprinter() *Fingerprinter

func (*Fingerprinter) FingerprintFiles

func (f *Fingerprinter) FingerprintFiles(rootPath string, exclusions []string, fingerprintCompressedContent bool) (Fingerprints, error)

type Fingerprints

type Fingerprints struct {
	Entries []FileFingerprint `json:"fingerprints"`
}

func (*Fingerprints) Len

func (f *Fingerprints) Len() int

func (*Fingerprints) ToFile

func (f *Fingerprints) ToFile(outputFile string) error

type IFingerprint

type IFingerprint interface {
	FingerprintFiles(rootPath string, exclusions []string, fingerprintCompressedContent bool) (Fingerprints, error)
}

Jump to

Keyboard shortcuts

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