Documentation ¶
Index ¶
- func FindFirstProcess(pids []int, processName string) (int, error)
- func GetPort(pid int) (int, error)
- func GetPortOfJavaProcess(pid int) (int, error)
- func RunSquashClient(debugger func(string) Debugger, conttopid platforms.ContainerProcess) error
- type DebugController
- type DebugHandler
- type DebugHostType
- type DebugServer
- type Debugger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindFirstProcess ¶ added in v0.2.1
func GetPortOfJavaProcess ¶ added in v0.2.1
func RunSquashClient ¶
func RunSquashClient(debugger func(string) Debugger, conttopid platforms.ContainerProcess) error
Types ¶
type DebugController ¶ added in v0.3.0
type DebugController struct {
// contains filtered or unexported fields
}
func NewDebugController ¶ added in v0.3.0
func NewDebugController(debugger func(string) Debugger, udpateAttachment func(*models.DebugAttachment) error, conttopid platforms.ContainerProcess) *DebugController
func (*DebugController) HandleAddedRemovedAttachments ¶ added in v0.3.0
func (d *DebugController) HandleAddedRemovedAttachments(attachments, removedAtachment []*models.DebugAttachment) error
type DebugHandler ¶
type DebugHandler struct {
// contains filtered or unexported fields
}
func NewDebugHandler ¶
func NewDebugHandler(client *client.Squash, debugger func(string) Debugger, conttopid platforms.ContainerProcess) *DebugHandler
type DebugHostType ¶ added in v0.2.1
type DebugHostType int
DebugHostType - type of host to connect debugger
const ( // DebugHostTypeClient - debugger needs to connect to squash-client DebugHostTypeClient DebugHostType = iota // DebugHostTypeTarget - debugger needs to connect to target DebugHostTypeTarget )
type DebugServer ¶
type DebugServer interface { /// Detach from the process we are debugging (allowing it to resume normal execution). Detach() error /// Returns either DebugHostTypeClient or DebugHostTypeTarget HostType() DebugHostType /// Return the port that the debug server listens on. Port() int }
type Debugger ¶
type Debugger interface { /// Attach a debugger to pid and return the a debug server object Attach(pid int) (DebugServer, error) }
/ Debugger interface. implement this to add a new debugger support to squash.
Click to show internal directories.
Click to hide internal directories.