com.github.nagyesta.lowkeyvault.http.management.LowkeyVaultManagementClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lowkey-vault-client Show documentation
Show all versions of lowkey-vault-client Show documentation
HTTP Client provider for Lowkey Vault tests.
package com.github.nagyesta.lowkeyvault.http.management;
import lombok.NonNull;
import java.io.IOException;
import java.net.URI;
import java.util.List;
import java.util.function.Supplier;
public interface LowkeyVaultManagementClient {
void verifyConnectivity(int retries, int waitMillis, Supplier exceptionProvider)
throws T, InterruptedException;
VaultModel createVault(@NonNull URI baseUri,
@NonNull RecoveryLevel recoveryLevel,
@NonNull Integer recoverableDays);
List listVaults();
List listDeletedVaults();
boolean delete(@NonNull URI baseUri);
VaultModel recover(@NonNull URI baseUri);
VaultModel addAlias(@NonNull URI baseUri, @NonNull URI alias);
VaultModel removeAlias(@NonNull URI baseUri, @NonNull URI alias);
boolean purge(@NonNull URI baseUri);
void timeShift(@NonNull TimeShiftContext context);
String exportActive();
String unpackBackup(byte[] backup) throws IOException;
byte[] compressBackup(String backup) throws IOException;
}