Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotEnough = errors.New("not enough items")
Functions ¶
func Build ¶
func Build( cfg *Config, cli ContainerClient, ) error
Types ¶
type Config ¶ added in v1.4.0
type Config struct {
Builder Builder
Enricher Enricher
Follow string
Proto NetProto
OnlyLocal bool
FullInfo bool
NoLoops bool
}
func (*Config) MatchProto ¶ added in v1.4.0
type Connection ¶
type Connection struct {
LocalIP net.IP
RemoteIP net.IP
LocalPort uint16
RemotePort uint16
Proto 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
Process *ProcessInfo
Volumes []*VolumeInfo
// contains filtered or unexported fields
}
func (*Container) ConnectionsCount ¶ added in v1.4.7
func (*Container) IterListeners ¶ added in v1.5.1
func (ct *Container) IterListeners(it func(*Connection))
func (*Container) IterOutbounds ¶ added in v1.5.1
func (ct *Container) IterOutbounds(it func(*Connection))
func (*Container) SetConnections ¶
func (ct *Container) SetConnections(conns []*Connection)
type ContainerClient ¶
type MetaLoader ¶ added in v1.4.0
type MetaLoader struct {
// contains filtered or unexported fields
}
func NewMetaLoader ¶ added in v1.4.0
func NewMetaLoader() *MetaLoader
func (*MetaLoader) Enrich ¶ added in v1.4.0
func (ex *MetaLoader) Enrich(n *node.Node)
func (*MetaLoader) FromReader ¶ added in v1.4.0
func (ex *MetaLoader) FromReader(r io.Reader) error
type ProcessInfo ¶ added in v1.5.0
type VolumeInfo ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.