Plugins: Add signature wildcard globbing for dedicated private plugin type (#52163)

* it's glob time

* add more tests

* fix warn log

* support new sig type
This commit is contained in:
Will Browne
2022-07-22 10:48:16 +02:00
committed by GitHub
parent 2ec01c8d08
commit 843ff932b7
3 changed files with 314 additions and 26 deletions

View File

@ -176,8 +176,9 @@ const (
type SignatureType string
const (
GrafanaSignature SignatureType = "grafana"
PrivateSignature SignatureType = "private"
GrafanaSignature SignatureType = "grafana"
PrivateSignature SignatureType = "private"
PrivateGlobSignature SignatureType = "private-glob"
)
type PluginFiles map[string]struct{}