Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
Detector represents a struct to detect secret strings located in the layers of a docker image.
func NewDetector ¶
NewDetector will construct a new image layer secrets detector
func (Detector) Detect ¶
func (d Detector) Detect() (detections []common.SecretString, err error)
Detect will look for any strings that match any common.SecretStringRule in environment variables and build arguments
func (Detector) UseDefaultRules ¶
UseDefaultRules will add the default rules to this list of rules to detect. NOTE: calling this method multiple times will result in duplicate rules being added
Click to show internal directories.
Click to hide internal directories.