scheduler

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

Scheduler creates and deletes new sources and services to start or stop log collection on different kind of inputs. A source represents a logs-config that can be defined either in a configuration file, in a docker label or a pod annotation. A service represents a process that is actually running on the host like a container for example.

func NewScheduler

func NewScheduler(sources *logsConfig.LogSources, services *service.Services) *Scheduler

NewScheduler returns a new scheduler.

func (*Scheduler) Schedule

func (s *Scheduler) Schedule(configs []integration.Config)

Schedule creates new sources and services from a list of integration configs. An integration config can be mapped to a list of sources when it contains a Provider, while an integration config can be mapped to a service when it contains an Entity. An entity represents a unique identifier for a process that be reused to query logs.

func (*Scheduler) Stop

func (s *Scheduler) Stop()

Stop does nothing.

func (*Scheduler) Unschedule

func (s *Scheduler) Unschedule(configs []integration.Config)

Unschedule removes all the sources and services matching the integration configs.

Jump to

Keyboard shortcuts

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