io.quarkiverse.minio.client.devui.MinioJsonRPCService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-minio Show documentation
Show all versions of quarkus-minio Show documentation
Integrates MinIO Java SDK for Amazon S3 Compatible Cloud Storage
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