accesscodedata

package
v0.1868.126 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate() (PlainText, Hashed)

Types

type ActorAccess added in v0.1868.52

type ActorAccess struct {
	PK           dynamo.ActorAccessKeyType
	SK           dynamo.MetadataKeyType
	ShareKey     dynamo.ShareKeyType
	ShareSortKey dynamo.ShareSortKeyType
}

type Hashed

type Hashed [32]byte

func HashedFromQuery

func HashedFromQuery(q url.Values) Hashed

func HashedFromString

func HashedFromString(plain string) Hashed

func (Hashed) Query

func (h Hashed) Query() url.Values

func (Hashed) String

func (h Hashed) String() string
type Link struct {
	PK        dynamo.ShareKeyType
	SK        dynamo.ShareSortKeyType
	UpdatedAt time.Time

	// LpaKey is the key for the LPA that will be accessed
	LpaKey dynamo.LpaKeyType
	// LpaOwnerKey is the key for the owner of the LPA that will be accessed
	LpaOwnerKey dynamo.LpaOwnerKeyType
	// LpaUID is the UID for the LPA that will be accessed
	LpaUID string `dynamodbav:",omitempty"`
	// ActorUID is the UID of the actor being given access to the LPA
	ActorUID actoruid.UID
	// IsReplacementAttorney is true when the actor being given access is being
	// appointed as a replacement (attorney or trust corporation)
	IsReplacementAttorney bool
	// IsTrustCorporation is true when the actor being given access is a trust
	// corporation
	IsTrustCorporation bool

	// InviteSentTo is the email address the supporter sent the invite to
	InviteSentTo string
	// LpaLinkedAt is the time the donor entered the access code
	LpaLinkedAt time.Time
	// LpaLinkedTo is set to the email address the donor used to sign-in when
	// using the code
	LpaLinkedTo string
}

A Link provides the details of the LPA that will be accessed by a share code.

func (Link) HasExpired

func (l Link) HasExpired(now time.Time) bool

type PlainText

type PlainText string

func (PlainText) GoString

func (PlainText) GoString() string

func (PlainText) LogValue

func (PlainText) LogValue() slog.Value

func (PlainText) Plain

func (p PlainText) Plain() string

func (PlainText) String

func (PlainText) String() string

Jump to

Keyboard shortcuts

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