podman-0.0.0.0: A podman client library
Safe HaskellNone
LanguageHaskell2010

Podman

Synopsis

Main data types

data ContainerState Source #

Instances

Instances details
Show ContainerState Source # 
Instance details

Defined in Podman

Generic ContainerState Source # 
Instance details

Defined in Podman

Associated Types

type Rep ContainerState :: Type -> Type #

FromJSON ContainerState Source # 
Instance details

Defined in Podman

type Rep ContainerState Source # 
Instance details

Defined in Podman

type Rep ContainerState = D1 ('MetaData "ContainerState" "Podman" "podman-0.0.0.0-IUY3Mb1bEmn9lETJNWl80v" 'False) (C1 ('MetaCons "ContainerState" 'PrefixI 'True) (S1 ('MetaSel ('Just "containerRunning") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "containerStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data Container Source #

Instances

Instances details
Show Container Source # 
Instance details

Defined in Podman

Generic Container Source # 
Instance details

Defined in Podman

Associated Types

type Rep Container :: Type -> Type #

FromJSON Container Source # 
Instance details

Defined in Podman

type Rep Container Source # 
Instance details

Defined in Podman

type Rep Container = D1 ('MetaData "Container" "Podman" "podman-0.0.0.0-IUY3Mb1bEmn9lETJNWl80v" 'False) (C1 ('MetaCons "Container" 'PrefixI 'True) (S1 ('MetaSel ('Just "containerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "containerState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ContainerState)))

Convenient functions

inspectContainer Source #

Arguments

:: String

The container name

-> IO (Maybe Container)

Returns the container status

Read a container status

isContainer Source #

Arguments

:: String

The container name

-> IO Bool

Returns True is the container exists

Check if a container exists