Skip to content

Commit 07bdbe7

Browse files
chore(go): add Searchable Encryption Examples (#1951)
1 parent 4e295f9 commit 07bdbe7

File tree

6 files changed

+1675
-14
lines changed

6 files changed

+1675
-14
lines changed

Examples/runtimes/go/main.go

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"github.com/aws/aws-database-encryption-sdk-dynamodb/examples/itemencryptor"
88
"github.com/aws/aws-database-encryption-sdk-dynamodb/examples/keyring"
99
"github.com/aws/aws-database-encryption-sdk-dynamodb/examples/misc"
10+
"github.com/aws/aws-database-encryption-sdk-dynamodb/examples/searchableencryption"
1011
"github.com/aws/aws-database-encryption-sdk-dynamodb/examples/utils"
1112
)
1213

@@ -61,4 +62,26 @@ func main() {
6162
itemencryptor.ItemEncryptDecryptExample(
6263
utils.KmsKeyID(),
6364
utils.DdbTableName())
65+
66+
// searchable encryption example
67+
searchableencryption.BasicSearchableEncryptionExample(
68+
utils.UnitInspectionTestDdbTableName(),
69+
branchKey1,
70+
utils.TestKeystoreKmsKeyId(),
71+
utils.TestKeystoreName())
72+
searchableencryption.BeaconStylesSearchableEncryptionExample(
73+
utils.UnitInspectionTestDdbTableName(),
74+
branchKey1,
75+
utils.TestKeystoreKmsKeyId(),
76+
utils.TestKeystoreName())
77+
searchableencryption.CompoundBeaconSearchableEncryptionExample(
78+
utils.UnitInspectionTestDdbTableName(),
79+
branchKey2,
80+
utils.TestKeystoreKmsKeyId(),
81+
utils.TestKeystoreName())
82+
searchableencryption.VirtualBeaconSearchableEncryptionExample(
83+
utils.SimpleBeaconTestDdbTableName(),
84+
branchKey2,
85+
utils.TestKeystoreKmsKeyId(),
86+
utils.TestKeystoreName())
6487
}

0 commit comments

Comments
 (0)