 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var ProviderRegistry = NewRegistry()
    ProviderRegistry holds all known autodiscover providers, they must be added to it to enable them for use
Functions ¶
Types ¶
type Adapter ¶
type Adapter interface {
	// CreateConfig generates a valid list of configs from the given event, the received event will have all keys defined by `StartFilter`
	CreateConfig(bus.Event) ([]*common.Config, error)
	// CheckConfig tests given config to check if it will work or not, returns errors in case it won't work
	CheckConfig(*common.Config) error
	// RunnerFactory provides runner creation by feeding valid configs
	cfgfile.RunnerFactory
	// EventFilter returns the bus filter to retrieve runner start/stop triggering events
	EventFilter() []string
}
    Adapter must be implemented by the beat in order to provide Autodiscover
type Autodiscover ¶
type Autodiscover struct {
	// contains filtered or unexported fields
}
    Autodiscover process, it takes a beat adapter and user config and runs autodiscover process, spawning new modules when any configured providers does a match
func NewAutodiscover ¶
func NewAutodiscover(name string, adapter Adapter, config *Config) (*Autodiscover, error)
NewAutodiscover instantiates and returns a new Autodiscover manager
type ProviderBuilder ¶
ProviderBuilder creates a new provider based on the given config and returns it
type ProviderConfig ¶
type ProviderConfig struct {
	Type string `config:"type"`
}
    ProviderConfig settings
 Click to show internal directories. 
   Click to hide internal directories.