Documentation ¶
Overview ¶
Package whalefriend implements a Containerizer that discovers containers from container engines supported by the github.com/thediveo/whalewatcher module, such as Docker and containerd (moby & friends).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(ctx context.Context, watchers []watcher.Watcher) containerizer.Containerizer
New returns a new containerizer using the specified set of container watchers. This also spins up the watchers to constantly watch in the background for any signs of container life and death.
Types ¶
type WhaleFriend ¶
type WhaleFriend struct {
// contains filtered or unexported fields
}
WhaleFriend is a containerizer internally backed by one or more Whalewatchers, that is, container watchers.
func (*WhaleFriend) Close ¶
func (c *WhaleFriend) Close()
Close closes all watcher resources associated with this WhaleFriend.
func (*WhaleFriend) Containers ¶
func (c *WhaleFriend) Containers( ctx context.Context, procs model.ProcessTable, pidmap model.PIDMapper, ) []*model.Container
Containers returns the current container state of (alive) containers from all assigned whale watchers.