Documentation ¶
Index ¶
- func AttorneyKey(s string) string
- func CertificateProviderKey(s string) string
- func DocumentKey(s3Key string) string
- func DonorInviteKey(organisationID, lpaID string) string
- func DonorKey(s string) string
- func DonorShareKey(code string) string
- func EvidenceReceivedKey() string
- func LpaKey(s string) string
- func MemberIDKey(memberID string) string
- func MemberInviteKey(email string) string
- func MemberKey(sessionID string) string
- func MetadataKey(s string) string
- func OrganisationKey(organisationID string) string
- func ShareCodeKey(actorType actor.Type, shareCode string) (pk string, err error)
- func SubKey(s string) string
- type Client
- func (c *Client) AllByKeys(ctx context.Context, keys []Key) ([]map[string]types.AttributeValue, error)
- func (c *Client) AllByPartialSK(ctx context.Context, pk, partialSk string, v interface{}) error
- func (c *Client) AllBySK(ctx context.Context, sk string, v interface{}) error
- func (c *Client) AllKeysByPK(ctx context.Context, pk string) ([]Key, error)
- func (c *Client) BatchPut(ctx context.Context, values []interface{}) error
- func (c *Client) Create(ctx context.Context, v interface{}) error
- func (c *Client) DeleteKeys(ctx context.Context, keys []Key) error
- func (c *Client) DeleteOne(ctx context.Context, pk, sk string) error
- func (c *Client) LatestForActor(ctx context.Context, sk string, v interface{}) error
- func (c *Client) One(ctx context.Context, pk, sk string, v interface{}) error
- func (c *Client) OneByPK(ctx context.Context, pk string, v interface{}) error
- func (c *Client) OneByPartialSK(ctx context.Context, pk, partialSK string, v interface{}) error
- func (c *Client) OneBySK(ctx context.Context, sk string, v interface{}) error
- func (c *Client) OneByUID(ctx context.Context, uid string, v interface{}) error
- func (c *Client) Put(ctx context.Context, v interface{}) error
- func (c *Client) Update(ctx context.Context, pk, sk string, values map[string]types.AttributeValue, ...) error
- func (c *Client) UpdateReturn(ctx context.Context, pk, sk string, values map[string]types.AttributeValue, ...) (map[string]types.AttributeValue, error)
- type ConditionalCheckFailedError
- type Key
- type Logger
- type MultipleResultsError
- type NotFoundError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttorneyKey ¶ added in v0.1116.0
AttorneyKey is used as the SK (with LpaKey as PK) for attorney entered information.
func CertificateProviderKey ¶ added in v0.1116.0
CertificateProviderKey is used as the SK (with LpaKey as PK) for certificate provider entered information.
func DocumentKey ¶ added in v0.1116.0
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
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
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
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 MemberIDKey ¶ added in v0.1116.0
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
MemberInviteKey is used as the SK (with OrganisationKey as PK) for a member invite.
func MemberKey ¶ added in v0.1116.0
MemberKey is used as the SK (with OrganisationKey as PK) for a member of an organisation.
func MetadataKey ¶ added in v0.1116.0
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
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
ShareCodeKey is used as the PK for sharing an Lpa with another actor.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AllByPartialSK ¶ added in v0.1025.0
func (*Client) AllKeysByPK ¶ added in v0.1025.0
func (*Client) DeleteKeys ¶ added in v0.785.0
func (*Client) LatestForActor ¶ added in v0.712.0
func (*Client) OneByPartialSK ¶ added in v0.1025.0
func (*Client) UpdateReturn ¶ added in v0.1045.0
type ConditionalCheckFailedError ¶ added in v0.794.0
type ConditionalCheckFailedError struct{}
func (ConditionalCheckFailedError) Error ¶ added in v0.794.0
func (c ConditionalCheckFailedError) Error() string
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