Documentation ¶
Index ¶
- Constants
- Variables
- 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
- type Monitor
- type Notifier
Constants ¶
View Source
const ( SdNotifyReady = "READY=1" SdNotifyStopping = "STOPPING=1" SdNotifyReloading = "RELOADING=1" SdNotifyWatchdog = "WATCHDOG=1" )
Variables ¶
View Source
var ( SYSFS string = "/sys/fs/cgroup" PROCS string = "cgroup.procs" CGROUP_PROC string = "/proc/%d/cgroup" )
Functions ¶
func ContainerLogs ¶
func CreatePidFile ¶
func IsPidRunning ¶
func MoveCgroups ¶
func RunContainer ¶
func StopContainer ¶
func WaitFinished ¶
Types ¶
type Context ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func NewMonitor ¶
func NewMonitor() *Monitor
func (*Monitor) RunMonitor ¶
func (*Monitor) StopMonitor ¶
func (m *Monitor) StopMonitor()
Click to show internal directories.
Click to hide internal directories.