identity

package
v0.1587.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package identity provides types for capturing and validating an identity check.

Index

Constants

This section is empty.

Variables

View Source
var StatusValues = StatusOptions{
	Unknown:              StatusUnknown,
	Confirmed:            StatusConfirmed,
	Failed:               StatusFailed,
	InsufficientEvidence: StatusInsufficientEvidence,
	Expired:              StatusExpired,
}

Functions

This section is empty.

Types

type Status added in v0.1259.0

type Status uint8
const (
	StatusUnknown              Status = iota // unknown
	StatusConfirmed                          // confirmed
	StatusFailed                             // failed
	StatusInsufficientEvidence               // insufficient-evidence
	StatusExpired                            // expired
)

func ParseStatus added in v0.1259.0

func ParseStatus(s string) (Status, error)

func (Status) IsConfirmed added in v0.1259.0

func (i Status) IsConfirmed() bool

func (Status) IsExpired added in v0.1393.0

func (i Status) IsExpired() bool

func (Status) IsFailed added in v0.1259.0

func (i Status) IsFailed() bool

func (Status) IsInsufficientEvidence added in v0.1259.0

func (i Status) IsInsufficientEvidence() bool

func (Status) IsUnknown added in v0.1259.0

func (i Status) IsUnknown() bool

func (Status) MarshalText added in v0.1259.0

func (i Status) MarshalText() ([]byte, error)

func (Status) String added in v0.1259.0

func (i Status) String() string

func (*Status) UnmarshalText added in v0.1259.0

func (i *Status) UnmarshalText(text []byte) error

type StatusOptions added in v0.1259.0

type StatusOptions struct {
	Unknown              Status
	Confirmed            Status
	Failed               Status
	InsufficientEvidence Status
	Expired              Status
}

type UserData

type UserData struct {
	Status         Status
	FirstNames     string
	LastName       string
	DateOfBirth    date.Date
	CurrentAddress place.Address
	// CheckedAt records when identity information was taken from OneLogin or
	// when the identity data was vouched for.
	CheckedAt time.Time
}

func (UserData) MatchName

func (u UserData) MatchName(firstNames, lastName string) bool

Jump to

Keyboard shortcuts

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