MCPcopy
hub / github.com/getsops/sops / NewMasterKeyWithProfile

Function NewMasterKeyWithProfile

kms/keysource.go:100–104  ·  view source on GitHub ↗

NewMasterKeyWithProfile creates a new MasterKey from an ARN, role, context and awsProfile, setting the creation date to the current date.

(arn string, role string, context map[string]*string, awsProfile string)

Source from the content-addressed store, hash-verified

98// NewMasterKeyWithProfile creates a new MasterKey from an ARN, role, context
99// and awsProfile, setting the creation date to the current date.
100func NewMasterKeyWithProfile(arn string, role string, context map[string]*string, awsProfile string) *MasterKey {
101 k := NewMasterKey(arn, role, context)
102 k.AwsProfile = awsProfile
103 return k
104}
105
106// NewMasterKeyFromArn takes an ARN string and returns a new MasterKey for that
107// ARN.

Callers 2

extractMasterKeysFunction · 0.92

Calls 1

NewMasterKeyFunction · 0.70

Tested by 1