Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectToContainerCollectionConfig ¶
type ConnectToContainerCollectionConfig[Event any] struct { Tracer Tracer[Event] Resolver containercollection.ContainerResolver Selector containercollection.ContainerSelector EventCallback func(*containercollection.Container, Event) Base func(eventtypes.Event) Event }
type ConnectionToContainerCollection ¶
type ConnectionToContainerCollection struct {
// contains filtered or unexported fields
}
func ConnectToContainerCollection ¶
func ConnectToContainerCollection[Event any]( config *ConnectToContainerCollectionConfig[Event], ) (*ConnectionToContainerCollection, error)
ConnectToContainerCollection connects a networking tracer to the container collection package. It creates the needed logic to call the Attach() function on the tracer each time a container is created and to call Detach() each time the container is removed. Callers must call Close() on the returned ConnectionToContainerCollection object.
func (*ConnectionToContainerCollection) Close ¶
func (c *ConnectionToContainerCollection) Close()
Click to show internal directories.
Click to hide internal directories.