diff options
Diffstat (limited to 'pkg/authz/grpc.go')
| -rw-r--r-- | pkg/authz/grpc.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/pkg/authz/grpc.go b/pkg/authz/grpc.go index ad5cc04..e05bdeb 100644 --- a/pkg/authz/grpc.go +++ b/pkg/authz/grpc.go @@ -4,10 +4,7 @@ import ( "context" "crypto/x509" "net" - "os" - v1 "github.com/authzed/authzed-go/proto/authzed/api/v1" - "github.com/authzed/authzed-go/v1" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/pls" "google.golang.org/grpc" "google.golang.org/grpc/credentials" @@ -48,13 +45,3 @@ func credentialsFor(ctx context.Context, host string) credentials.TransportCrede return credentials.NewClientTLSFromCert(pool, "") } - -func LoadSpiceSchema(ctx context.Context, client *authzed.Client, path string) error { - content, err := os.ReadFile(path) - _, err = client.WriteSchema(ctx, &v1.WriteSchemaRequest{Schema: string(content)}) - if err != nil { - return err - } - - return nil -} |
