Versions in this module Expand all Collapse all v0 v0.52.0 Sep 29, 2022 Changes in this version + var DefaultClassifiers = []Classifier + var DefaultSecretsPatterns = map[string]string + func CleanDigestAlgorithmName(name string) string + func DigestAlgorithmName(hash crypto.Hash) string + func GenerateSearchPatterns(basePatterns map[string]string, additionalPatterns map[string]string, ...) (map[string]*regexp.Regexp, error) + type Classification struct + Class string + Metadata map[string]string + type ClassificationCataloger struct + func NewClassificationCataloger(classifiers []Classifier) (*ClassificationCataloger, error) + func (i *ClassificationCataloger) Catalog(resolver source.FileResolver) (map[source.Coordinates][]Classification, error) + type Classifier struct + Class string + EvidencePatternTemplates []string + FilepathPatterns []*regexp.Regexp + func (c Classifier) Classify(resolver source.FileResolver, location source.Location) (*Classification, error) + type ContentsCataloger struct + func NewContentsCataloger(globs []string, skipFilesAboveSize int64) (*ContentsCataloger, error) + func (i *ContentsCataloger) Catalog(resolver source.FileResolver) (map[source.Coordinates]string, error) + type Digest struct + Algorithm string + Value string + func DigestsFromFile(closer io.ReadCloser, hashes []crypto.Hash) ([]Digest, error) + type DigestsCataloger struct + func NewDigestsCataloger(hashes []crypto.Hash) (*DigestsCataloger, error) + func (i *DigestsCataloger) Catalog(resolver source.FileResolver) (map[source.Coordinates][]Digest, error) + type MetadataCataloger struct + func NewMetadataCataloger() *MetadataCataloger + func (i *MetadataCataloger) Catalog(resolver source.FileResolver) (map[source.Coordinates]source.FileMetadata, error) + type SearchResult struct + Classification string + Length int64 + LineNumber int64 + LineOffset int64 + SeekPosition int64 + Value string + func (s SearchResult) String() string + type SecretsCataloger struct + func NewSecretsCataloger(patterns map[string]*regexp.Regexp, revealValues bool, maxFileSize int64) (*SecretsCataloger, error) + func (i *SecretsCataloger) Catalog(resolver source.FileResolver) (map[source.Coordinates][]SearchResult, error) + type SecretsMonitor struct + SecretsDiscovered progress.Monitorable