Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetSystemProbeSocketPath ¶
func SetSystemProbeSocketPath(socketPath string)
SetSystemProbeSocketPath provides a unix socket path location to be used by the remote system probe. This needs to be called before GetRemoteSystemProbeUtil.
func ShouldLogTracerUtilError ¶
func ShouldLogTracerUtilError() bool
ShouldLogTracerUtilError will return whether or not errors sourced from the RemoteSysProbeUtil _should_ be logged, for less noisy logging. We only want to log errors if the tracer has been initialized, or it's the first error for a particular tracer status (e.g. retrying, permafail)
Types ¶
type Conn ¶
type Conn interface { // GetListener returns the underlying net.Listener GetListener() net.Listener // Stop and clean up resources for the underlying connection Stop() }
Conn is a wrapper over some net.Listener
type RemoteSysProbeUtil ¶
type RemoteSysProbeUtil struct {
// contains filtered or unexported fields
}
RemoteSysProbeUtil wraps interactions with a remote system probe service
func GetRemoteSystemProbeUtil ¶
func GetRemoteSystemProbeUtil() (*RemoteSysProbeUtil, error)
GetRemoteSystemProbeUtil returns a ready to use RemoteSysProbeUtil. It is backed by a shared singleton.
func (*RemoteSysProbeUtil) GetConnections ¶
func (r *RemoteSysProbeUtil) GetConnections(clientID string) (*model.Connections, error)
GetConnections returns a set of active network connections, retrieved from the system probe service
type UDSListener ¶
type UDSListener struct {
// contains filtered or unexported fields
}
UDSListener (Unix Domain Socket Listener)
func NewUDSListener ¶
func NewUDSListener(cfg *config.AgentConfig) (*UDSListener, error)
NewUDSListener returns an idle UDSListener
func (*UDSListener) GetListener ¶
func (l *UDSListener) GetListener() net.Listener
GetListener will return the underlying Conn's net.Listener
func (*UDSListener) Stop ¶
func (l *UDSListener) Stop()
Stop closes the UDSListener connection and stops listening