client

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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(address, socketPath string) *LogClient

func (*LogClient) CloseChannel added in v0.50.0

func (l *LogClient) CloseChannel() error

CloseChannel Cleanly close the connection by sending a close message and then waiting (with timeout) for the server to close the connection.

func (*LogClient) ReadProcessLogs added in v0.50.0

func (l *LogClient) ReadProcessLogs(name string, offset int, follow bool, out io.StringWriter) (err error)

type PcClient added in v0.50.0

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

func NewTcpClient added in v1.2.0

func NewTcpClient(host string, port, logLength int) *PcClient

func NewUdsClient added in v1.2.0

func NewUdsClient(sockPath string, logLength int) *PcClient

func (*PcClient) ErrorForSecs added in v0.50.0

func (p *PcClient) ErrorForSecs() int

func (*PcClient) GetHostName added in v0.50.0

func (p *PcClient) GetHostName() (string, error)

func (*PcClient) GetLexicographicProcessNames added in v0.50.0

func (p *PcClient) GetLexicographicProcessNames() ([]string, error)

func (*PcClient) GetLogLength added in v0.50.0

func (p *PcClient) GetLogLength() int

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 (p *PcClient) GetProcessLog(name string, offsetFromEnd, limit int) ([]string, error)

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) GetProcessesName added in v1.2.0

func (p *PcClient) GetProcessesName() ([]string, 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) IsAlive added in v0.50.0

func (p *PcClient) IsAlive() error

func (*PcClient) IsRemote added in v0.50.0

func (p *PcClient) IsRemote() bool

func (*PcClient) RestartProcess added in v0.50.0

func (p *PcClient) RestartProcess(name string) error

func (*PcClient) ScaleProcess added in v0.55.0

func (p *PcClient) ScaleProcess(name string, scale int) error

func (*PcClient) ShutDownProject added in v0.50.0

func (p *PcClient) ShutDownProject() error

func (*PcClient) StartProcess added in v0.50.0

func (p *PcClient) StartProcess(name string) error

func (*PcClient) StopProcess added in v0.50.0

func (p *PcClient) StopProcess(name string) error

func (*PcClient) StopProcesses added in v0.60.0

func (p *PcClient) StopProcesses(names []string) ([]string, error)

func (*PcClient) UnSubscribeLogger added in v0.50.0

func (p *PcClient) UnSubscribeLogger(name string, observer pclog.LogObserver) error

Jump to

Keyboard shortcuts

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