| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
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
- getEtcdBinary :: FilePath -> WhichEtcd -> IO FilePath
- etcdExecutable :: FilePath
- installEtcd :: FilePath -> IO ()
- writeBinaryFile :: FilePath -> ByteString -> IO ()
- makeExecutable :: FilePath -> IO ()
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.
makeExecutable :: FilePath -> IO () Source #