pwrules

package
v1.15.13 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 8 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 2024-04-06 17:23:57.379511167 +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 AllAliases

func AllAliases(ctx context.Context) map[string][]string

AllAliases returns all aliases.

func AllRules

func AllRules() map[string]Rule

AllRules returns all rules.

func LookupAliases

func LookupAliases(ctx context.Context, domain string) []string

LookupAliases looks up known aliases for the given domain.

func LookupChangeURL

func LookupChangeURL(ctx context.Context, domain string) string

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

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(ctx context.Context, 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