Documentation ¶
Overview ¶
Code generated by go generate gen.go. DO NOT EDIT. This package was generated by go generate gen.go at 2020-08-09 13:02:08.842756688 +0000 UTC using data from
https://raw.githubusercontent.com/apple/password-manager-resources/main/quirks/password-rules.json
Index ¶
- func AddCustomAlias(domain, alias string) error
- func AllAliases() map[string][]string
- func AllRules() map[string]Rule
- func DeleteCustomAlias(domain string) error
- func LookupAliases(domain string) []string
- func LookupChangeURL(domain string) string
- func RemoveCustomAlias(domain, alias string) error
- type Rule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCustomAlias ¶
AddCustomAlias adds a custom alias
func DeleteCustomAlias ¶
DeleteCustomAlias removes a whole domain
func LookupAliases ¶
LookupAliases looks up known aliases for the given domain
func LookupChangeURL ¶
LookupChangeURL looks up a change URL, either directly or through one of it's know aliases.
func RemoveCustomAlias ¶
RemoveCustomAlias removes a custom alias
Types ¶
type Rule ¶
type Rule struct { Minlen int Maxlen int Required []string Allowed []string Maxconsec int Exact bool }
Rule is a password rule as defined by Apple at https://developer.apple.com/password-rules/
func LookupRule ¶
LookupRule looks up a rule either directly or through one of it's know aliases.