running

package
v0.0.0-...-7f7efcf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2024 License: BSD-2-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(ctx *context.Ctx) error

func CollectInstancesFromConf

func CollectInstancesFromConf(ctx *context.Ctx) ([]string, error)

func FillCtx

func FillCtx(ctx *context.Ctx, args []string) error

func Log

func Log(ctx *context.Ctx) error

func Start

func Start(ctx *context.Ctx) error

func Status

func Status(ctx *context.Ctx) error

func Stop

func Stop(ctx *context.Ctx) error

Types

type ColorizedWriter

type ColorizedWriter struct {
	// contains filtered or unexported fields
}

func (*ColorizedWriter) Close

func (w *ColorizedWriter) Close() error

func (*ColorizedWriter) Write

func (w *ColorizedWriter) Write(p []byte) (int, error)

type ProcStatusType

type ProcStatusType int

type Process

type Process struct {
	ID     string
	Status ProcStatusType
	Error  error
	// contains filtered or unexported fields
}

func NewInstanceProcess

func NewInstanceProcess(ctx *context.Ctx, instanceName string) *Process

func NewStateboardProcess

func NewStateboardProcess(ctx *context.Ctx) *Process

func (*Process) Clean

func (process *Process) Clean() common.Result

func (*Process) IsRunning

func (process *Process) IsRunning() bool

func (*Process) Kill

func (process *Process) Kill() error

func (*Process) Log

func (process *Process) Log(follow bool, n int) error

func (*Process) SendSignal

func (process *Process) SendSignal(sig syscall.Signal) error

func (*Process) SetPidAndStatus

func (process *Process) SetPidAndStatus()

func (*Process) Start

func (process *Process) Start(daemonize bool, disableLogPrefix bool) error

func (*Process) Stop

func (process *Process) Stop(force bool) error

func (*Process) Terminate

func (process *Process) Terminate() error

func (*Process) Wait

func (process *Process) Wait() error

func (*Process) WaitReady

func (process *Process) WaitReady(timeout time.Duration) error

type ProcessesSet

type ProcessesSet []*Process

func (*ProcessesSet) Add

func (set *ProcessesSet) Add(processes ...*Process)

func (*ProcessesSet) Clean

func (set *ProcessesSet) Clean() error

func (*ProcessesSet) Log

func (set *ProcessesSet) Log(follow bool, lines int) error

func (*ProcessesSet) Start

func (set *ProcessesSet) Start(daemonize bool, disableLogPrefix bool, timeout time.Duration) error

func (*ProcessesSet) Status

func (set *ProcessesSet) Status() error

func (*ProcessesSet) Stop

func (set *ProcessesSet) Stop(force bool) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL