Documentation ¶
Index ¶
- Constants
- func InjectSecrets(generators *SecretGeneratorCollection, data interface{}) interface{}
- func UpdateSecretsFromGitLeaks() ([]byte, error)
- type GitLeaksSecretRule
- type GitLeaksSecretRules
- type SecretGenerator
- type SecretGeneratorCollection
- type SecretGeneratorCollectionInput
- type SecretGeneratorRule
- type SecretGeneratorRules
Constants ¶
View Source
const SECRET_DEFINITION_URLS = "https://raw.githubusercontent.com/gitleaks/gitleaks/master/config/gitleaks.toml"
Variables ¶
This section is empty.
Functions ¶
func InjectSecrets ¶
func InjectSecrets(generators *SecretGeneratorCollection, data interface{}) interface{}
Types ¶
type GitLeaksSecretRule ¶
type GitLeaksSecretRules ¶
type GitLeaksSecretRules struct {
Rules []GitLeaksSecretRule `toml:"rules"`
}
func GetSecretsFromGitLeaks ¶
func GetSecretsFromGitLeaks() (*GitLeaksSecretRules, error)
type SecretGenerator ¶
type SecretGenerator struct { Name string NameGenerator regen.Generator SecretGenerator regen.Generator }
func GetGenerators ¶
func GetGenerators() []*SecretGenerator
func NewGenerator ¶
func NewGenerator(rule SecretGeneratorRule) *SecretGenerator
type SecretGeneratorCollection ¶
type SecretGeneratorCollection struct { Generators []*SecretGenerator // contains filtered or unexported fields }
func NewSecretGeneratorCollection ¶
func NewSecretGeneratorCollection(telemetry *metrics.Telemetry) *SecretGeneratorCollection
func (*SecretGeneratorCollection) GetRandomGenerator ¶
func (c *SecretGeneratorCollection) GetRandomGenerator() *SecretGenerator
type SecretGeneratorCollectionInput ¶
type SecretGeneratorCollectionInput struct {
OnGenerate func()
}
type SecretGeneratorRule ¶
type SecretGeneratorRules ¶
type SecretGeneratorRules = map[string]SecretGeneratorRule
func GetRules ¶
func GetRules() *SecretGeneratorRules
Click to show internal directories.
Click to hide internal directories.