pwrules

package
v1.12.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 10 Imported by: 1

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/websites-with-shared-credential-backends.json

https://raw.githubusercontent.com/apple/password-manager-resources/main/quirks/change-password-URLs.json

https://raw.githubusercontent.com/apple/password-manager-resources/main/quirks/password-rules.json

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCustomAlias

func AddCustomAlias(domain, alias string) error

AddCustomAlias adds a custom alias

func AllAliases

func AllAliases() map[string][]string

AllAliases returns all aliases

func AllRules

func AllRules() map[string]Rule

AllRules returns all rules

func DeleteCustomAlias

func DeleteCustomAlias(domain string) error

DeleteCustomAlias removes a whole domain

func LookupAliases

func LookupAliases(domain string) []string

LookupAliases looks up known aliases for the given domain

func LookupChangeURL

func LookupChangeURL(domain string) string

LookupChangeURL looks up a change URL, either directly or through one of it's know aliases.

func RemoveCustomAlias

func RemoveCustomAlias(domain, alias string) error

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

func LookupRule(domain string) (Rule, bool)

LookupRule looks up a rule either directly or through one of it's know aliases.

func ParseRule

func ParseRule(in string) Rule

ParseRule parses a password rule. NOTE: This is not a complete parser.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL