All Downloads are FREE. Search and download functionalities are using the official Maven repository.

harness.docker.DockerNeedsSudo.scala Maven / Gradle / Ivy

The newest version!
package harness.docker

import harness.zio.*
import zio.*

final case class DockerNeedsSudo(value: Boolean)
object DockerNeedsSudo {

  val value: URIO[DockerNeedsSudo, Boolean] = ZIO.serviceWith[DockerNeedsSudo](_.value)

  def layer(value: Boolean): ULayer[DockerNeedsSudo] = ZLayer.succeed(DockerNeedsSudo(value))

  def configLayer(jsonPath: String*): HRLayer[HConfig, DockerNeedsSudo] =
    HConfig.readLayer[Boolean](jsonPath*).project(DockerNeedsSudo(_))

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy