Documentation ¶
Index ¶
- func GetDefaultIgnoreFileNames() []string
- type BatchItem
- type FileScanner
- type GitResult
- type GitScan
- type Option
- func WithCallbackResult(f func(ctx context.Context, scanner *GitScan, result *GitResult) error) Option
- func WithCredentials(creds transport.AuthMethod) Option
- func WithFileScannerOptions(opts ...file.Option) Option
- func WithIgnoreFileNames(useDefault bool, names ...string) Option
- func WithProbability(probability float64) Option
- func WithSkipCommitFunc(f func(batch []BatchItem) ([]BatchItem, error)) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultIgnoreFileNames ¶
func GetDefaultIgnoreFileNames() []string
Types ¶
type FileScanner ¶
type GitResult ¶
type GitResult struct { Commit *object.Commit FileName string Results []file.ExtractResult }
type GitScan ¶
type GitScan struct {
// contains filtered or unexported fields
}
func NewFromRepo ¶
func NewFromRepo(repository *gitgo.Repository, fileScanner FileScanner, options ...Option) (*GitScan, error)
type Option ¶
type Option func(*options) error
func WithCallbackResult ¶
func WithCredentials ¶
func WithCredentials(creds transport.AuthMethod) Option
func WithFileScannerOptions ¶
func WithIgnoreFileNames ¶
func WithProbability ¶
Click to show internal directories.
Click to hide internal directories.