(config encryptConfig)
| 77 | } |
| 78 | |
| 79 | func 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 | |
| 94 | func encrypt(opts encryptOpts) (encryptedFile []byte, err error) { |
| 95 | // Load the file |
no outgoing calls
no test coverage detected