Documentation ¶
Index ¶
- func Clean(ctx *context.Ctx) error
- func CollectInstancesFromConf(ctx *context.Ctx) ([]string, error)
- func FillCtx(ctx *context.Ctx, args []string) error
- func Log(ctx *context.Ctx) error
- func Start(ctx *context.Ctx) error
- func Status(ctx *context.Ctx) error
- func Stop(ctx *context.Ctx) error
- type ColorizedWriter
- type ProcStatusType
- type Process
- func (process *Process) Clean() common.Result
- func (process *Process) IsRunning() bool
- func (process *Process) Kill() error
- func (process *Process) Log(follow bool, n int) error
- func (process *Process) SendSignal(sig syscall.Signal) error
- func (process *Process) SetPidAndStatus()
- func (process *Process) Start(daemonize bool, disableLogPrefix bool) error
- func (process *Process) Stop(force bool) error
- func (process *Process) Terminate() error
- func (process *Process) Wait() error
- func (process *Process) WaitReady(timeout time.Duration) error
- type ProcessesSet
- func (set *ProcessesSet) Add(processes ...*Process)
- func (set *ProcessesSet) Clean() error
- func (set *ProcessesSet) Log(follow bool, lines int) error
- func (set *ProcessesSet) Start(daemonize bool, disableLogPrefix bool, timeout time.Duration) error
- func (set *ProcessesSet) Status() error
- func (set *ProcessesSet) Stop(force bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ColorizedWriter ¶
type ColorizedWriter struct {
// contains filtered or unexported fields
}
func (*ColorizedWriter) Close ¶
func (w *ColorizedWriter) Close() error
type ProcStatusType ¶
type ProcStatusType int
type Process ¶
type Process struct { ID string Status ProcStatusType Error error // contains filtered or unexported fields }
func NewStateboardProcess ¶
func (*Process) SetPidAndStatus ¶
func (process *Process) SetPidAndStatus()
type ProcessesSet ¶
type ProcessesSet []*Process
func (*ProcessesSet) Add ¶
func (set *ProcessesSet) Add(processes ...*Process)
func (*ProcessesSet) Clean ¶
func (set *ProcessesSet) Clean() error
func (*ProcessesSet) Status ¶
func (set *ProcessesSet) Status() error
func (*ProcessesSet) Stop ¶
func (set *ProcessesSet) Stop(force bool) error
Click to show internal directories.
Click to hide internal directories.