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)
}
Click to show internal directories.
Click to hide internal directories.