Documentation
¶
Index ¶
- Constants
- Variables
- func AttachContainerToPID(containerPid, masterPid int) error
- func ContainerInitProc()
- func DeRunContainer(c *config.Config)
- func Exec(c []string, chroot string, user string) (exitCode int, err error)
- func IsChild() bool
- func IsContainerRuning(name string) (bool, error)
- func IsPidRunning(pid int) (bool, error)
- func Kill(c *config.Config, signal int, second int) error
- func KillByName(name string, signal int, second int) error
- func NewLogWriter(name, t string) *containerLog
- func Run(c *config.Config) error
- func SendSig(pid, sig int) error
- func Touch(path string) error
- func UmountRootfs(c *config.Config) []error
- type User
Constants ¶
View Source
const ( ContainerStatusCreating = "creating" ContainerStatusRunning = "running" ContainerStatusStopped = "stopped" ContainerStatusHang = "hang" )
Variables ¶
View Source
var ErrPidExistenceControl = fmt.Errorf("unable to find proccess")
Functions ¶
func AttachContainerToPID ¶
func ContainerInitProc ¶ added in v1.9.0
func ContainerInitProc()
Executed at namespace environment before real process
func DeRunContainer ¶
func IsContainerRuning ¶ added in v1.9.0
func IsPidRunning ¶
func NewLogWriter ¶ added in v1.9.0
func NewLogWriter(name, t string) *containerLog
func UmountRootfs ¶
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.