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

Function metadataFromEncryptionConfig

cmd/sops/encrypt.go:79–92  ·  view source on GitHub ↗
(config encryptConfig)

Source from the content-addressed store, hash-verified

77}
78
79func metadataFromEncryptionConfig(config encryptConfig) sops.Metadata {
80 return sops.Metadata{
81 KeyGroups: config.KeyGroups,
82 UnencryptedSuffix: config.UnencryptedSuffix,
83 EncryptedSuffix: config.EncryptedSuffix,
84 UnencryptedRegex: config.UnencryptedRegex,
85 EncryptedRegex: config.EncryptedRegex,
86 UnencryptedCommentRegex: config.UnencryptedCommentRegex,
87 EncryptedCommentRegex: config.EncryptedCommentRegex,
88 MACOnlyEncrypted: config.MACOnlyEncrypted,
89 Version: version.Version,
90 ShamirThreshold: config.GroupThreshold,
91 }
92}
93
94func encrypt(opts encryptOpts) (encryptedFile []byte, err error) {
95 // Load the file

Callers 2

encryptFunction · 0.85
editExampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected