beats: github.com/elastic/beats/libbeat/management Index | Files

package management

import "github.com/elastic/beats/libbeat/management"

Index

Package Files

management.go

Variables

var DebugK = "centralmgmt"

DebugK used as key for all things central management

var Namespace = "libbeat.management"

Namespace is the feature namespace for queue definition.

func Register Uses

func Register(name string, fn FactoryFunc, stability feature.Stability)

Register a config manager

type ConfigManager Uses

type ConfigManager interface {
    // Enabled returns true if config manager is enabled
    Enabled() bool

    // Start the config manager
    Start()

    // Stop the config manager
    Stop()

    // CheckRawConfig check settings are correct before launching the beat
    CheckRawConfig(cfg *common.Config) error
}

ConfigManager interacts with the beat to update configurations from an external source

type FactoryFunc Uses

type FactoryFunc func(*common.Config, *reload.Registry, uuid.UUID) (ConfigManager, error)

FactoryFunc for creating a config manager

func Factory Uses

func Factory() FactoryFunc

Factory retrieves config manager constructor. If no one is registered it will create a nil manager

Package management imports 4 packages (graph) and is imported by 65 packages. Updated 2018-10-30. Refresh now. Tools for package owners.