Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeGoComment = iota TypeGoVariable TypeGoOther TypeJSONVariable TypeJSONListVal TypeYamlVariable TypeYamlListVal TypeK8sEnvVariable TypeK8sSecret TypeK8sFlag TypePropertiesComment TypePropertiesValue TypePrivateKey TypeXMLElement TypeXMLAttribute TypePHPVariable TypePHPHeredoc TypePHPConstant TypePHPComment TypePHPOther TypeBashVariable TypeGenericCodeVariable TypeGenericCodeComment TypeGenericCodeOther TypeGeneric TypeJSVariable TypeJSComment TypeJSOther TypeTSVariable TypeTSComment TypeTSOther TypeHTMLScript )
Types indicate the credential finding type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// Results is the list of findings
Results []Result
Statistics Statistics
// contains filtered or unexported fields
}
Parser searches the given files and maintains a list of hard-coded credentials stored in Results
type Result ¶
type Result struct {
File string `json:"file"`
Type int `json:"type"`
Line int `json:"line"`
Name string `json:"name"`
Value string `json:"value"`
CredentialType string `json:"credential_type,omitempty"`
}
Result is a hard-coded credential finding
type Statistics ¶ added in v1.10.1
type Statistics struct {
FilesFound int `json:"files_found"`
FilesScanned int `json:"files_scanned"`
ResultsFound int `json:"results_found"`
}
Statistics contains information about the findings
Click to show internal directories.
Click to hide internal directories.