Documentation ¶
Index ¶
- type Pm2Exec
- func (instance *Pm2Exec) Delete(uid string) (response string, err error)
- func (instance *Pm2Exec) ExecuteCommand(arguments ...string) (out string, err error)
- func (instance *Pm2Exec) GetPath(path string) (response string)
- func (instance *Pm2Exec) GetTempPath(subPath string) (response string)
- func (instance *Pm2Exec) GetWorkPath(subPath string) (response string)
- func (instance *Pm2Exec) Help() (string, error)
- func (instance *Pm2Exec) HelpOn(command string) (string, error)
- func (instance *Pm2Exec) Install() (response string, err error)
- func (instance *Pm2Exec) IsInstalled() bool
- func (instance *Pm2Exec) List() (string, error)
- func (instance *Pm2Exec) LogDisableRotation()
- func (instance *Pm2Exec) LogFlush()
- func (instance *Pm2Exec) Root() string
- func (instance *Pm2Exec) Run(command string) (string, error)
- func (instance *Pm2Exec) RunAsync(command string) (*executor.ConsoleProgramSession, error)
- func (instance *Pm2Exec) SetLogger(logger gg_log.ILogger) *Pm2Exec
- func (instance *Pm2Exec) SetRoot(dir string) *Pm2Exec
- func (instance *Pm2Exec) SetSubTemp(enabled bool) *Pm2Exec
- func (instance *Pm2Exec) SetTemp(dir string) *Pm2Exec
- func (instance *Pm2Exec) SetWorkPath(dir string) *Pm2Exec
- func (instance *Pm2Exec) Start(indexPath string, watchEnabled bool) (response string, err error)
- func (instance *Pm2Exec) Stop(uid string) (response string, err error)
- func (instance *Pm2Exec) Temp() string
- func (instance *Pm2Exec) Version() (string, error)
- func (instance *Pm2Exec) Work() string
- type Pm2Helper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pm2Exec ¶
type Pm2Exec struct {
// contains filtered or unexported fields
}
func (*Pm2Exec) Delete ¶
Delete deletes a process identified by the given uid or all processes if uid is empty. It ensures the necessary program is installed before attempting deletion.
func (*Pm2Exec) ExecuteCommand ¶
func (*Pm2Exec) GetTempPath ¶
func (*Pm2Exec) GetWorkPath ¶
func (*Pm2Exec) IsInstalled ¶
func (*Pm2Exec) LogDisableRotation ¶
func (instance *Pm2Exec) LogDisableRotation()
func (*Pm2Exec) RunAsync ¶
func (instance *Pm2Exec) RunAsync(command string) (*executor.ConsoleProgramSession, error)
func (*Pm2Exec) SetSubTemp ¶
func (*Pm2Exec) SetWorkPath ¶
func (*Pm2Exec) Start ¶
Start initializes the NpmExec instance with the given indexPath, setting root and work paths, then verifies installation. If the required environments are not installed, it proceeds with installation and starts the node program using pm2.
Click to show internal directories.
Click to hide internal directories.