Reworking to use v0 packaging.
This commit is contained in:
parent
1fdde0d7fb
commit
05a1ea8a20
12 changed files with 23 additions and 23 deletions
|
@ -1,13 +1,13 @@
|
|||
package gs.config
|
||||
package gs.config.v0
|
||||
|
||||
import cats.data.NonEmptyList
|
||||
import cats.effect.Sync
|
||||
import cats.syntax.all.*
|
||||
import gs.config.audit.ConfigManifest
|
||||
import gs.config.audit.ConfigQueryResult
|
||||
import gs.config.source.ConfigSource
|
||||
import gs.config.source.EnvironmentConfigSource
|
||||
import gs.config.source.MemoryConfigSource
|
||||
import gs.config.v0.audit.ConfigManifest
|
||||
import gs.config.v0.audit.ConfigQueryResult
|
||||
import gs.config.v0.source.ConfigSource
|
||||
import gs.config.v0.source.EnvironmentConfigSource
|
||||
import gs.config.v0.source.MemoryConfigSource
|
||||
|
||||
/** Implementation of [[gs.config.Configuration]] that tracks every call to
|
||||
* `getValue` and reports on whether the query succeeded or failed.
|
|
@ -1,4 +1,4 @@
|
|||
package gs.config
|
||||
package gs.config.v0
|
||||
|
||||
/** Base class for most [[Configuration]] implementations. Provides standard
|
||||
* support for properly handling default values and parsing strings to the
|
|
@ -1,4 +1,4 @@
|
|||
package gs.config
|
||||
package gs.config.v0
|
||||
|
||||
/** Error hierarchy for the `gs-config` library. Indicates that something went
|
||||
* wrong while attempting to load configuration values.
|
|
@ -1,4 +1,4 @@
|
|||
package gs.config
|
||||
package gs.config.v0
|
||||
|
||||
/** Defines some piece of configuration.
|
||||
*
|
|
@ -1,4 +1,4 @@
|
|||
package gs.config
|
||||
package gs.config.v0
|
||||
|
||||
/** Uniquely names some piece of configuration. This structure does _not_
|
||||
* attempt to support every possible use case, but supports some common cases
|
|
@ -1,4 +1,4 @@
|
|||
package gs.config
|
||||
package gs.config.v0
|
||||
|
||||
import java.time.Instant
|
||||
import java.time.LocalDate
|
|
@ -1,7 +1,7 @@
|
|||
package gs.config
|
||||
package gs.config.v0
|
||||
|
||||
import cats.effect.Sync
|
||||
import gs.config.source.ConfigSource
|
||||
import gs.config.v0.source.ConfigSource
|
||||
|
||||
/** Interface for loading configuration. This type should not be used for any
|
||||
* sensitive configuration such as secrets or private keys.
|
|
@ -1,9 +1,9 @@
|
|||
package gs.config.audit
|
||||
package gs.config.v0.audit
|
||||
|
||||
import cats.effect.Ref
|
||||
import cats.effect.Sync
|
||||
import cats.syntax.all.*
|
||||
import gs.config.ConfigName
|
||||
import gs.config.v0.ConfigName
|
||||
|
||||
trait ConfigManifest[F[_]]:
|
||||
/** Retrieve a snapshot of the current state of this configuration manifest.
|
|
@ -1,6 +1,6 @@
|
|||
package gs.config.audit
|
||||
package gs.config.v0.audit
|
||||
|
||||
import gs.config.ConfigError
|
||||
import gs.config.v0.ConfigError
|
||||
|
||||
/** Describes queries used to find configuration. Used for auditing purposes and
|
||||
* is captured by [[ConfigManifest]].
|
|
@ -1,8 +1,8 @@
|
|||
package gs.config.source
|
||||
package gs.config.v0.source
|
||||
|
||||
import cats.Applicative
|
||||
import cats.effect.Sync
|
||||
import gs.config.ConfigKey
|
||||
import gs.config.v0.ConfigKey
|
||||
|
||||
/** Interface for loading raw configuration values.
|
||||
*
|
|
@ -1,7 +1,7 @@
|
|||
package gs.config.source
|
||||
package gs.config.v0.source
|
||||
|
||||
import cats.effect.Sync
|
||||
import gs.config.ConfigKey
|
||||
import gs.config.v0.ConfigKey
|
||||
|
||||
/** Environment variable implementation of [[ConfigSource]]. Pulls all values
|
||||
* from the system environment that was passed to this process.
|
|
@ -1,7 +1,7 @@
|
|||
package gs.config.source
|
||||
package gs.config.v0.source
|
||||
|
||||
import cats.Applicative
|
||||
import gs.config.ConfigKey
|
||||
import gs.config.v0.ConfigKey
|
||||
import java.util.UUID
|
||||
|
||||
/** In-memory implementation based on an immutable map.
|
Loading…
Add table
Reference in a new issue