package
6.8.16+incompatible
Repository: https://github.com/tencentblueking/beats.git
Documentation: pkg.go.dev
# Functions
CreateFunctions create runnable function based on the configurations received.
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.
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.
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.
# 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.