(ctx context.Context)
| 229 | } |
| 230 | |
| 231 | func (d *dependency) MasterEncryptKeyVault(ctx context.Context) encrypt.MasterEncryptKeyVault { |
| 232 | if d.masterEncryptKeyVault != nil { |
| 233 | return d.masterEncryptKeyVault |
| 234 | } |
| 235 | |
| 236 | d.masterEncryptKeyVault = encrypt.NewMasterEncryptKeyVault(ctx, d.SettingProvider()) |
| 237 | return d.masterEncryptKeyVault |
| 238 | } |
| 239 | |
| 240 | func (d *dependency) EncryptorFactory(ctx context.Context) encrypt.CryptorFactory { |
| 241 | return encrypt.NewCryptorFactory(d.MasterEncryptKeyVault(ctx)) |
no test coverage detected