MCPcopy Create free account

hub / github.com/armanshan12/rkms / functions

Functions46 in github.com/armanshan12/rkms

↓ 12 callersMethodGetPlaintextDataKey
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 callersFunctionbeforeTest
()
rkms_test.go:127
↓ 11 callersFunctiongetRKMS
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 callersMethodError
()
store.go:25
↓ 2 callersFunctionConstructErrorResponse
ConstructErrorResponse creates a server response for the given error
error_response.go:13
↓ 2 callersFunctiongetTestRegionName
(regionIndex int)
rkms_test.go:119
↓ 1 callersFunctionConstructGetKeyResponse
ConstructGetKeyResponse creates a server response for GET /key endpoint
get_key_response.go:13
↓ 1 callersMethodDecryptWithContext
(ctx aws.Context, input *kms.DecryptInput, opts ...request.Option)
rkms_test.go:52
↓ 1 callersMethodEncryptWithContext
(ctx aws.Context, input *kms.EncryptInput, opts ...request.Option)
rkms_test.go:45
↓ 1 callersMethodGenerateDataKeyWithContext
(ctx aws.Context, input *kms.GenerateDataKeyInput, opts ...request.Option)
rkms_test.go:37
↓ 1 callersMethodGetEncryptedDataKeys
GetEncryptedDataKeys retrieves the encrypted data keys for the given id
store.go:11
↓ 1 callersFunctionLoadConfiguration
LoadConfiguration loads config file into memory and creates a Configuration object out of the information
config.go:45
↓ 1 callersFunctionNewDynamoDBStore
NewDynamoDBStore creates a new DynamoDBStore instance
dynamodb_store.go:29
↓ 1 callersFunctionNewRKMSWithDynamoDB
NewRKMSWithDynamoDB creates a new RKMS instance with DynamoDB used as its key/value store
rkms.go:36
↓ 1 callersMethodSetEncryptedDataKeysConditionally
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 callersMethodcreateDataKey
(ctx context.Context)
rkms.go:196
↓ 1 callersMethodcreateDataKeyForID
(ctx context.Context, id string)
rkms.go:143
↓ 1 callersFunctiondecorator
(handler func(http.ResponseWriter, *http.Request))
main.go:36
↓ 1 callersMethoddecryptDataKey
(ctx context.Context, encryptedDataKeys map[string]string)
rkms.go:245
↓ 1 callersMethodencryptDataKey
(ctx context.Context, dataKey string, region string)
rkms.go:217
↓ 1 callersFunctiongetKMSClientForRegion
(region string)
rkms.go:66
↓ 1 callersFunctiongetKMSClientsForRegions
(regions []string)
rkms.go:52
↓ 1 callersMethodgetPlaintextDataKey
(ctx context.Context, id string, triesLeft int, lastErr error)
rkms.go:84
↓ 1 callersFunctiongetTestKeyID
(regionName string)
rkms_test.go:123
↓ 1 callersMethodlookInStoreForDataKey
(ctx context.Context, id string)
rkms.go:115
↓ 1 callersFunctionverifyKMSConfig
(kmsConfig KMSConfig)
config.go:65
MethodDecryptWithContext
(aws.Context, *kms.DecryptInput, ...request.Option)
rkms_test.go:29
MethodEncryptWithContext
(aws.Context, *kms.EncryptInput, ...request.Option)
rkms_test.go:25
MethodGenerateDataKeyWithContext
(aws.Context, *kms.GenerateDataKeyInput, ...request.Option)
rkms_test.go:21
MethodGetEncryptedDataKeys
(ctx context.Context, id string)
rkms_test.go:67
MethodGetEncryptedDataKeys
GetEncryptedDataKeys retrieves the encrypted data keys for the given id
dynamodb_store.go:45
MethodSetEncryptedDataKeysConditionally
(ctx context.Context, id string, keys map[string]string)
rkms_test.go:80
MethodSetEncryptedDataKeysConditionally
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
FunctionTestAllServersDownEmptyStore
(t *testing.T)
rkms_test.go:256
FunctionTestAllServersDownFilledStore
(t *testing.T)
rkms_test.go:271
FunctionTestConditionalWriteToStore
(t *testing.T)
rkms_test.go:286
FunctionTestFirstServerDownEmptyStore
(t *testing.T)
rkms_test.go:178
FunctionTestFirstServerDownFilledStore
(t *testing.T)
rkms_test.go:193
FunctionTestFirstTwoServersDownEmptyStore
(t *testing.T)
rkms_test.go:217
FunctionTestFirstTwoServersDownFilledStore
(t *testing.T)
rkms_test.go:232
FunctionTestGetPLaintextDataKeyRetryFail
(t *testing.T)
rkms_test.go:336
FunctionTestGetPLaintextDataKeyRetrySuccess
(t *testing.T)
rkms_test.go:311
FunctionTestServersUpEmptyStore
(t *testing.T)
rkms_test.go:130
FunctionTestServersUpFilledStore
(t *testing.T)
rkms_test.go:154
FunctiongetKey
(w http.ResponseWriter, r *http.Request)
main.go:45
Functionmain
()
main.go:12