testcontainers-0.5.0.0: Docker containers for your integration tests.
Safe HaskellSafe-Inferred
LanguageHaskell2010

TestContainers.Trace

Synopsis

TestContainer traces

data Trace Source #

Type representing various events during testcontainer execution.

Constructors

TraceDockerInvocation [Text] Text ExitCode

The low-level invocation of docker command

  TraceDockerInvocation args stdin exitcode
TraceDockerFollowLogs [Text]

Preparations to follow the logs for a certain container

TraceDockerStdout Text

Line written to STDOUT by a Docker process.

TraceDockerStderr Text

Line written to STDERR by a Docker process.

TraceWaitUntilReady (Maybe Int)

Waiting for a container to become ready. Attached with the timeout to wait (in seconds).

TraceOpenSocket Text Int (Maybe IOException)

Opening socket

TraceHttpCall Text Int (Either String Int)

Call HTTP endpoint

Instances

Instances details
Show Trace Source # 
Instance details

Defined in TestContainers.Trace

Methods

showsPrec :: Int -> Trace -> ShowS #

show :: Trace -> String #

showList :: [Trace] -> ShowS #

Eq Trace Source # 
Instance details

Defined in TestContainers.Trace

Methods

(==) :: Trace -> Trace -> Bool #

(/=) :: Trace -> Trace -> Bool #

Tracer

data Tracer Source #

Traces execution within testcontainers library.

Instances

Instances details
Monoid Tracer Source # 
Instance details

Defined in TestContainers.Trace

Semigroup Tracer Source # 
Instance details

Defined in TestContainers.Trace

newTracer :: (Trace -> IO ()) -> Tracer Source #

Construct a new Tracer from a tracing function.

withTrace :: MonadIO m => Tracer -> Trace -> m () Source #