hydra-node
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.Network.EtcdBinary

Description

Embedding and installation of etcd binary. In a dedicated module as HLS tends to choke on the executable's Template Haskell splice.

Synopsis

Documentation

getEtcdBinary :: FilePath -> WhichEtcd -> IO FilePath Source #

Return the path of the etcd binary. Will either install it first, or just assume there is one available on the system path.

installEtcd :: FilePath -> IO () Source #

Install the embedded etcd binary to given file path.

writeBinaryFile :: FilePath -> ByteString -> IO () Source #

Write without letting another process retain the writable file descriptor.