Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶
type Connection struct {
LocalIP net.IP
RemoteIP net.IP
LocalPort uint16
RemotePort uint16
Kind NetProto
}
func ParseNetstat ¶
func ParseNetstat(r io.Reader) (rv []*Connection, err error)
func (*Connection) IsInbound ¶
func (cn *Connection) IsInbound() bool
func (*Connection) IsListener ¶
func (cn *Connection) IsListener() bool
type Container ¶
type Container struct {
Endpoints map[string]string
ID string
Name string
Image string
// contains filtered or unexported fields
}
func (*Container) ForEachListener ¶
func (ct *Container) ForEachListener(it func(*Connection))
func (*Container) ForEachOutbound ¶
func (ct *Container) ForEachOutbound(it func(*Connection))
func (*Container) SetConnections ¶
func (ct *Container) SetConnections(conns []*Connection)
type ContainerClient ¶
type DockerClient ¶
type DockerClient struct {
// contains filtered or unexported fields
}
func NewDockerClient ¶
func NewDockerClient() (rv *DockerClient, err error)
func (*DockerClient) Close ¶
func (d *DockerClient) Close() (err error)
func (*DockerClient) Containers ¶
Click to show internal directories.
Click to hide internal directories.