dockeracquisition

package
v1.6.6-rc4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: MIT Imports: 19 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadTailScanner

func ReadTailScanner(scanner *bufio.Scanner, out chan string, t *tomb.Tomb) error

Types

type ContainerConfig

type ContainerConfig struct {
	Name string
	ID   string

	Labels map[string]string
	Tty    bool
	// contains filtered or unexported fields
}

type DockerConfiguration

type DockerConfiguration struct {
	CheckInterval                     string   `yaml:"check_interval"`
	FollowStdout                      bool     `yaml:"follow_stdout"`
	FollowStdErr                      bool     `yaml:"follow_stderr"`
	Until                             string   `yaml:"until"`
	Since                             string   `yaml:"since"`
	DockerHost                        string   `yaml:"docker_host"`
	ContainerName                     []string `yaml:"container_name"`
	ContainerID                       []string `yaml:"container_id"`
	ContainerNameRegexp               []string `yaml:"container_name_regexp"`
	ContainerIDRegexp                 []string `yaml:"container_id_regexp"`
	UseContainerLabels                bool     `yaml:"use_container_labels"`
	configuration.DataSourceCommonCfg `yaml:",inline"`
}

type DockerSource

type DockerSource struct {
	Config DockerConfiguration

	CheckIntervalDuration time.Duration

	Client client.CommonAPIClient
	// contains filtered or unexported fields
}

func (*DockerSource) CanRun

func (d *DockerSource) CanRun() error

func (*DockerSource) Configure

func (d *DockerSource) Configure(yamlConfig []byte, logger *log.Entry, metricsLevel int) error

func (*DockerSource) ConfigureByDSN

func (d *DockerSource) ConfigureByDSN(dsn string, labels map[string]string, logger *log.Entry, uuid string) error

func (*DockerSource) DockerManager

func (d *DockerSource) DockerManager(ctx context.Context, in chan *ContainerConfig, deleteChan chan *ContainerConfig, outChan chan types.Event) error

func (*DockerSource) Dump

func (d *DockerSource) Dump() interface{}

func (*DockerSource) EvalContainer

func (d *DockerSource) EvalContainer(ctx context.Context, container dockerTypes.Container) *ContainerConfig

func (*DockerSource) GetAggregMetrics

func (d *DockerSource) GetAggregMetrics() []prometheus.Collector

func (*DockerSource) GetMetrics

func (d *DockerSource) GetMetrics() []prometheus.Collector

func (*DockerSource) GetMode

func (d *DockerSource) GetMode() string

func (*DockerSource) GetName

func (d *DockerSource) GetName() string

func (*DockerSource) GetUuid added in v1.5.0

func (d *DockerSource) GetUuid() string

func (*DockerSource) OneShotAcquisition

func (d *DockerSource) OneShotAcquisition(ctx context.Context, out chan types.Event, t *tomb.Tomb) error

OneShotAcquisition reads a set of file and returns when done

func (*DockerSource) StreamingAcquisition

func (d *DockerSource) StreamingAcquisition(ctx context.Context, out chan types.Event, t *tomb.Tomb) error

func (*DockerSource) SupportedModes

func (d *DockerSource) SupportedModes() []string

SupportedModes returns the supported modes by the acquisition module

func (*DockerSource) TailDocker

func (d *DockerSource) TailDocker(ctx context.Context, container *ContainerConfig, outChan chan types.Event, deleteChan chan *ContainerConfig) error

func (*DockerSource) UnmarshalConfig added in v1.5.0

func (d *DockerSource) UnmarshalConfig(yamlConfig []byte) error

func (*DockerSource) WatchContainer

func (d *DockerSource) WatchContainer(ctx context.Context, monitChan chan *ContainerConfig, deleteChan chan *ContainerConfig) error

Jump to

Keyboard shortcuts

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