mirror of
https://github.com/grafana/grafana.git
synced 2025-02-03 12:11:09 -06:00
1181141b40
* Remove kinds verification for kind-registry * Read plugin's json information with json library instead of use thema binding * Remove grafanaplugin unification * Don't use kindsys for extract the slot name * Fix IsGroup * Remove all plugindef generation * Refactor schema interfaces * Pushed this change from a different branch by mistake... * Create small plugin definition structure adding additional information for plugins registration * Add some validation checks * Delete unused code * Fix imports lint
20 lines
541 B
Go
20 lines
541 B
Go
package auth
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grafana/grafana/pkg/plugins/pfs"
|
|
)
|
|
|
|
type ExternalService struct {
|
|
ClientID string `json:"clientId"`
|
|
ClientSecret string `json:"clientSecret"`
|
|
PrivateKey string `json:"privateKey"`
|
|
}
|
|
|
|
type ExternalServiceRegistry interface {
|
|
HasExternalService(ctx context.Context, pluginID string) (bool, error)
|
|
RegisterExternalService(ctx context.Context, pluginID string, pType pfs.Type, svc *pfs.IAM) (*ExternalService, error)
|
|
RemoveExternalService(ctx context.Context, pluginID string) error
|
|
}
|