Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateScheduler ¶ added in v0.9.0
func CreateScheduler(sources *logsConfig.LogSources, services *service.Services)
CreateScheduler creates the scheduler.
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 GetScheduler ¶ added in v0.9.0
func GetScheduler() *Scheduler
GetScheduler returns the logs-config scheduler if set.
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) Unschedule ¶
func (s *Scheduler) Unschedule(configs []integration.Config)
Unschedule removes all the sources and services matching the integration configs.