cryptotest

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Code generated by go generate; DO NOT EDIT. This file was generated at 2021-05-27 13:18:31.038914 -0700 PDT m=+0.005602261

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFailingEventEncryptor added in v0.10.0

func NewFailingEventEncryptor() *failingEventEncryptor

NewFailingEventEncryptor always errors on Encrypt/Decrypt

func NewRot13Cipher

func NewRot13Cipher() *rotCipher

func VerifyKeyStore

func VerifyKeyStore(t *testing.T, newStore func(t *testing.T) crypto.KeyStore)

Types

type CustomerAddedBirth

type CustomerAddedBirth struct {
	ID                  string `encrypt:"subject-id"`
	BirthMonth          int    `encrypt:"personal-data" serialized:"BirthMonthEncrypted"`
	BirthYear           int    `encrypt:"personal-data" serialized:"BirthYearEncrypted"`
	BirthMonthEncrypted string
	BirthYearEncrypted  string
}

CustomerAddedBirth is an event used for testing PII encryption of numeric fields.

func (CustomerAddedBirth) AggregateID

func (e CustomerAddedBirth) AggregateID() string

func (CustomerAddedBirth) AggregateType

func (e CustomerAddedBirth) AggregateType() string

func (*CustomerAddedBirth) Decrypt

func (e *CustomerAddedBirth) Decrypt(encryptor crypto.Encryptor) error

func (*CustomerAddedBirth) Encrypt

func (e *CustomerAddedBirth) Encrypt(encryptor crypto.Encryptor) error

func (CustomerAddedBirth) EventType

func (e CustomerAddedBirth) EventType() string

type CustomerSignedUp

type CustomerSignedUp struct {
	ID     string `encrypt:"subject-id"`
	Name   string `encrypt:"personal-data"`
	Email  string `encrypt:"personal-data"`
	Status string
}

CustomerSignedUp is an event used for testing PII encryption of string fields.

func (CustomerSignedUp) AggregateID

func (e CustomerSignedUp) AggregateID() string

func (CustomerSignedUp) AggregateType

func (e CustomerSignedUp) AggregateType() string

func (*CustomerSignedUp) Decrypt

func (e *CustomerSignedUp) Decrypt(encryptor crypto.Encryptor) error

func (*CustomerSignedUp) Encrypt

func (e *CustomerSignedUp) Encrypt(encryptor crypto.Encryptor) error

func (CustomerSignedUp) EventType

func (e CustomerSignedUp) EventType() string

Jump to

Keyboard shortcuts

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