All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.nagyesta.lowkeyvault.http.management.LowkeyVaultManagementClient Maven / Gradle / Ivy

There is a newer version: 2.5.58
Show newest version
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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy