Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
16
plugins/secretstores/registry.go
Normal file
16
plugins/secretstores/registry.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
package secretstores
|
||||
|
||||
import (
|
||||
"github.com/influxdata/telegraf"
|
||||
)
|
||||
|
||||
// Creator is the function to create a new parser
|
||||
type Creator func(id string) telegraf.SecretStore
|
||||
|
||||
// SecretStores contains the registry of all known secret-stores
|
||||
var SecretStores = make(map[string]Creator)
|
||||
|
||||
// Add adds a secret-store to the registry. Usually this function is called in the plugin's init function
|
||||
func Add(name string, creator Creator) {
|
||||
SecretStores[name] = creator
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue