Documentation ¶
Index ¶
- type Scanner
- 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() detectorspb.DetectorType
- func (s Scanner) VerifyTwitterToken(ctx context.Context, client *http.Client, token string) (bool, error)
- func (s Scanner) Version() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scanner ¶
type Scanner struct { detectors.DefaultMultiPartCredentialProvider // contains filtered or unexported fields }
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 Twitter 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() detectorspb.DetectorType
func (Scanner) VerifyTwitterToken ¶
Click to show internal directories.
Click to hide internal directories.