Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = Options{ Algorithms: []intoto.HashAlgorithm{ intoto.AlgorithmSHA1, intoto.AlgorithmSHA256, }, Processors: []string{"hash"}, }
Functions ¶
This section is empty.
Types ¶
type Function ¶
func WithAlgorithms ¶
func WithAlgorithms(algos []intoto.HashAlgorithm) Function
func WithFileProcessor ¶
func WithFilesystem ¶
func WithIgnorePatterns ¶
func WithNoGitIgnore ¶
func WithNoGitIgnore() Function
type Options ¶
type Options struct { Filesystem fs.FS // Filesystem to index NoGitignore bool // Do not attempt to read the gitignore file IgnorePatterns []string // Patterns to ignore when scanning file Algorithms []intoto.HashAlgorithm // Algorithms to use when hashing Processors []string // Identifiers of file processors }
Click to show internal directories.
Click to hide internal directories.