Module org.cryptomator.cryptofs
Interface DiagnosticResult
- All Known Implementing Classes:
CheckFailed
public interface DiagnosticResult
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptiondetails()Get more specific info about the result like names of affected resources.default voidfix(Path pathToVault, VaultConfig config, org.cryptomator.cryptolib.api.Masterkey masterkey, org.cryptomator.cryptolib.api.Cryptor cryptor) Deprecated.default Optional<DiagnosticResult.Fix>getFix(Path pathToVault, VaultConfig config, org.cryptomator.cryptolib.api.Masterkey masterkey, org.cryptomator.cryptolib.api.Cryptor cryptor) toString()
-
Method Details
-
getSeverity
DiagnosticResult.Severity getSeverity() -
toString
String toString() -
fix
@Deprecated default void fix(Path pathToVault, VaultConfig config, org.cryptomator.cryptolib.api.Masterkey masterkey, org.cryptomator.cryptolib.api.Cryptor cryptor) throws IOException Deprecated.UsegetFix(Path, VaultConfig, Masterkey, Cryptor)insteadA fix for the result."Fix" does not imply to restore lost data. It only implies, that the issue leading to this result is resolved.
- Parameters:
pathToVault- path to the root directory of the vaultconfig- the vault configmasterkey- the masterkey of the vaultcryptor-- Throws:
IOExceptionUnsupportedOperationException- if no fix is implemented for this result
-
getFix
default Optional<DiagnosticResult.Fix> getFix(Path pathToVault, VaultConfig config, org.cryptomator.cryptolib.api.Masterkey masterkey, org.cryptomator.cryptolib.api.Cryptor cryptor) -
details
Get more specific info about the result like names of affected resources.- Returns:
- A map of strings containing result specific information
-
getFix(Path, VaultConfig, Masterkey, Cryptor)instead