harness.docker.DockerNeedsSudo.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of harness-docker_3 Show documentation
Show all versions of harness-docker_3 Show documentation
Miscellaneous libraries/utilities for Scala.
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