Copyright | (c) Nickolay Kudasov 2014 |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | nickolay.kudasov@gmail.com |
Safe Haskell | Safe |
Language | Haskell2010 |
Options and structures to run commands inside LXC containers. You can get more info about LXC at https://help.ubuntu.com/lts/serverguide/lxc.html and https://linuxcontainers.org.
Synopsis
- c'LXC_ATTACH_KEEP_ENV :: Num a => a
- c'LXC_ATTACH_CLEAR_ENV :: Num a => a
- c'LXC_ATTACH_MOVE_TO_CGROUP :: Num a => a
- c'LXC_ATTACH_DROP_CAPABILITIES :: Num a => a
- c'LXC_ATTACH_SET_PERSONALITY :: Num a => a
- c'LXC_ATTACH_LSM_EXEC :: Num a => a
- c'LXC_ATTACH_REMOUNT_PROC_SYS :: Num a => a
- c'LXC_ATTACH_LSM_NOW :: Num a => a
- c'LXC_ATTACH_DEFAULT :: Num a => a
- c'LXC_ATTACH_LSM :: Num a => a
- data C'lxc_attach_options_t = C'lxc_attach_options_t {
- c'lxc_attach_options_t'attach_flags :: CInt
- c'lxc_attach_options_t'namespaces :: CInt
- c'lxc_attach_options_t'personality :: CLong
- c'lxc_attach_options_t'initial_cwd :: CString
- c'lxc_attach_options_t'uid :: C'uid_t
- c'lxc_attach_options_t'gid :: C'gid_t
- c'lxc_attach_options_t'env_policy :: C'lxc_attach_env_policy_t
- c'lxc_attach_options_t'extra_env_vars :: Ptr CString
- c'lxc_attach_options_t'extra_keep_env :: Ptr CString
- c'lxc_attach_options_t'stdin_fd :: CInt
- c'lxc_attach_options_t'stdout_fd :: CInt
- c'lxc_attach_options_t'stderr_fd :: CInt
- p'lxc_attach_options_t'attach_flags :: Ptr C'lxc_attach_options_t -> Ptr CInt
- p'lxc_attach_options_t'namespaces :: Ptr C'lxc_attach_options_t -> Ptr CInt
- p'lxc_attach_options_t'personality :: Ptr C'lxc_attach_options_t -> Ptr CLong
- p'lxc_attach_options_t'initial_cwd :: Ptr C'lxc_attach_options_t -> Ptr CString
- p'lxc_attach_options_t'uid :: Ptr C'lxc_attach_options_t -> Ptr C'uid_t
- p'lxc_attach_options_t'gid :: Ptr C'lxc_attach_options_t -> Ptr C'gid_t
- p'lxc_attach_options_t'env_policy :: Ptr C'lxc_attach_options_t -> Ptr C'lxc_attach_env_policy_t
- p'lxc_attach_options_t'extra_env_vars :: Ptr C'lxc_attach_options_t -> Ptr (Ptr CString)
- p'lxc_attach_options_t'extra_keep_env :: Ptr C'lxc_attach_options_t -> Ptr (Ptr CString)
- p'lxc_attach_options_t'stdin_fd :: Ptr C'lxc_attach_options_t -> Ptr CInt
- p'lxc_attach_options_t'stdout_fd :: Ptr C'lxc_attach_options_t -> Ptr CInt
- p'lxc_attach_options_t'stderr_fd :: Ptr C'lxc_attach_options_t -> Ptr CInt
- data C'lxc_attach_command_t = C'lxc_attach_command_t {}
- p'lxc_attach_command_t'program :: Ptr C'lxc_attach_command_t -> Ptr CString
- p'lxc_attach_command_t'argv :: Ptr C'lxc_attach_command_t -> Ptr (Ptr CString)
- type C_lxc_attach_exec_t = FunPtr (Ptr () -> IO CInt)
- c'lxc_attach_run_command :: Ptr () -> IO CInt
- p'lxc_attach_run_command :: FunPtr (Ptr () -> IO CInt)
- c'lxc_attach_run_shell :: Ptr () -> IO CInt
- p'lxc_attach_run_shell :: FunPtr (Ptr () -> IO CInt)
Attach env policy
c'LXC_ATTACH_KEEP_ENV :: Num a => a Source #
c'LXC_ATTACH_CLEAR_ENV :: Num a => a Source #
Attach flags
c'LXC_ATTACH_MOVE_TO_CGROUP :: Num a => a Source #
c'LXC_ATTACH_DROP_CAPABILITIES :: Num a => a Source #
c'LXC_ATTACH_SET_PERSONALITY :: Num a => a Source #
c'LXC_ATTACH_LSM_EXEC :: Num a => a Source #
c'LXC_ATTACH_REMOUNT_PROC_SYS :: Num a => a Source #
c'LXC_ATTACH_LSM_NOW :: Num a => a Source #
c'LXC_ATTACH_DEFAULT :: Num a => a Source #
c'LXC_ATTACH_LSM :: Num a => a Source #
Attach options
data C'lxc_attach_options_t Source #
Instances
Eq C'lxc_attach_options_t Source # | |
Defined in Bindings.LXC.AttachOptions | |
Show C'lxc_attach_options_t Source # | |
Defined in Bindings.LXC.AttachOptions showsPrec :: Int -> C'lxc_attach_options_t -> ShowS # show :: C'lxc_attach_options_t -> String # showList :: [C'lxc_attach_options_t] -> ShowS # | |
Storable C'lxc_attach_options_t Source # | |
Defined in Bindings.LXC.AttachOptions sizeOf :: C'lxc_attach_options_t -> Int # alignment :: C'lxc_attach_options_t -> Int # peekElemOff :: Ptr C'lxc_attach_options_t -> Int -> IO C'lxc_attach_options_t # pokeElemOff :: Ptr C'lxc_attach_options_t -> Int -> C'lxc_attach_options_t -> IO () # peekByteOff :: Ptr b -> Int -> IO C'lxc_attach_options_t # pokeByteOff :: Ptr b -> Int -> C'lxc_attach_options_t -> IO () # peek :: Ptr C'lxc_attach_options_t -> IO C'lxc_attach_options_t # poke :: Ptr C'lxc_attach_options_t -> C'lxc_attach_options_t -> IO () # |
p'lxc_attach_options_t'env_policy :: Ptr C'lxc_attach_options_t -> Ptr C'lxc_attach_env_policy_t Source #
Attach command
data C'lxc_attach_command_t Source #
Instances
Eq C'lxc_attach_command_t Source # | |
Defined in Bindings.LXC.AttachOptions | |
Show C'lxc_attach_command_t Source # | |
Defined in Bindings.LXC.AttachOptions showsPrec :: Int -> C'lxc_attach_command_t -> ShowS # show :: C'lxc_attach_command_t -> String # showList :: [C'lxc_attach_command_t] -> ShowS # | |
Storable C'lxc_attach_command_t Source # | |
Defined in Bindings.LXC.AttachOptions sizeOf :: C'lxc_attach_command_t -> Int # alignment :: C'lxc_attach_command_t -> Int # peekElemOff :: Ptr C'lxc_attach_command_t -> Int -> IO C'lxc_attach_command_t # pokeElemOff :: Ptr C'lxc_attach_command_t -> Int -> C'lxc_attach_command_t -> IO () # peekByteOff :: Ptr b -> Int -> IO C'lxc_attach_command_t # pokeByteOff :: Ptr b -> Int -> C'lxc_attach_command_t -> IO () # peek :: Ptr C'lxc_attach_command_t -> IO C'lxc_attach_command_t # poke :: Ptr C'lxc_attach_command_t -> C'lxc_attach_command_t -> IO () # |