Documentation ¶
Overview ¶
Package lpastore provides a client for the LPA store.
Index ¶
- Variables
- func LpaFromDonorProvided(l *donordata.Provided) *lpadata.Lpa
- type Client
- func (c *Client) CheckHealth(ctx context.Context) error
- func (c *Client) Lpa(ctx context.Context, lpaUID string) (*lpadata.Lpa, error)
- func (c *Client) Lpas(ctx context.Context, lpaUIDs []string) ([]*lpadata.Lpa, error)
- func (c *Client) SendAttorney(ctx context.Context, lpa *lpadata.Lpa, attorney *attorneydata.Provided) error
- func (c *Client) SendAttorneyOptOut(ctx context.Context, lpaUID string, attorneyUID actoruid.UID, ...) error
- func (c *Client) SendCertificateProvider(ctx context.Context, certificateProvider *certificateproviderdata.Provided, ...) error
- func (c *Client) SendCertificateProviderConfirmIdentity(ctx context.Context, lpaUID string, ...) error
- func (c *Client) SendCertificateProviderOptOut(ctx context.Context, lpaUID string, certificateProviderUid actoruid.UID) error
- func (c *Client) SendChangeStatus(ctx context.Context, lpaUID string, oldStatus, newStatus lpadata.Status) error
- func (c *Client) SendDonorConfirmIdentity(ctx context.Context, donor *donordata.Provided) error
- func (c *Client) SendDonorWithdrawLPA(ctx context.Context, lpaUID string) error
- func (c *Client) SendLpa(ctx context.Context, uid string, body CreateLpa) error
- func (c *Client) SendRegister(ctx context.Context, lpaUID string) error
- func (c *Client) SendStatutoryWaitingPeriod(ctx context.Context, lpaUID string) error
- type CreateLpa
- type Doer
- type DonorStore
- type LpaClient
- type ResolvingService
- type SecretsClient
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("lpa not found in lpa-store")
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(baseURL string, secretsClient SecretsClient, secretARN string, lambdaClient Doer) *Client
func (*Client) SendAttorney ¶ added in v0.926.0
func (*Client) SendAttorneyOptOut ¶ added in v0.1363.0
func (*Client) SendCertificateProvider ¶ added in v0.922.0
func (*Client) SendCertificateProviderConfirmIdentity ¶ added in v0.1247.0
func (*Client) SendCertificateProviderOptOut ¶ added in v0.1181.0
func (*Client) SendChangeStatus ¶ added in v0.1599.0
func (*Client) SendDonorConfirmIdentity ¶ added in v0.1247.0
func (*Client) SendDonorWithdrawLPA ¶ added in v0.1355.0
func (*Client) SendRegister ¶ added in v0.1145.0
type CreateLpa ¶ added in v0.1603.0
type CreateLpa struct { LpaType lpadata.LpaType `json:"lpaType"` Channel lpadata.Channel `json:"channel"` Donor lpadata.Donor `json:"donor"` Attorneys []lpadata.Attorney `json:"attorneys"` TrustCorporations []lpadata.TrustCorporation `json:"trustCorporations,omitempty"` CertificateProvider lpadata.CertificateProvider `json:"certificateProvider"` PeopleToNotify []lpadata.PersonToNotify `json:"peopleToNotify,omitempty"` IndependentWitness *lpadata.IndependentWitness `json:"independentWitness,omitempty"` AuthorisedSignatory *lpadata.AuthorisedSignatory `json:"authorisedSignatory,omitempty"` HowAttorneysMakeDecisions lpadata.AttorneysAct `json:"howAttorneysMakeDecisions,omitempty"` HowAttorneysMakeDecisionsDetails string `json:"howAttorneysMakeDecisionsDetails,omitempty"` HowReplacementAttorneysMakeDecisions lpadata.AttorneysAct `json:"howReplacementAttorneysMakeDecisions,omitempty"` HowReplacementAttorneysMakeDecisionsDetails string `json:"howReplacementAttorneysMakeDecisionsDetails,omitempty"` HowReplacementAttorneysStepIn lpadata.ReplacementAttorneysStepIn `json:"howReplacementAttorneysStepIn,omitempty"` HowReplacementAttorneysStepInDetails string `json:"howReplacementAttorneysStepInDetails,omitempty"` Restrictions string `json:"restrictionsAndConditions"` WhenTheLpaCanBeUsed lpadata.CanBeUsedWhen `json:"whenTheLpaCanBeUsed,omitempty"` LifeSustainingTreatmentOption lpadata.LifeSustainingTreatment `json:"lifeSustainingTreatmentOption,omitempty"` SignedAt time.Time `json:"signedAt"` WitnessedByCertificateProviderAt time.Time `json:"witnessedByCertificateProviderAt"` WitnessedByIndependentWitnessAt *time.Time `json:"witnessedByIndependentWitnessAt,omitempty"` CertificateProviderNotRelatedConfirmedAt *time.Time `json:"certificateProviderNotRelatedConfirmedAt,omitempty"` }
func CreateLpaFromDonorProvided ¶ added in v0.1603.0
type DonorStore ¶ added in v0.1116.0
type ResolvingService ¶ added in v0.1116.0
type ResolvingService struct {
// contains filtered or unexported fields
}
A ResolvingService wraps a Client so that an Lpa can be retrieved without passing its UID.
func NewResolvingService ¶ added in v0.1116.0
func NewResolvingService(donorStore DonorStore, client LpaClient) *ResolvingService
func (*ResolvingService) ResolveList ¶ added in v0.1150.0
Click to show internal directories.
Click to hide internal directories.