Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomConfig ¶
type CustomConfig struct {
CustomRules []*CustomRule `json:"rules"`
}
type CustomPolicyDetector ¶
type CustomRule ¶
type Policy ¶
type Policy struct { Id string `json:"id"` Name string `json:"name"` CreatedAt int64 `json:"createdAt"` UpdatedAt int64 `json:"updatedAt"` Tags []string `json:"tags"` Config *Config `json:"config"` RegexConfig *RegexConfig `json:"regexConfig"` CustomConfig *CustomConfig `json:"customConfig"` }
type RegexConfig ¶
type RegexConfig struct {
RegularExpressionRules []*RegularExpressionRule `json:"rules"`
}
type RegularExpressionRule ¶
type Rule ¶
type Rule string
const ( Address Rule = "address" Age Rule = "age" All Rule = "all" AwsAccessKey Rule = "aws_access_key" AwsSecretKey Rule = "aws_secret_key" BankAccountNumber Rule = "bank_account_number" BankRouting Rule = "bank_routing" CaHealthNumber Rule = "ca_health_number" CaSocialInsuranceNumber Rule = "ca_social_insurance_number" CreditDebitCvv Rule = "credit_debit_cvv" CreditDebitExpiry Rule = "credit_debit_expiry" CreditDebitNumber Rule = "credit_debit_number" DateTime Rule = "date_time" DriverId Rule = "driver_id" Email Rule = "email" InAadhaar Rule = "in_aadhaar" InNrega Rule = "in_nrega" InPermanentAccountNumber Rule = "in_permanent_account_number" InVoterNumber Rule = "in_voter_number" InternationalBankAccountNumber Rule = "international_bank_account_number" IpAddress Rule = "ip_address" LicensePlate Rule = "license_plate" MacAddress Rule = "mac_address" Name Rule = "name" PassportNumber Rule = "passport_number" Password Rule = "password" Phone Rule = "phone" Pin Rule = "pin" Ssn Rule = "ssn" SwiftCode Rule = "swift_code" UkNationalHealthServiceNumber Rule = "uk_national_health_service_number" UkNationalInsuranceNumber Rule = "uk_national_insurance_number" UkUniqueTaxpayerReferenceNumber Rule = "uk_unique_taxpayer_reference_number" Url Rule = "url" UsIndividualTaxIdentificationNumber Rule = "us_individual_tax_identification_number" Username Rule = "username" VehicleIdentificationNumber Rule = "vehicle_identification_number" )
type ScanResult ¶
type UpdatePolicy ¶
type UpdatePolicy struct { Name string `json:"name"` UpdatedAt int64 `json:"updatedAt"` Tags []string `json:"tags"` Config *Config `json:"config"` RegexConfig *RegexConfig `json:"regexConfig"` CustomConfig *CustomConfig `json:"customConfig"` }
func (*UpdatePolicy) Validate ¶
func (p *UpdatePolicy) Validate() error
Click to show internal directories.
Click to hide internal directories.