dynamo

package
v0.1118.0-MLPAB1223sig... Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttorneyKey added in v0.1116.0

func AttorneyKey(s string) string

AttorneyKey is used as the SK (with LpaKey as PK) for attorney entered information.

func CertificateProviderKey added in v0.1116.0

func CertificateProviderKey(s string) string

CertificateProviderKey is used as the SK (with LpaKey as PK) for certificate provider entered information.

func DocumentKey added in v0.1116.0

func DocumentKey(s3Key string) string

DocumentKey is used as the SK (with LpaKey as PK) for any documents uploaded as evidence for reduced fees.

func DonorInviteKey added in v0.1116.0

func DonorInviteKey(organisationID, lpaID string) string

DonorInviteKey is used as the SK (with DonorShareKey as PK) for an invitation to a donor to link an Lpa being created by a member of an organisation.

func DonorKey added in v0.1116.0

func DonorKey(s string) string

DonorKey is used as the SK (with LpaKey as PK) for donor entered information. It is set to PAPER when the donor information has been provided from paper forms.

func DonorShareKey added in v0.1116.0

func DonorShareKey(code string) string

DonorShareKey is used as the PK for sharing an Lpa with a donor.

func EvidenceReceivedKey added in v0.1116.0

func EvidenceReceivedKey() string

EvidenceReceivedKey is used as the SK (with LpaKey as PK) to show that paper evidence has been submitted for an Lpa.

func LpaKey added in v0.1116.0

func LpaKey(s string) string

LpaKey is used as the PK for all Lpa related information.

func MemberIDKey added in v0.1116.0

func MemberIDKey(memberID string) string

MemberIDKey is used as the SK (with OrganisationKey as PK) to allow retrieving a member using their ID instead of their OneLogin sub.

func MemberInviteKey added in v0.1116.0

func MemberInviteKey(email string) string

MemberInviteKey is used as the SK (with OrganisationKey as PK) for a member invite.

func MemberKey added in v0.1116.0

func MemberKey(sessionID string) string

MemberKey is used as the SK (with OrganisationKey as PK) for a member of an organisation.

func MetadataKey added in v0.1116.0

func MetadataKey(s string) string

MetadataKey is used as the SK when the value of the SK is not used for any purpose.

func OrganisationKey added in v0.1116.0

func OrganisationKey(organisationID string) string

OrganisationKey is used as the PK to group organisation data; or as the SK (with OrganisationKey as PK) for the organisation itself; or as the SK (with LpaKey as PK) for the donor information entered by a member of an organisation.

func ShareCodeKey added in v0.1116.0

func ShareCodeKey(actorType actor.Type, shareCode string) (pk string, err error)

ShareCodeKey is used as the PK for sharing an Lpa with another actor.

func SubKey added in v0.1116.0

func SubKey(s string) string

SubKey is used as the SK (with LpaKey as PK) to allow queries on a OneLogin sub against all Lpas an actor may have provided information on.

Types

type Client

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

func NewClient

func NewClient(cfg aws.Config, tableName string) (*Client, error)

func (*Client) AllByKeys added in v0.712.0

func (c *Client) AllByKeys(ctx context.Context, keys []Key) ([]map[string]types.AttributeValue, error)

func (*Client) AllByPartialSK added in v0.1025.0

func (c *Client) AllByPartialSK(ctx context.Context, pk, partialSk string, v interface{}) error

func (*Client) AllBySK added in v0.1023.0

func (c *Client) AllBySK(ctx context.Context, sk string, v interface{}) error

func (*Client) AllKeysByPK added in v0.1025.0

func (c *Client) AllKeysByPK(ctx context.Context, pk string) ([]Key, error)

func (*Client) BatchPut added in v0.794.0

func (c *Client) BatchPut(ctx context.Context, values []interface{}) error

func (*Client) Create

func (c *Client) Create(ctx context.Context, v interface{}) error

func (*Client) DeleteKeys added in v0.785.0

func (c *Client) DeleteKeys(ctx context.Context, keys []Key) error

func (*Client) DeleteOne added in v0.794.0

func (c *Client) DeleteOne(ctx context.Context, pk, sk string) error

func (*Client) LatestForActor added in v0.712.0

func (c *Client) LatestForActor(ctx context.Context, sk string, v interface{}) error

func (*Client) One added in v0.712.0

func (c *Client) One(ctx context.Context, pk, sk string, v interface{}) error

func (*Client) OneByPK added in v0.1089.0

func (c *Client) OneByPK(ctx context.Context, pk string, v interface{}) error

func (*Client) OneByPartialSK added in v0.1025.0

func (c *Client) OneByPartialSK(ctx context.Context, pk, partialSK string, v interface{}) error

func (*Client) OneBySK added in v0.1023.0

func (c *Client) OneBySK(ctx context.Context, sk string, v interface{}) error

func (*Client) OneByUID added in v0.712.0

func (c *Client) OneByUID(ctx context.Context, uid string, v interface{}) error

func (*Client) Put

func (c *Client) Put(ctx context.Context, v interface{}) error

func (*Client) Update added in v0.794.0

func (c *Client) Update(ctx context.Context, pk, sk string, values map[string]types.AttributeValue, expression string) error

func (*Client) UpdateReturn added in v0.1045.0

func (c *Client) UpdateReturn(ctx context.Context, pk, sk string, values map[string]types.AttributeValue, expression string) (map[string]types.AttributeValue, error)

type ConditionalCheckFailedError added in v0.794.0

type ConditionalCheckFailedError struct{}

func (ConditionalCheckFailedError) Error added in v0.794.0

type Key

type Key struct {
	PK string
	SK string
}

type Logger added in v0.794.0

type Logger interface {
	Print(v ...interface{})
}

type MultipleResultsError

type MultipleResultsError struct{}

func (MultipleResultsError) Error

func (n MultipleResultsError) Error() string

type NotFoundError

type NotFoundError struct{}

func (NotFoundError) Error

func (n NotFoundError) Error() string

Jump to

Keyboard shortcuts

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