KeySource

com.coralogix.zio.k8s.client.config.package$.KeySource$
See theKeySource companion trait
object KeySource

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
KeySource.type

Members list

Type members

Classlikes

final case class FromBase64(base64: String) extends KeySource

Key loaded from a Base64 string

Key loaded from a Base64 string

Value parameters

base64

base64 encoded key value

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait KeySource
class Object
trait Matchable
class Any
Show all
final case class FromFile(path: Path) extends KeySource

Key loaded from an external file

Key loaded from an external file

Value parameters

path

path of the file

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait KeySource
class Object
trait Matchable
class Any
Show all
final case class FromString(value: String) extends KeySource

Key loaded from a raw string

Key loaded from a raw string

Value parameters

value

key as a simple string

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait KeySource
class Object
trait Matchable
class Any
Show all

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def from(maybePath: Option[String], maybeBase64: Option[String]): Either[String, KeySource]

Defines a key source from either an external file path or a base64 encoded value.

Defines a key source from either an external file path or a base64 encoded value.

If neither or both are provided the result is an error.

Value parameters

maybeBase64

Base64 encoded key value

maybePath

Path to the key file if any

Attributes