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

io.quarkiverse.minio.client.devui.MinioJsonRPCService Maven / Gradle / Ivy

The newest version!
package io.quarkiverse.minio.client.devui;

import org.eclipse.microprofile.config.Config;
import org.eclipse.microprofile.config.ConfigProvider;

import io.smallrye.common.annotation.NonBlocking;
import io.vertx.core.json.JsonObject;

public class MinioJsonRPCService {

    Config config = ConfigProvider.getConfig();

    @NonBlocking
    public String getMinioConsoleUrl() {
        return config.getOptionalValue("quarkus.minio.console", String.class).orElse(null);
    }

    @NonBlocking
    public JsonObject getLoginDetails() {
        return JsonObject.of(
                "accesskey", config.getOptionalValue("quarkus.minio.access-key", String.class).orElse(null),
                "secretkey", config.getOptionalValue("quarkus.minio.secret-key", String.class).orElse(null));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy