Skip to content

Commit 60b0248

Browse files
auto commit
1 parent 83d376b commit 60b0248

File tree

1 file changed

+37
-6
lines changed

1 file changed

+37
-6
lines changed

Examples/runtimes/go/main.go

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,41 @@ import (
1111
)
1212

1313
func main() {
14-
keyring.AwsKmsKeyringExample(utils.KmsKeyID(), utils.DdbTableName())
15-
keyring.RawAesExample(utils.DdbTableName(), utils.KeyNamespace(), utils.KeyName(), utils.GenerateAes256KeyBytes())
16-
itemencryptor.ItemEncryptDecryptExample(utils.KmsKeyID(), utils.DdbTableName())
17-
misc.GetEncryptedDataKeyDescriptionExample(utils.KmsKeyID(), utils.DdbTableName())
18-
misc.MultiPutGetExample(utils.KmsKeyID(), utils.DdbTableName())
19-
misc.CreateBranchKeyIDExample(utils.TestKeystoreName(), utils.TestLogicalKeystoreName(), utils.TestKeystoreKmsKeyId())
14+
// misc examples
15+
misc.GetEncryptedDataKeyDescriptionExample(
16+
utils.KmsKeyID(),
17+
utils.DdbTableName())
18+
misc.MultiPutGetExample(
19+
utils.KmsKeyID(),
20+
utils.DdbTableName())
21+
branchKey1 := misc.CreateBranchKeyIDExample(
22+
utils.TestKeystoreName(),
23+
utils.TestLogicalKeystoreName(),
24+
utils.TestKeystoreKmsKeyId())
25+
branchKey2 := misc.CreateBranchKeyIDExample(
26+
utils.TestKeystoreName(),
27+
utils.TestLogicalKeystoreName(),
28+
utils.TestKeystoreKmsKeyId())
29+
30+
// keyring examples
31+
keyring.AwsKmsKeyringExample(
32+
utils.KmsKeyID(),
33+
utils.DdbTableName())
34+
keyring.RawAesExample(
35+
utils.DdbTableName(),
36+
utils.KeyNamespace(),
37+
utils.KeyName(),
38+
utils.GenerateAes256KeyBytes())
39+
keyring.HierarchicalKeyringExample(
40+
utils.DdbTableName(),
41+
branchKey1,
42+
branchKey2,
43+
utils.TestKeystoreName(),
44+
utils.TestLogicalKeystoreName(),
45+
utils.TestKeystoreKmsKeyId())
46+
47+
// item encryptor example
48+
itemencryptor.ItemEncryptDecryptExample(
49+
utils.KmsKeyID(),
50+
utils.DdbTableName())
2051
}

0 commit comments

Comments
 (0)