Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/armanshan12/rkms
/ functions
Functions
46 in github.com/armanshan12/rkms
⨍
Functions
46
◇
Types & classes
17
↓ 12 callers
Method
GetPlaintextDataKey
GetPlaintextDataKey retrieves the key assosicated with the given id. If a key is not found in the store, a key is generated for the given id.
rkms.go:80
↓ 11 callers
Function
beforeTest
()
rkms_test.go:127
↓ 11 callers
Function
getRKMS
getRKMS returns an RKMS object with mock KMS clients. The clients will be avialable if the value for their index is set to true. Otherwise, the mock c
rkms_test.go:95
↓ 10 callers
Method
Error
()
store.go:25
↓ 2 callers
Function
ConstructErrorResponse
ConstructErrorResponse creates a server response for the given error
error_response.go:13
↓ 2 callers
Function
getTestRegionName
(regionIndex int)
rkms_test.go:119
↓ 1 callers
Function
ConstructGetKeyResponse
ConstructGetKeyResponse creates a server response for GET /key endpoint
get_key_response.go:13
↓ 1 callers
Method
DecryptWithContext
(ctx aws.Context, input *kms.DecryptInput, opts ...request.Option)
rkms_test.go:52
↓ 1 callers
Method
EncryptWithContext
(ctx aws.Context, input *kms.EncryptInput, opts ...request.Option)
rkms_test.go:45
↓ 1 callers
Method
GenerateDataKeyWithContext
(ctx aws.Context, input *kms.GenerateDataKeyInput, opts ...request.Option)
rkms_test.go:37
↓ 1 callers
Method
GetEncryptedDataKeys
GetEncryptedDataKeys retrieves the encrypted data keys for the given id
store.go:11
↓ 1 callers
Function
LoadConfiguration
LoadConfiguration loads config file into memory and creates a Configuration object out of the information
config.go:45
↓ 1 callers
Function
NewDynamoDBStore
NewDynamoDBStore creates a new DynamoDBStore instance
dynamodb_store.go:29
↓ 1 callers
Function
NewRKMSWithDynamoDB
NewRKMSWithDynamoDB creates a new RKMS instance with DynamoDB used as its key/value store
rkms.go:36
↓ 1 callers
Method
SetEncryptedDataKeysConditionally
SetEncryptedDataKeysConditionally sets the encrypted data keys for the given id only if id does not exist in the store already. If the id already exis
store.go:16
↓ 1 callers
Method
createDataKey
(ctx context.Context)
rkms.go:196
↓ 1 callers
Method
createDataKeyForID
(ctx context.Context, id string)
rkms.go:143
↓ 1 callers
Function
decorator
(handler func(http.ResponseWriter, *http.Request))
main.go:36
↓ 1 callers
Method
decryptDataKey
(ctx context.Context, encryptedDataKeys map[string]string)
rkms.go:245
↓ 1 callers
Method
encryptDataKey
(ctx context.Context, dataKey string, region string)
rkms.go:217
↓ 1 callers
Function
getKMSClientForRegion
(region string)
rkms.go:66
↓ 1 callers
Function
getKMSClientsForRegions
(regions []string)
rkms.go:52
↓ 1 callers
Method
getPlaintextDataKey
(ctx context.Context, id string, triesLeft int, lastErr error)
rkms.go:84
↓ 1 callers
Function
getTestKeyID
(regionName string)
rkms_test.go:123
↓ 1 callers
Method
lookInStoreForDataKey
(ctx context.Context, id string)
rkms.go:115
↓ 1 callers
Function
verifyKMSConfig
(kmsConfig KMSConfig)
config.go:65
Method
DecryptWithContext
(aws.Context, *kms.DecryptInput, ...request.Option)
rkms_test.go:29
Method
EncryptWithContext
(aws.Context, *kms.EncryptInput, ...request.Option)
rkms_test.go:25
Method
GenerateDataKeyWithContext
(aws.Context, *kms.GenerateDataKeyInput, ...request.Option)
rkms_test.go:21
Method
GetEncryptedDataKeys
(ctx context.Context, id string)
rkms_test.go:67
Method
GetEncryptedDataKeys
GetEncryptedDataKeys retrieves the encrypted data keys for the given id
dynamodb_store.go:45
Method
SetEncryptedDataKeysConditionally
(ctx context.Context, id string, keys map[string]string)
rkms_test.go:80
Method
SetEncryptedDataKeysConditionally
SetEncryptedDataKeysConditionally sets the encrypted data keys for the given id only if id does not exist in the store already. If the id already exis
dynamodb_store.go:85
Function
TestAllServersDownEmptyStore
(t *testing.T)
rkms_test.go:256
Function
TestAllServersDownFilledStore
(t *testing.T)
rkms_test.go:271
Function
TestConditionalWriteToStore
(t *testing.T)
rkms_test.go:286
Function
TestFirstServerDownEmptyStore
(t *testing.T)
rkms_test.go:178
Function
TestFirstServerDownFilledStore
(t *testing.T)
rkms_test.go:193
Function
TestFirstTwoServersDownEmptyStore
(t *testing.T)
rkms_test.go:217
Function
TestFirstTwoServersDownFilledStore
(t *testing.T)
rkms_test.go:232
Function
TestGetPLaintextDataKeyRetryFail
(t *testing.T)
rkms_test.go:336
Function
TestGetPLaintextDataKeyRetrySuccess
(t *testing.T)
rkms_test.go:311
Function
TestServersUpEmptyStore
(t *testing.T)
rkms_test.go:130
Function
TestServersUpFilledStore
(t *testing.T)
rkms_test.go:154
Function
getKey
(w http.ResponseWriter, r *http.Request)
main.go:45
Function
main
()
main.go:12