Documentation
¶
Index ¶
- func GetProcessInfo(address string, port int, name string) (*types.ProcessConfig, error)
- func GetProcessPorts(address string, port int, name string) (*types.ProcessPorts, error)
- func GetProcessState(address string, port int, name string) (*types.ProcessState, error)
- func GetProcessesName(address string, port int) ([]string, error)
- func GetProcessesState(address string, port int) (*types.ProcessesState, error)
- func RestartProcess(address string, port int, name string) error
- func ScaleProcess(address string, port int, name string, scale int) error
- func StartProcess(address string, port int, name string) error
- func StopProcess(address string, port int, name string) error
- func StopProcesses(address string, port int, names []string) ([]string, error)
- type LogClient
- type PcClient
- func (p *PcClient) ErrorForSecs() int
- func (p *PcClient) GetHostName() (string, error)
- func (p *PcClient) GetLexicographicProcessNames() ([]string, error)
- func (p *PcClient) GetLogLength() int
- func (p *PcClient) GetLogsAndSubscribe(name string, observer pclog.LogObserver) error
- func (p *PcClient) GetProcessInfo(name string) (*types.ProcessConfig, error)
- func (p *PcClient) GetProcessLog(name string, offsetFromEnd, limit int) ([]string, error)
- func (p *PcClient) GetProcessPorts(name string) (*types.ProcessPorts, error)
- func (p *PcClient) GetProcessState(name string) (*types.ProcessState, error)
- func (p *PcClient) GetProcessesState() (*types.ProcessesState, error)
- func (p *PcClient) GetProjectState(withMemory bool) (*types.ProjectState, error)
- func (p *PcClient) IsAlive() error
- func (p *PcClient) IsRemote() bool
- func (p *PcClient) RestartProcess(name string) error
- func (p *PcClient) ScaleProcess(name string, scale int) error
- func (p *PcClient) ShutDownProject() error
- func (p *PcClient) StartProcess(name string) error
- func (p *PcClient) StopProcess(name string) error
- func (p *PcClient) StopProcesses(names []string) ([]string, error)
- func (p *PcClient) UnSubscribeLogger(name string, observer pclog.LogObserver) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProcessInfo ¶ added in v0.50.0
func GetProcessPorts ¶ added in v0.55.0
func GetProcessState ¶ added in v0.50.0
func GetProcessesState ¶ added in v0.50.0
func GetProcessesState(address string, port int) (*types.ProcessesState, error)
func RestartProcess ¶ added in v0.60.0
func ScaleProcess ¶ added in v0.55.0
Types ¶
type LogClient ¶ added in v0.50.0
type LogClient struct {
Format string
// contains filtered or unexported fields
}
func NewLogClient ¶ added in v0.50.0
func NewLogClient() *LogClient
func (*LogClient) CloseChannel ¶ added in v0.50.0
CloseChannel Cleanly close the connection by sending a close message and then waiting (with timeout) for the server to close the connection.
type PcClient ¶ added in v0.50.0
type PcClient struct {
// contains filtered or unexported fields
}
func (*PcClient) ErrorForSecs ¶ added in v0.50.0
func (*PcClient) GetHostName ¶ added in v0.50.0
func (*PcClient) GetLexicographicProcessNames ¶ added in v0.50.0
func (*PcClient) GetLogLength ¶ added in v0.50.0
func (*PcClient) GetLogsAndSubscribe ¶ added in v0.50.0
func (p *PcClient) GetLogsAndSubscribe(name string, observer pclog.LogObserver) error
func (*PcClient) GetProcessInfo ¶ added in v0.50.0
func (p *PcClient) GetProcessInfo(name string) (*types.ProcessConfig, error)
func (*PcClient) GetProcessLog ¶ added in v0.50.0
func (*PcClient) GetProcessPorts ¶ added in v0.55.0
func (p *PcClient) GetProcessPorts(name string) (*types.ProcessPorts, error)
func (*PcClient) GetProcessState ¶ added in v0.50.0
func (p *PcClient) GetProcessState(name string) (*types.ProcessState, error)
func (*PcClient) GetProcessesState ¶ added in v0.50.0
func (p *PcClient) GetProcessesState() (*types.ProcessesState, error)
func (*PcClient) GetProjectState ¶ added in v0.75.0
func (p *PcClient) GetProjectState(withMemory bool) (*types.ProjectState, error)
func (*PcClient) RestartProcess ¶ added in v0.50.0
func (*PcClient) ScaleProcess ¶ added in v0.55.0
func (*PcClient) ShutDownProject ¶ added in v0.50.0
func (*PcClient) StartProcess ¶ added in v0.50.0
func (*PcClient) StopProcess ¶ added in v0.50.0
func (*PcClient) StopProcesses ¶ added in v0.60.0
func (*PcClient) UnSubscribeLogger ¶ added in v0.50.0
func (p *PcClient) UnSubscribeLogger(name string, observer pclog.LogObserver) error
Click to show internal directories.
Click to hide internal directories.