Reworking to use v0 packaging.

This commit is contained in:
Pat Garrity 2024-01-04 22:46:35 -06:00
parent 1fdde0d7fb
commit 05a1ea8a20
Signed by: pfm
GPG key ID: 5CA5D21BAB7F3A76
12 changed files with 23 additions and 23 deletions

View file

@ -1,13 +1,13 @@
package gs.config package gs.config.v0
import cats.data.NonEmptyList import cats.data.NonEmptyList
import cats.effect.Sync import cats.effect.Sync
import cats.syntax.all.* import cats.syntax.all.*
import gs.config.audit.ConfigManifest import gs.config.v0.audit.ConfigManifest
import gs.config.audit.ConfigQueryResult import gs.config.v0.audit.ConfigQueryResult
import gs.config.source.ConfigSource import gs.config.v0.source.ConfigSource
import gs.config.source.EnvironmentConfigSource import gs.config.v0.source.EnvironmentConfigSource
import gs.config.source.MemoryConfigSource import gs.config.v0.source.MemoryConfigSource
/** Implementation of [[gs.config.Configuration]] that tracks every call to /** Implementation of [[gs.config.Configuration]] that tracks every call to
* `getValue` and reports on whether the query succeeded or failed. * `getValue` and reports on whether the query succeeded or failed.

View file

@ -1,4 +1,4 @@
package gs.config package gs.config.v0
/** Base class for most [[Configuration]] implementations. Provides standard /** Base class for most [[Configuration]] implementations. Provides standard
* support for properly handling default values and parsing strings to the * support for properly handling default values and parsing strings to the

View file

@ -1,4 +1,4 @@
package gs.config package gs.config.v0
/** Error hierarchy for the `gs-config` library. Indicates that something went /** Error hierarchy for the `gs-config` library. Indicates that something went
* wrong while attempting to load configuration values. * wrong while attempting to load configuration values.

View file

@ -1,4 +1,4 @@
package gs.config package gs.config.v0
/** Defines some piece of configuration. /** Defines some piece of configuration.
* *

View file

@ -1,4 +1,4 @@
package gs.config package gs.config.v0
/** Uniquely names some piece of configuration. This structure does _not_ /** Uniquely names some piece of configuration. This structure does _not_
* attempt to support every possible use case, but supports some common cases * attempt to support every possible use case, but supports some common cases

View file

@ -1,4 +1,4 @@
package gs.config package gs.config.v0
import java.time.Instant import java.time.Instant
import java.time.LocalDate import java.time.LocalDate

View file

@ -1,7 +1,7 @@
package gs.config package gs.config.v0
import cats.effect.Sync 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 /** Interface for loading configuration. This type should not be used for any
* sensitive configuration such as secrets or private keys. * sensitive configuration such as secrets or private keys.

View file

@ -1,9 +1,9 @@
package gs.config.audit package gs.config.v0.audit
import cats.effect.Ref import cats.effect.Ref
import cats.effect.Sync import cats.effect.Sync
import cats.syntax.all.* import cats.syntax.all.*
import gs.config.ConfigName import gs.config.v0.ConfigName
trait ConfigManifest[F[_]]: trait ConfigManifest[F[_]]:
/** Retrieve a snapshot of the current state of this configuration manifest. /** Retrieve a snapshot of the current state of this configuration manifest.

View file

@ -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 /** Describes queries used to find configuration. Used for auditing purposes and
* is captured by [[ConfigManifest]]. * is captured by [[ConfigManifest]].

View file

@ -1,8 +1,8 @@
package gs.config.source package gs.config.v0.source
import cats.Applicative import cats.Applicative
import cats.effect.Sync import cats.effect.Sync
import gs.config.ConfigKey import gs.config.v0.ConfigKey
/** Interface for loading raw configuration values. /** Interface for loading raw configuration values.
* *

View file

@ -1,7 +1,7 @@
package gs.config.source package gs.config.v0.source
import cats.effect.Sync import cats.effect.Sync
import gs.config.ConfigKey import gs.config.v0.ConfigKey
/** Environment variable implementation of [[ConfigSource]]. Pulls all values /** Environment variable implementation of [[ConfigSource]]. Pulls all values
* from the system environment that was passed to this process. * from the system environment that was passed to this process.

View file

@ -1,7 +1,7 @@
package gs.config.source package gs.config.v0.source
import cats.Applicative import cats.Applicative
import gs.config.ConfigKey import gs.config.v0.ConfigKey
import java.util.UUID import java.util.UUID
/** In-memory implementation based on an immutable map. /** In-memory implementation based on an immutable map.