stripe

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package stripe provides detectors for Stripe secret types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LiveKey

type LiveKey struct{}

LiveKey detects Stripe live API keys (secret and restricted).

func (*LiveKey) Description

func (d *LiveKey) Description() string

Description returns a human-readable description of the Stripe live key detector.

func (*LiveKey) ID

func (d *LiveKey) ID() string

ID returns the unique identifier of the Stripe live key detector.

func (*LiveKey) Keywords

func (d *LiveKey) Keywords() []string

Keywords returns the Aho-Corasick pre-filter keywords for Stripe live key detection.

func (*LiveKey) Scan

func (d *LiveKey) Scan(_ context.Context, data []byte) []detector.RawFinding

Scan scans the given data for Stripe live API key patterns.

func (*LiveKey) Severity

func (d *LiveKey) Severity() finding.Severity

Severity returns the default severity level for Stripe live key findings.

type TestKey

type TestKey struct{}

TestKey detects Stripe test API keys (secret and restricted).

func (*TestKey) Description

func (d *TestKey) Description() string

Description returns a human-readable description of the Stripe test key detector.

func (*TestKey) ID

func (d *TestKey) ID() string

ID returns the unique identifier of the Stripe test key detector.

func (*TestKey) Keywords

func (d *TestKey) Keywords() []string

Keywords returns the Aho-Corasick pre-filter keywords for Stripe test key detection.

func (*TestKey) Scan

func (d *TestKey) Scan(_ context.Context, data []byte) []detector.RawFinding

Scan scans the given data for Stripe test API key patterns.

func (*TestKey) Severity

func (d *TestKey) Severity() finding.Severity

Severity returns the default severity level for Stripe test key findings.

Jump to

Keyboard shortcuts

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