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) IsFalsePositive(_ detectors.Result) (bool, string)
- func (s Scanner) Keywords() []string
- func (Scanner) MaxSecretSize() int64
- func (Scanner) StartOffset() int64
- func (s Scanner) Type() detectorspb.DetectorType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scanner ¶
type Scanner struct{}
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 GCP secrets in a given set of bytes.
func (Scanner) IsFalsePositive ¶ added in v3.75.0
func (Scanner) Keywords ¶
Keywords are used for efficiently pre-filtering chunks. Use identifiers in the secret preferably, or the provider name.
func (Scanner) MaxSecretSize ¶ added in v3.78.1
MaxSecretSize returns the maximum size of a secret that this detector can find.
func (Scanner) StartOffset ¶ added in v3.78.1
StartOffset returns the start offset for the secret this detector finds.
func (Scanner) Type ¶ added in v3.27.0
func (s Scanner) Type() detectorspb.DetectorType
Click to show internal directories.
Click to hide internal directories.