mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
b79e61656a
* Introduce TSDB service Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> Co-authored-by: Erik Sundell <erik.sundell87@gmail.com> Co-authored-by: Will Browne <will.browne@grafana.com> Co-authored-by: Torkel Ödegaard <torkel@grafana.org> Co-authored-by: Will Browne <wbrowne@users.noreply.github.com> Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
39 lines
1022 B
Go
39 lines
1022 B
Go
package plugins
|
|
|
|
type PluginSignatureStatus string
|
|
|
|
func (pss PluginSignatureStatus) IsValid() bool {
|
|
return pss == PluginSignatureValid
|
|
}
|
|
|
|
func (pss PluginSignatureStatus) IsInternal() bool {
|
|
return pss == PluginSignatureInternal
|
|
}
|
|
|
|
const (
|
|
PluginSignatureInternal PluginSignatureStatus = "internal" // core plugin, no signature
|
|
PluginSignatureValid PluginSignatureStatus = "valid" // signed and accurate MANIFEST
|
|
PluginSignatureInvalid PluginSignatureStatus = "invalid" // invalid signature
|
|
PluginSignatureModified PluginSignatureStatus = "modified" // valid signature, but content mismatch
|
|
PluginSignatureUnsigned PluginSignatureStatus = "unsigned" // no MANIFEST file
|
|
)
|
|
|
|
type PluginState string
|
|
|
|
const (
|
|
PluginStateAlpha PluginState = "alpha"
|
|
)
|
|
|
|
type PluginSignatureType string
|
|
|
|
const (
|
|
GrafanaType PluginSignatureType = "grafana"
|
|
PrivateType PluginSignatureType = "private"
|
|
)
|
|
|
|
type PluginSignatureState struct {
|
|
Status PluginSignatureStatus
|
|
Type PluginSignatureType
|
|
SigningOrg string
|
|
}
|