actor

package
v0.1553.0-icannotspell.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package actor provides types that are useful for actors on an LPA.

Index

Constants

This section is empty.

Variables

View Source
var TypeValues = TypeOptions{
	None:                        TypeNone,
	Donor:                       TypeDonor,
	Attorney:                    TypeAttorney,
	ReplacementAttorney:         TypeReplacementAttorney,
	CertificateProvider:         TypeCertificateProvider,
	PersonToNotify:              TypePersonToNotify,
	AuthorisedSignatory:         TypeAuthorisedSignatory,
	IndependentWitness:          TypeIndependentWitness,
	TrustCorporation:            TypeTrustCorporation,
	ReplacementTrustCorporation: TypeReplacementTrustCorporation,
	Voucher:                     TypeVoucher,
}

Functions

This section is empty.

Types

type Actor added in v0.1386.0

type Actor struct {
	Type       Type
	UID        actoruid.UID
	FirstNames string
	LastName   string
}

func (Actor) FullName added in v0.1437.0

func (a Actor) FullName() string

type SameNameWarning

type SameNameWarning struct {
	// contains filtered or unexported fields
}

func NewSameNameWarning

func NewSameNameWarning(actor, matches Type, firstNames, lastName string) *SameNameWarning

func (*SameNameWarning) Format

func (*SameNameWarning) String

func (w *SameNameWarning) String() string

type Type

type Type uint8
const (
	TypeNone                        Type = iota
	TypeDonor                            // donor
	TypeAttorney                         // attorney
	TypeReplacementAttorney              // replacementAttorney
	TypeCertificateProvider              // certificateProvider
	TypePersonToNotify                   // personToNotify
	TypeAuthorisedSignatory              // signatory
	TypeIndependentWitness               // independentWitness
	TypeTrustCorporation                 // trustCorporation
	TypeReplacementTrustCorporation      // replacementTrustCorporation
	TypeVoucher                          // voucher
)

func ParseType added in v0.1368.0

func ParseType(s string) (Type, error)

func (Type) IsAttorney added in v0.1368.0

func (i Type) IsAttorney() bool

func (Type) IsAuthorisedSignatory added in v0.1368.0

func (i Type) IsAuthorisedSignatory() bool

func (Type) IsCertificateProvider added in v0.1368.0

func (i Type) IsCertificateProvider() bool

func (Type) IsDonor added in v0.1368.0

func (i Type) IsDonor() bool

func (Type) IsIndependentWitness added in v0.1368.0

func (i Type) IsIndependentWitness() bool

func (Type) IsNone added in v0.1368.0

func (i Type) IsNone() bool

func (Type) IsPersonToNotify added in v0.1368.0

func (i Type) IsPersonToNotify() bool

func (Type) IsReplacementAttorney added in v0.1368.0

func (i Type) IsReplacementAttorney() bool

func (Type) IsReplacementTrustCorporation added in v0.1368.0

func (i Type) IsReplacementTrustCorporation() bool

func (Type) IsTrustCorporation added in v0.1368.0

func (i Type) IsTrustCorporation() bool

func (Type) IsVoucher added in v0.1367.0

func (i Type) IsVoucher() bool

func (Type) MarshalText added in v0.1368.0

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

func (Type) String

func (i Type) String() string

func (*Type) UnmarshalText added in v0.1368.0

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

type TypeOptions added in v0.1368.0

type TypeOptions struct {
	None                        Type
	Donor                       Type
	Attorney                    Type
	ReplacementAttorney         Type
	CertificateProvider         Type
	PersonToNotify              Type
	AuthorisedSignatory         Type
	IndependentWitness          Type
	TrustCorporation            Type
	ReplacementTrustCorporation Type
	Voucher                     Type
}

Directories

Path Synopsis
Package actoruid provides an identifier for the various actors on an LPA.
Package actoruid provides an identifier for the various actors on an LPA.

Jump to

Keyboard shortcuts

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