MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / MasterEncryptKeyVault

Method MasterEncryptKeyVault

application/dependency/dependency.go:231–238  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

229}
230
231func (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
240func (d *dependency) EncryptorFactory(ctx context.Context) encrypt.CryptorFactory {
241 return encrypt.NewCryptorFactory(d.MasterEncryptKeyVault(ctx))

Callers 1

EncryptorFactoryMethod · 0.95

Calls 2

SettingProviderMethod · 0.95
NewMasterEncryptKeyVaultFunction · 0.92

Tested by

no test coverage detected