Versions in this module Expand all Collapse all v0 v0.3.0 May 1, 2024 Changes in this version + const SdNotifyReady + const SdNotifyReloading + const SdNotifyStopping + const SdNotifyWatchdog + var CGROUP_PROC string = "/proc/%d/cgroup" + var PROCS string = "cgroup.procs" + var SYSFS string = "/sys/fs/cgroup" + func ContainerLogs(c *Context, Id string) error + func CreateContainer(c *Context) (types.Container, error) + func CreatePidFile(pidfile string, pid int) error + func IsPidRunning(pid int) bool + func MoveCgroups(c *Context) (bool, error) + func NewLogger() *logger + func Notify(c *Context) error + func PidFile(c *Context) error + func RunContainer(c *Context) error + func StopContainer(c *Context) error + func WaitFinished(c *Context) error + func Watchdog(c *Context) error + type Context struct + AllCgroups bool + Args []string + Cgroups []string + Client *client.Client + Cmd *exec.Cmd + Env bool + Id string + Log *logger + Logs bool + Monitor *Monitor + Name string + Notifier *Notifier + Notify bool + Pid int + PidFile string + Rm bool + func (c *Context) GetClient() (*client.Client, error) + type Monitor struct + func NewMonitor() *Monitor + func (m *Monitor) RunMonitor(c *Context) + func (m *Monitor) StopMonitor() + type Notifier struct + func AddNotify(c *Context) (*Notifier, error) + func Open(sock string) (*Notifier, error) + func (n *Notifier) Close() error + func (n *Notifier) Send(s ...string) error