Package io.micronaut.gcp.secretmanager
Class SecretManagerConfigurationClient
java.lang.Object
io.micronaut.gcp.secretmanager.SecretManagerConfigurationClient
- All Implemented Interfaces:
io.micronaut.core.naming.Described
,io.micronaut.discovery.config.ConfigurationClient
@Singleton
@Requires(property="micronaut.config-client.enabled",
value="true",
defaultValue="false")
public class SecretManagerConfigurationClient
extends Object
implements io.micronaut.discovery.config.ConfigurationClient
- Since:
- 3.4.0 Distributed configuration client implementation that fetches application configuration files from Google Cloud Secret Manager.
- Author:
- Vinicius Carvalho
-
Field Summary
Fields inherited from interface io.micronaut.discovery.config.ConfigurationClient
CONFIGURATION_PREFIX, ENABLED, READ_TIMEOUT
-
Constructor Summary
ConstructorDescriptionSecretManagerConfigurationClient
(SecretManagerClient secretManagerClient, SecretManagerConfigurationProperties configurationProperties) -
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<io.micronaut.context.env.PropertySource>
getPropertySources
(io.micronaut.context.env.Environment environment) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.naming.Described
getDescription
-
Constructor Details
-
SecretManagerConfigurationClient
public SecretManagerConfigurationClient(SecretManagerClient secretManagerClient, SecretManagerConfigurationProperties configurationProperties)
-
-
Method Details
-
getPropertySources
public org.reactivestreams.Publisher<io.micronaut.context.env.PropertySource> getPropertySources(io.micronaut.context.env.Environment environment) - Specified by:
getPropertySources
in interfaceio.micronaut.discovery.config.ConfigurationClient
-
getDescription
- Specified by:
getDescription
in interfaceio.micronaut.core.naming.Described
-