package
7.17.28
Repository: https://github.com/elastic/beats.git
Documentation: pkg.go.dev

# Functions

Create returns the provider from a configuration.
CreateFunctions create runnable function based on the configurations received.
EnabledFunctions returns the list of enabled functions.
Feature creates a new Provider feature to be added to the global registry.
FindFunctionByName returns a function instance identified by a unique name or an error if not found.
FunctionFeature Feature creates a new function feature to be added to the global registry The namespace will be 'functionbeat.provider.local' in the registry.
IsAvailable checks if a cloud provider is available in the binary.
List returns the list of available providers.
ListFunctions returns the list of enabled function names.
MustCreate creates a new provider builder, it is used to define a provider and the function it supports.
NewDefaultProvider returns factory methods to handle generic provider.
NewNullCli returns a NOOP CliManager.
NewNullTemplateBuilder returns a NOOP TemplateBuilder.
NewProvider return the provider specified in the configuration or an error.
NewRegistry return a new registry.

# Structs

Builder is used to have a fluent interface to build a set of function for a specific provider, it provides a fluent interface to the developper of provider and functions, it wraps the Feature functions to make sure the namespace are correctly configured.
DefaultProvider implements the minimal required to retrieve and start functions.
Registry is a wrapper around the global feature registry and will take care of returning the the right providers and will do the type assertion for the providers, we hide the fact that we are actually accessing a global registry.
Runnable is the unit of work managed by the coordinator, anything related to the life of a function is encapsulated into the runnable.

# Interfaces

CLIManager is the interface implemented by each provider to expose a command CLI interface to their interface.
Function is temporary.
Provider providers the layer between functionbeat and cloud specific settings, its is responsable to return the function that need to be executed.
TemplateBuilder generates templates for a given provider.

# Type aliases

CLIManagerFactory factory method to call to create a new CLI manager.
Factory factory to create a concrete provider for a specific cloud service.
FunctionFactory factory to create a concrete function.
TemplateBuilderFactory factory method to call to create a new template builder.