Versions in this module Expand all Collapse all v0 v0.0.1 Jan 19, 2021 Changes in this version + const CANCEL_PROCESS + const COMPLETE_PROCESS + const FALSE + const TRUE + const UNEXPECTED + func Protect(f *Frigate) + func RegisterGolangTask(name string, task func()) + type ApplyConfig interface + Apply func(cmd *exec.Cmd) error + type AutoRestartStrategy string + type Frigate struct + ControlGroups []*cgroup.ControlGroup + Log *logger.FLogger + ProtectTask *ProtectTask + SignalChan chan error + Strategy *Strategy + func Create(name string) *Frigate + func (frigate *Frigate) Apply(cmd *exec.Cmd) (err error) + func (frigate *Frigate) Start() (err error) + func (frigate *Frigate) Stop(d time.Duration) (err error) + type ProtectTask struct + Cmd *exec.Cmd + Name string + Process *os.Process + StartTime time.Time + func NewProtectTask(path string) *ProtectTask + func (t *ProtectTask) Done() <-chan error + func (t *ProtectTask) Start() (err error) + func (t *ProtectTask) Stop(d time.Duration) (err error) + type Runable interface + Start func() (err error) + Stop func(d time.Duration) (err error) + type Strategy struct + AutoRestart bool + AutoStart bool + Chroot string + GraceClose bool + GraceCloseWait time.Duration + Kill bool + StartRetries int + Startsecs time.Duration + User *user.User + func (s *Strategy) Apply(cmd *exec.Cmd) (err error)