Package io.micronaut.discovery.cloud
Interface ComputeInstanceMetadataResolver
-
- All Known Implementing Classes:
DigitalOceanMetadataResolver
public interface ComputeInstanceMetadataResolverInterface for resoling compute instance metadata.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<ComputeInstanceMetadata>resolve(io.micronaut.context.env.Environment environment)ResolvesComputeInstanceMetadatafor the current environment if possible.
-
-
-
Method Detail
-
resolve
java.util.Optional<ComputeInstanceMetadata> resolve(io.micronaut.context.env.Environment environment)
ResolvesComputeInstanceMetadatafor the current environment if possible.- Parameters:
environment- The environment- Returns:
- The
ComputeInstanceMetadata
-
-