hydra-cluster-0.19.0: Integration test suite using a local cluster of cardano and hydra nodes
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.Cluster.Mithril

Description

Mithril client to bootstrap cardano nodes in the hydra-cluster.

Synopsis

Documentation

data MithrilLog Source #

Constructors

StartSnapshotDownload 
StdErr

Output captured directly from mithril-client stderr.

Fields

Instances

Instances details
FromJSON MithrilLog Source # 
Instance details

Defined in Hydra.Cluster.Mithril

Methods

parseJSON :: Value -> Parser MithrilLog

parseJSONList :: Value -> Parser [MithrilLog]

omittedField :: Maybe MithrilLog

ToJSON MithrilLog Source # 
Instance details

Defined in Hydra.Cluster.Mithril

Methods

toJSON :: MithrilLog -> Value

toEncoding :: MithrilLog -> Encoding

toJSONList :: [MithrilLog] -> Value

toEncodingList :: [MithrilLog] -> Encoding

omitField :: MithrilLog -> Bool

Generic MithrilLog Source # 
Instance details

Defined in Hydra.Cluster.Mithril

Associated Types

type Rep MithrilLog :: Type -> Type Source #

Show MithrilLog Source # 
Instance details

Defined in Hydra.Cluster.Mithril

Eq MithrilLog Source # 
Instance details

Defined in Hydra.Cluster.Mithril

type Rep MithrilLog Source # 
Instance details

Defined in Hydra.Cluster.Mithril

type Rep MithrilLog = D1 ('MetaData "MithrilLog" "Hydra.Cluster.Mithril" "hydra-cluster-0.19.0-FdS6WpgbrGm8HrOQAHMkj7" 'False) (C1 ('MetaCons "StartSnapshotDownload" 'PrefixI 'True) (S1 ('MetaSel ('Just "network") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 KnownNetwork) :*: S1 ('MetaSel ('Just "directory") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)) :+: C1 ('MetaCons "StdErr" 'PrefixI 'True) (S1 ('MetaSel ('Just "output") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value)))

downloadLatestSnapshotTo :: Tracer IO MithrilLog -> KnownNetwork -> FilePath -> IO () Source #

Downloads and unpacks latest snapshot for given network in db/ of given directory.