mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
24 lines
685 B
Go
24 lines
685 B
Go
package zanzana
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grafana/authlib/authz"
|
|
"github.com/grafana/authlib/claims"
|
|
|
|
authzextv1 "github.com/grafana/grafana/pkg/services/authz/proto/v1"
|
|
"github.com/grafana/grafana/pkg/services/authz/zanzana/client"
|
|
)
|
|
|
|
// Client is a wrapper around [openfgav1.OpenFGAServiceClient]
|
|
type Client interface {
|
|
authz.AccessClient
|
|
List(ctx context.Context, id claims.AuthInfo, req authz.ListRequest) (*authzextv1.ListResponse, error)
|
|
Read(ctx context.Context, req *authzextv1.ReadRequest) (*authzextv1.ReadResponse, error)
|
|
Write(ctx context.Context, req *authzextv1.WriteRequest) error
|
|
}
|
|
|
|
func NewNoopClient() *client.NoopClient {
|
|
return client.NewNoop()
|
|
}
|