fingerprint

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputFileNameFingerprints = "debricked.fingerprints.wfp"
)

Variables

View Source
var EXCLUDED_EXT = []string{}/* 141 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",
}
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"}

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) (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(ouputFile string) error

type IFingerprint

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

Jump to

Keyboard shortcuts

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