MCPcopy Index your code
hub / github.com/getsops/sops / createClient

Method createClient

kms/keysource.go:426–432  ·  view source on GitHub ↗

createClient creates a new AWS KMS client with the provided config.

(config *aws.Config)

Source from the content-addressed store, hash-verified

424
425// createClient creates a new AWS KMS client with the provided config.
426func (key MasterKey) createClient(config *aws.Config) *kms.Client {
427 return kms.NewFromConfig(*config, func(o *kms.Options) {
428 if key.baseEndpoint != "" {
429 o.BaseEndpoint = aws.String(key.baseEndpoint)
430 }
431 })
432}
433
434// createSTSConfig uses AWS STS to assume a role and returns a config
435// configured with that role's credentials. It returns an error if

Callers 2

EncryptContextMethod · 0.95
DecryptContextMethod · 0.95

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected