Documentation ¶
Index ¶
- Constants
- Variables
- func AttachContainerToPID(c *config.Config, masterPid int) error
- func AttachLoopDevice(loopDev int, file *os.File) error
- func ChangeDir(c *config.Config) changesDir
- func CheckExistence(c *config.Config) error
- func DetachLoopDevice(loopDev int) error
- func Exec()
- func FindFreeLoopDevice() (int, error)
- func IsChild() bool
- func IsPidRunning(pid int) (bool, error)
- func IsRunning(c *config.Config) bool
- func MountRootfs(c *config.Config) error
- func SendSig(pid, sig int) error
- func Start(c *config.Config, args []string) (int, error)
- func Touch(path string) error
- func UmountRootfs(c *config.Config) []error
Constants ¶
View Source
const ( // https://github.com/util-linux/util-linux/blob/master/include/loopdev.h#L46 LOOP_SET_FD = 0x4C00 LOOP_CLR_FD = 0x4C01 LOOP_SET_STATUS64 = 0x4C04 LOOP_CTL_ADD = 0x4C80 LOOP_CTL_REMOVE = 0x4C81 LOOP_CTL_GET_FREE = 0x4C82 LOOP_DEVICE_PREFIX = "/dev/loop" )
View Source
const ( ContainerStatusCreating = "creating" ContainerStatusRunning = "running" ContainerStatusStopped = "stopped" ContainerStatusHang = "hang" )
View Source
const (
CHILD_CONFIG_ENV_NAME = "SANDAL_CHILD"
)
Variables ¶
View Source
var ErrPidExistenceControl = fmt.Errorf("unable to find proccess")
Functions ¶
func CheckExistence ¶
func DetachLoopDevice ¶
func IsPidRunning ¶ added in v1.1.0
func MountRootfs ¶
func UmountRootfs ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.