cryptotest

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Code generated by go generate; DO NOT EDIT. This file was generated at 2021-01-20 15:37:16.279422 -0800 PST m=+0.003476749

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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