Safe Haskell | None |
---|---|
Language | Haskell2010 |
Runtime Context data types and lenses
Synopsis
- newtype ImageName = ImageName {
- unImageName :: Text
- data RuntimeContext
- data Mode
- data VolumeType
- data Volume = MkVolume Mode VolumeType
- data RunAs
- data Port
- newtype Name = Name {}
- data Context = Context {
- _name :: Name
- _namespace :: Maybe Text
- _runtimeCtx :: RuntimeContext
- _network :: Bool
- _ports :: [Port]
- _runAs :: Maybe RunAs
- _selinux :: Bool
- _anyUid :: UserID
- _uid :: UserID
- _command :: [Text]
- _workdir :: Maybe FilePath
- _environ :: Map Text Text
- _mounts :: Map FilePath Volume
- _syscaps :: Set Capability
- _ro :: Bool
- _devices :: Set FilePath
- _hostname :: Maybe Text
- _interactive :: Bool
- _terminal :: Bool
- _privileged :: Bool
- privileged :: Functor f => (Bool -> f Bool) -> Context -> f Context
- terminal :: Functor f => (Bool -> f Bool) -> Context -> f Context
- interactive :: Functor f => (Bool -> f Bool) -> Context -> f Context
- hostname :: Functor f => (Maybe Text -> f (Maybe Text)) -> Context -> f Context
- devices :: Functor f => (Set FilePath -> f (Set FilePath)) -> Context -> f Context
- ro :: Functor f => (Bool -> f Bool) -> Context -> f Context
- syscaps :: Functor f => (Set Capability -> f (Set Capability)) -> Context -> f Context
- mounts :: Functor f => (Map FilePath Volume -> f (Map FilePath Volume)) -> Context -> f Context
- environ :: Functor f => (Map Text Text -> f (Map Text Text)) -> Context -> f Context
- workdir :: Functor f => (Maybe FilePath -> f (Maybe FilePath)) -> Context -> f Context
- command :: Functor f => ([Text] -> f [Text]) -> Context -> f Context
- uid :: Functor f => (UserID -> f UserID) -> Context -> f Context
- anyUid :: Functor f => (UserID -> f UserID) -> Context -> f Context
- selinux :: Functor f => (Bool -> f Bool) -> Context -> f Context
- runAs :: Functor f => (Maybe RunAs -> f (Maybe RunAs)) -> Context -> f Context
- ports :: Functor f => ([Port] -> f [Port]) -> Context -> f Context
- network :: Functor f => (Bool -> f Bool) -> Context -> f Context
- runtimeCtx :: Functor f => (RuntimeContext -> f RuntimeContext) -> Context -> f Context
- namespace :: Functor f => (Maybe Text -> f (Maybe Text)) -> Context -> f Context
- name :: Functor f => (Name -> f Name) -> Context -> f Context
- defaultContext :: Name -> RuntimeContext -> Context
- rwHostPath :: FilePath -> Volume
- roHostPath :: FilePath -> Volume
- tmpfs :: Volume
- addEnv :: Text -> Text -> Context -> Context
- addMount :: FilePath -> Volume -> Context -> Context
- directMount :: FilePath -> Context -> Context
- addDevice :: FilePath -> Context -> Context
Documentation
data RuntimeContext Source #
Instances
Show RuntimeContext Source # | |
Defined in Podenv.Context showsPrec :: Int -> RuntimeContext -> ShowS # show :: RuntimeContext -> String # showList :: [RuntimeContext] -> ShowS # |
data VolumeType Source #
Instances
Show VolumeType Source # | |
Defined in Podenv.Context showsPrec :: Int -> VolumeType -> ShowS # show :: VolumeType -> String # showList :: [VolumeType] -> ShowS # |
The application context to be executed by podman or kubectl
Context | |
|
syscaps :: Functor f => (Set Capability -> f (Set Capability)) -> Context -> f Context Source #
mounts :: Functor f => (Map FilePath Volume -> f (Map FilePath Volume)) -> Context -> f Context Source #
runtimeCtx :: Functor f => (RuntimeContext -> f RuntimeContext) -> Context -> f Context Source #
defaultContext :: Name -> RuntimeContext -> Context Source #
rwHostPath :: FilePath -> Volume Source #
roHostPath :: FilePath -> Volume Source #