dockeracquisition

package
v1.8.3-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 29 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

View Source
const ModuleName = "docker"

Variables

This section is empty.

Functions

func ReadTailScanner

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

Types

type BackOffFactory added in v1.7.1

type BackOffFactory func() backoff.BackOff

type Configuration added in v1.7.5

type Configuration struct {
	configuration.DataSourceCommonCfg `yaml:",inline"`

	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"`
	ServiceName         []string `yaml:"service_name"`
	ServiceID           []string `yaml:"service_id"`
	ServiceNameRegexp   []string `yaml:"service_name_regexp"`
	ServiceIDRegexp     []string `yaml:"service_id_regexp"`
	UseServiceLabels    bool     `yaml:"use_service_labels"`
	UseContainerLabels  bool     `yaml:"use_container_labels"`
	MaxBufferSize       int      `yaml:"max_buffer_size"`
}

type ContainerConfig

type ContainerConfig struct {
	Name string
	ID   string

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

func NewContainerConfig added in v1.7.1

func NewContainerConfig(baseOpts *client.ContainerLogsOptions, id string, name string, labels map[string]string, tty bool) *ContainerConfig

NewContainerConfig creates per-container log options by copying the base options

type Source added in v1.7.5

type Source struct {
	Config Configuration

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

func (*Source) CanRun added in v1.7.5

func (*Source) CanRun() error

func (*Source) Configure added in v1.7.5

func (d *Source) Configure(ctx context.Context, yamlConfig []byte, logger *log.Entry, metricsLevel metrics.AcquisitionMetricsLevel) error

func (*Source) ConfigureByDSN added in v1.7.5

func (d *Source) ConfigureByDSN(_ context.Context, dsn string, labels map[string]string, logger *log.Entry, uuid string) error

func (*Source) ContainerManager added in v1.7.5

func (d *Source) ContainerManager(ctx context.Context, in chan *ContainerConfig, deleteChan chan *ContainerConfig, outChan chan pipeline.Event) error

func (*Source) Dump added in v1.7.5

func (d *Source) Dump() any

func (*Source) EvalContainer added in v1.7.5

func (d *Source) EvalContainer(ctx context.Context, container dockerContainer.Summary) *ContainerConfig

func (*Source) EvalService added in v1.7.5

func (d *Source) EvalService(_ context.Context, service dockerTypesSwarm.Service) *ContainerConfig

func (*Source) GetAggregMetrics added in v1.7.5

func (*Source) GetAggregMetrics() []prometheus.Collector

func (*Source) GetMetrics added in v1.7.5

func (*Source) GetMetrics() []prometheus.Collector

func (*Source) GetMode added in v1.7.5

func (d *Source) GetMode() string

func (*Source) GetName added in v1.7.5

func (*Source) GetName() string

func (*Source) GetUuid added in v1.7.5

func (d *Source) GetUuid() string

func (*Source) OneShotAcquisition added in v1.7.5

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

OneShotAcquisition reads a set of file and returns when done

func (*Source) ServiceManager added in v1.7.5

func (d *Source) ServiceManager(ctx context.Context, in chan *ContainerConfig, deleteChan chan *ContainerConfig, outChan chan pipeline.Event) error

func (*Source) StreamingAcquisition added in v1.7.5

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

func (*Source) TailContainer added in v1.7.5

func (d *Source) TailContainer(ctx context.Context, container *ContainerConfig, outChan chan pipeline.Event, deleteChan chan *ContainerConfig) error

func (*Source) TailService added in v1.7.5

func (d *Source) TailService(ctx context.Context, service *ContainerConfig, outChan chan pipeline.Event, deleteChan chan *ContainerConfig) error

func (*Source) UnmarshalConfig added in v1.7.5

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

func (*Source) Watch added in v1.7.5

func (d *Source) Watch(ctx context.Context, containerChan chan *ContainerConfig, containerDeleteChan chan *ContainerConfig, serviceChan chan *ContainerConfig, serviceDeleteChan chan *ContainerConfig) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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