Documentation
¶
Index ¶
- type Scanner
- func (s Scanner) Description() string
- func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results []detectors.Result, err error)
- func (s Scanner) Keywords() []string
- func (s Scanner) Type() detector_typepb.DetectorType
- func (s Scanner) VerifyResult(ctx context.Context, result *detectors.Result)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scanner ¶
type Scanner struct {
detectors.DefaultMultiPartCredentialProvider
}
func (Scanner) Description ¶ added in v3.82.4
func (Scanner) FromData ¶
func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results []detectors.Result, err error)
FromData will find and optionally verify GitHub secrets in a given set of bytes.
func (Scanner) Keywords ¶
Keywords are used for efficiently pre-filtering chunks. Use identifiers in the secret preferably, or the provider name.
func (Scanner) Type ¶
func (s Scanner) Type() detector_typepb.DetectorType
func (Scanner) VerifyResult ¶ added in v3.97.5
VerifyResult verifies a single client ID / client secret pair. the verification cache calls it directly for results that missed the cache, which is what keeps a chunk of many pairs from re-verifying pairs whose status is already known.
Click to show internal directories.
Click to hide internal directories.