whalefriend

package
v0.18.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL