Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyRetriever ¶
type KeyRetriever struct {
// contains filtered or unexported fields
}
func ProvideService ¶
func ProvideService(cfg *setting.Cfg, kv plugins.KeyStore) *KeyRetriever
func (*KeyRetriever) GetPublicKey ¶
GetPublicKey loads public keys from:
- The hard-coded value if the feature flag is not enabled.
- A cached value from kv storage if it has been already retrieved. This cache is populated from the grafana.com API.
func (*KeyRetriever) IsDisabled ¶
func (kr *KeyRetriever) IsDisabled() bool
IsDisabled disables dynamic retrieval of public keys from the API server.
type ManifestKeys ¶
type ManifestKeys struct { KeyID string `json:"keyId"` PublicKey string `json:"public"` Since int64 `json:"since"` }
ManifestKeys is the database representation of public keys used to verify plugin manifests.
Click to show internal directories.
Click to hide internal directories.