gitlabv2

package
v3.31.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithVerifierURLs added in v3.31.3

func WithVerifierURLs(urls []string, includeDefault bool) func(*Scanner)

WithVerifierURLs adds the given URLs to the list of URLs to check for verification of secrets.

Types

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

func New added in v3.31.3

func New(opts ...func(*Scanner)) *Scanner

New creates a new Scanner with the given options.

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 Gitlab secrets in a given set of bytes.

func (Scanner) Keywords

func (s Scanner) Keywords() []string

Keywords are used for efficiently pre-filtering chunks. Use identifiers in the secret preferably, or the provider name.

func (Scanner) Type added in v3.27.0

func (s Scanner) Type() detectorspb.DetectorType

func (*Scanner) Version added in v3.28.7

func (*Scanner) Version() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL