Secret

com.geirolz.secret.Secret
See theSecret companion class
object Secret

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Secret.type

Members list

Value members

Concrete methods

override def apply[T](value: => T, collectDestructionLocation: Boolean)(using strategy: SecretStrategy[T], hasher: Hasher): Secret[T]

Create a secret from the given value

Create a secret from the given value

Attributes

Definition Classes
SecretCompanionApi
override def destroyed[T](location: Location): Secret[T]

Create a destroyed secret

Create a destroyed secret

Attributes

Definition Classes
SecretCompanionApi

Inherited methods

def fromEnv[F[_] : SysEnv](name: String)(implicit evidence$1: MonadThrow[F], evidence$2: SysEnv[F], SecretStrategy[String], Hasher): F[Secret[String]]

Create a secret from the environment variable.

Create a secret from the environment variable.

Attributes

Inherited from:
SecretCompanionApi (hidden)
def noLocation[T : SecretStrategy](value: => T)(implicit evidence$1: SecretStrategy[T], Hasher): Secret[T]

Create a new secret with the given value without collecting the destruction location

Create a new secret with the given value without collecting the destruction location

Attributes

Inherited from:
SecretCompanionApi (hidden)
def plain(value: String)(using Hasher): Secret[String]

Create a plain secret from the given value.

Create a plain secret from the given value.

Attributes

Inherited from:
SecretCompanionApi (hidden)

Inherited fields

final val empty: Secret[String]

Create an string empty secret

Create an string empty secret

Attributes

Inherited from:
SecretCompanionApi (hidden)

Givens

Inherited givens

given given_Eq_SecretTpe[T]: Eq[Secret[T]]

Attributes

Inherited from:
SecretApiInstances (hidden)
given given_Hashing_SecretTpe[T]: Hashing[Secret[T]]

Attributes

Inherited from:
SecretApiInstances (hidden)
given given_Show_SecretTpe[T]: Show[Secret[T]]

Attributes

Inherited from:
SecretApiInstances (hidden)

Extensions

Inherited extensions

extension [L, T](eSecret: Either[L, Secret[T]])(implicit evidence$1: SecretStrategy[T], evidence$2: Monoid[T], Hasher)

Attributes

Inherited from:
SecretApiSyntax (hidden)
extension [T](optSecret: Option[Secret[T]])(implicit evidence$1: SecretStrategy[T], evidence$2: Monoid[T], Hasher)

Attributes

Inherited from:
SecretApiSyntax (hidden)