From e893241715d4015478295c9b88aa7d4fe7ed18eb Mon Sep 17 00:00:00 2001 From: roney492 Date: Thu, 2 May 2024 01:13:11 +0530 Subject: [PATCH] fixes to circular dependeices pointer to forked repo --- cmd/controlplane/main.go | 6 +++--- cmd/dataplane/main.go | 6 +++--- cmd/proxyplane/main.go | 4 ++-- cmd/proxyplane/opv-proxyplane-http.example.json | 4 ++-- .../content/docs/development/playground.md | 1 - functional_test/crud_fact_test.go | 2 +- functional_test/functional_test.go | 8 ++++---- go.mod | 2 +- go.sum | 2 -- pkg/apimodel/grant_token.go | 2 +- pkg/apimodel/httperror.go | 2 +- pkg/controlplane/controlplane.go | 6 +++--- pkg/controlplane/crud_api_audit.go | 6 +++--- pkg/controlplane/crud_grant.go | 4 ++-- pkg/controlplane/healthz.go | 2 +- pkg/controlplane/middleware.go | 2 +- pkg/crypto/encryptor.go | 2 +- pkg/crypto/hasher.go | 2 +- pkg/dataplane/crud_fact.go | 4 ++-- pkg/dataplane/crud_facttype.go | 4 ++-- pkg/dataplane/crud_scope.go | 4 ++-- pkg/dataplane/dataplane.go | 6 +++--- pkg/dataplane/healthz.go | 2 +- pkg/dataplane/middleware.go | 4 ++-- pkg/ent/apiaudit.go | 2 +- pkg/ent/apiaudit/where.go | 2 +- pkg/ent/apiaudit_create.go | 2 +- pkg/ent/apiaudit_delete.go | 4 ++-- pkg/ent/apiaudit_query.go | 4 ++-- pkg/ent/apiaudit_update.go | 4 ++-- pkg/ent/client.go | 12 ++++++------ pkg/ent/entql.go | 12 ++++++------ pkg/ent/enttest/enttest.go | 4 ++-- pkg/ent/fact.go | 6 +++--- pkg/ent/fact/where.go | 2 +- pkg/ent/fact_create.go | 6 +++--- pkg/ent/fact_delete.go | 4 ++-- pkg/ent/fact_query.go | 8 ++++---- pkg/ent/fact_update.go | 8 ++++---- pkg/ent/facttype.go | 2 +- pkg/ent/facttype/where.go | 2 +- pkg/ent/facttype_create.go | 4 ++-- pkg/ent/facttype_delete.go | 4 ++-- pkg/ent/facttype_query.go | 6 +++--- pkg/ent/facttype_update.go | 6 +++--- pkg/ent/grant.go | 2 +- pkg/ent/grant/where.go | 2 +- pkg/ent/grant_create.go | 2 +- pkg/ent/grant_delete.go | 4 ++-- pkg/ent/grant_query.go | 4 ++-- pkg/ent/grant_update.go | 4 ++-- pkg/ent/hook/hook.go | 2 +- pkg/ent/internal/schema.go | 2 +- pkg/ent/mutation.go | 12 ++++++------ pkg/ent/privacy/privacy.go | 2 +- pkg/ent/runtime.go | 12 ++++++------ pkg/ent/runtime/runtime.go | 2 +- pkg/ent/scope.go | 2 +- pkg/ent/scope/where.go | 2 +- pkg/ent/scope_create.go | 4 ++-- pkg/ent/scope_delete.go | 4 ++-- pkg/ent/scope_query.go | 6 +++--- pkg/ent/scope_update.go | 6 +++--- pkg/proxyplane/http.go | 6 +++--- pkg/proxyplane/modifier/body.go | 2 +- pkg/repo/ent_impl.go | 6 +++--- pkg/repo/ent_impl_casbin.go | 4 ++-- pkg/repo/ent_impl_crud.go | 12 ++++++------ pkg/repo/repo.go | 4 ++-- 69 files changed, 148 insertions(+), 151 deletions(-) diff --git a/cmd/controlplane/main.go b/cmd/controlplane/main.go index 0901f32..36c0842 100644 --- a/cmd/controlplane/main.go +++ b/cmd/controlplane/main.go @@ -3,11 +3,11 @@ package main import ( "fmt" - controlplanedocs "github.com/open-privacy/opv/cmd/controlplane/docs" // docs is generated by Swag CLI, you have to import it. + controlplanedocs "github.com/roney492/opv/cmd/controlplane/docs" // docs is generated by Swag CLI, you have to import it. echoSwagger "github.com/swaggo/echo-swagger" - "github.com/open-privacy/opv/pkg/config" - "github.com/open-privacy/opv/pkg/controlplane" + "github.com/roney492/opv/pkg/config" + "github.com/roney492/opv/pkg/controlplane" "github.com/tj/go-gracefully" ) diff --git a/cmd/dataplane/main.go b/cmd/dataplane/main.go index 9bf0f11..bec6191 100644 --- a/cmd/dataplane/main.go +++ b/cmd/dataplane/main.go @@ -3,11 +3,11 @@ package main import ( "fmt" - dataplanedocs "github.com/open-privacy/opv/cmd/dataplane/docs" // docs is generated by Swag CLI, you have to import it. + dataplanedocs "github.com/roney492/opv/cmd/dataplane/docs" // docs is generated by Swag CLI, you have to import it. echoSwagger "github.com/swaggo/echo-swagger" - "github.com/open-privacy/opv/pkg/config" - "github.com/open-privacy/opv/pkg/dataplane" + "github.com/roney492/opv/pkg/config" + "github.com/roney492/opv/pkg/dataplane" "github.com/tj/go-gracefully" ) diff --git a/cmd/proxyplane/main.go b/cmd/proxyplane/main.go index 27b5456..ed09239 100644 --- a/cmd/proxyplane/main.go +++ b/cmd/proxyplane/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/open-privacy/opv/pkg/config" - "github.com/open-privacy/opv/pkg/proxyplane" + "github.com/roney492/opv/pkg/config" + "github.com/roney492/opv/pkg/proxyplane" "github.com/tj/go-gracefully" ) diff --git a/cmd/proxyplane/opv-proxyplane-http.example.json b/cmd/proxyplane/opv-proxyplane-http.example.json index bbd3d7d..eefe058 100644 --- a/cmd/proxyplane/opv-proxyplane-http.example.json +++ b/cmd/proxyplane/opv-proxyplane-http.example.json @@ -33,7 +33,7 @@ "encoding": "no-op", "extra_config": { - "github.com/open-privacy/opv": { + "github.com/roney492/opv": { "opv.body.Modifier": { "scope": [ "request" @@ -109,7 +109,7 @@ "url_pattern": "/post", "encoding": "no-op", "extra_config": { - "github.com/open-privacy/opv": { + "github.com/roney492/opv": { "opv.body.Modifier": { "scope": [ "request" diff --git a/docs/openprivacy.io/content/docs/development/playground.md b/docs/openprivacy.io/content/docs/development/playground.md index 1abb888..21bf0f7 100644 --- a/docs/openprivacy.io/content/docs/development/playground.md +++ b/docs/openprivacy.io/content/docs/development/playground.md @@ -26,7 +26,6 @@ Playground demo of tokenization and detokenization via the Data Plane: `https:// Playground demo of sending API requests to Checkr via the Proxy Plane: `proxy-playground.openprivacy.io`. -- The definition of the proxy routing can be found at [opv-proxyplane-http.example.json](https://github.com/open-privacy/opv/blob/53eb70c1ce9aaaa897863982efb468df487ce7c0/cmd/proxyplane/opv-proxyplane-http.example.json#L105). - We simulated that once the internal system have tokenzied `facts` (i.e. sensitive PIIs), it can talks to a dedicated proxy plane route for automated detokenization when sending the requests to external vendors like [Checkr API](https://api.checkr.com). - You can also inspect the network requests directly from your browser (tldr - press `F12`) to check the actual payload. diff --git a/functional_test/crud_fact_test.go b/functional_test/crud_fact_test.go index ba92908..69a283f 100644 --- a/functional_test/crud_fact_test.go +++ b/functional_test/crud_fact_test.go @@ -11,7 +11,7 @@ import ( . "github.com/Eun/go-hit" "github.com/avast/retry-go" "github.com/dchest/uniuri" - "github.com/open-privacy/opv/pkg/config" + "github.com/roney492/opv/pkg/config" ) func generateScopeID() string { diff --git a/functional_test/functional_test.go b/functional_test/functional_test.go index d04ee88..d73da87 100644 --- a/functional_test/functional_test.go +++ b/functional_test/functional_test.go @@ -8,10 +8,10 @@ import ( "time" "github.com/caarlos0/env/v6" - "github.com/open-privacy/opv/pkg/config" - "github.com/open-privacy/opv/pkg/controlplane" - "github.com/open-privacy/opv/pkg/dataplane" - "github.com/open-privacy/opv/pkg/proxyplane" + "github.com/roney492/opv/pkg/config" + "github.com/roney492/opv/pkg/controlplane" + "github.com/roney492/opv/pkg/dataplane" + "github.com/roney492/opv/pkg/proxyplane" ) // TESTENV is the env configuration for functional testing diff --git a/go.mod b/go.mod index 42fac15..8cc6973 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/open-privacy/opv +module github.com/roney492/opv go 1.22 diff --git a/go.sum b/go.sum index e73c9e1..ef7de29 100644 --- a/go.sum +++ b/go.sum @@ -572,8 +572,6 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/zclconf/go-cty v1.13.2 h1:4GvrUxe/QUDYuJKAav4EYqdM47/kZa672LwmXFmEKT0= github.com/zclconf/go-cty v1.13.2/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0= -github.com/zhouzhuojie/iso8601ms v0.1.0 h1:6InZGTu4YM+2fNO7jhACyFd71XCTU7C/vmMFYsqoMBk= -github.com/zhouzhuojie/iso8601ms v0.1.0/go.mod h1:4t5F1H6mzxsFB9CCFhj1pUlK8TPwRGmQ/Js+zMK32mY= go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= diff --git a/pkg/apimodel/grant_token.go b/pkg/apimodel/grant_token.go index 29e0ff3..f290bca 100644 --- a/pkg/apimodel/grant_token.go +++ b/pkg/apimodel/grant_token.go @@ -7,7 +7,7 @@ import ( "github.com/dchest/uniuri" "github.com/labstack/echo/v4" - "github.com/open-privacy/opv/pkg/crypto" + "github.com/roney492/opv/pkg/crypto" ) // GrantToken represents a secret token diff --git a/pkg/apimodel/httperror.go b/pkg/apimodel/httperror.go index 217208d..932ad91 100644 --- a/pkg/apimodel/httperror.go +++ b/pkg/apimodel/httperror.go @@ -6,7 +6,7 @@ import ( "github.com/asaskevich/govalidator" "github.com/go-playground/validator/v10" "github.com/labstack/echo/v4" - "github.com/open-privacy/opv/pkg/repo" + "github.com/roney492/opv/pkg/repo" ) // NewHTTPError creates a new echo.HTTPError from the given error diff --git a/pkg/controlplane/controlplane.go b/pkg/controlplane/controlplane.go index e5bc07f..3803135 100644 --- a/pkg/controlplane/controlplane.go +++ b/pkg/controlplane/controlplane.go @@ -9,9 +9,9 @@ import ( "github.com/labstack/echo/v4" "github.com/labstack/echo/v4/middleware" "github.com/labstack/gommon/log" - "github.com/open-privacy/opv/pkg/config" - "github.com/open-privacy/opv/pkg/crypto" - "github.com/open-privacy/opv/pkg/repo" + "github.com/roney492/opv/pkg/config" + "github.com/roney492/opv/pkg/crypto" + "github.com/roney492/opv/pkg/repo" ) // ControlPlane is the control plane for OPV diff --git a/pkg/controlplane/crud_api_audit.go b/pkg/controlplane/crud_api_audit.go index 6a07162..ccb8d0a 100644 --- a/pkg/controlplane/crud_api_audit.go +++ b/pkg/controlplane/crud_api_audit.go @@ -5,9 +5,9 @@ import ( "time" "github.com/labstack/echo/v4" - "github.com/open-privacy/opv/pkg/apimodel" - "github.com/open-privacy/opv/pkg/ent" - "github.com/open-privacy/opv/pkg/repo" + "github.com/roney492/opv/pkg/apimodel" + "github.com/roney492/opv/pkg/ent" + "github.com/roney492/opv/pkg/repo" ) // QueryAPIAudits is the endpoint for querying a list of api audit logs diff --git a/pkg/controlplane/crud_grant.go b/pkg/controlplane/crud_grant.go index 96197b5..1e6cb37 100644 --- a/pkg/controlplane/crud_grant.go +++ b/pkg/controlplane/crud_grant.go @@ -4,8 +4,8 @@ import ( "net/http" "github.com/labstack/echo/v4" - "github.com/open-privacy/opv/pkg/apimodel" - "github.com/open-privacy/opv/pkg/repo" + "github.com/roney492/opv/pkg/apimodel" + "github.com/roney492/opv/pkg/repo" ) // CreateGrant is the endpoint for creating a new grant diff --git a/pkg/controlplane/healthz.go b/pkg/controlplane/healthz.go index 5ab73c3..fdd57d2 100644 --- a/pkg/controlplane/healthz.go +++ b/pkg/controlplane/healthz.go @@ -4,7 +4,7 @@ import ( "net/http" "github.com/labstack/echo/v4" - "github.com/open-privacy/opv/pkg/apimodel" + "github.com/roney492/opv/pkg/apimodel" ) // Healthz godoc diff --git a/pkg/controlplane/middleware.go b/pkg/controlplane/middleware.go index 5d873db..5f8fcd8 100644 --- a/pkg/controlplane/middleware.go +++ b/pkg/controlplane/middleware.go @@ -4,7 +4,7 @@ import ( "context" "github.com/labstack/echo/v4" - "github.com/open-privacy/opv/pkg/repo" + "github.com/roney492/opv/pkg/repo" ) type auditLogContext struct { diff --git a/pkg/crypto/encryptor.go b/pkg/crypto/encryptor.go index cc557a5..061f257 100644 --- a/pkg/crypto/encryptor.go +++ b/pkg/crypto/encryptor.go @@ -6,7 +6,7 @@ import ( "golang.org/x/crypto/nacl/secretbox" - "github.com/open-privacy/opv/pkg/config" + "github.com/roney492/opv/pkg/config" ) const ( diff --git a/pkg/crypto/hasher.go b/pkg/crypto/hasher.go index 02965fb..4b1fed4 100644 --- a/pkg/crypto/hasher.go +++ b/pkg/crypto/hasher.go @@ -4,7 +4,7 @@ import ( "encoding/base64" "fmt" - "github.com/open-privacy/opv/pkg/config" + "github.com/roney492/opv/pkg/config" "golang.org/x/crypto/scrypt" "golang.org/x/crypto/sha3" ) diff --git a/pkg/dataplane/crud_fact.go b/pkg/dataplane/crud_fact.go index d7527bb..f708198 100644 --- a/pkg/dataplane/crud_fact.go +++ b/pkg/dataplane/crud_fact.go @@ -8,8 +8,8 @@ import ( "github.com/asaskevich/govalidator" "github.com/labstack/echo/v4" - "github.com/open-privacy/opv/pkg/apimodel" - "github.com/open-privacy/opv/pkg/repo" + "github.com/roney492/opv/pkg/apimodel" + "github.com/roney492/opv/pkg/repo" ) // ShowFact godoc diff --git a/pkg/dataplane/crud_facttype.go b/pkg/dataplane/crud_facttype.go index 3bf4338..abff3c1 100644 --- a/pkg/dataplane/crud_facttype.go +++ b/pkg/dataplane/crud_facttype.go @@ -5,8 +5,8 @@ import ( "net/http" "github.com/labstack/echo/v4" - "github.com/open-privacy/opv/pkg/apimodel" - "github.com/open-privacy/opv/pkg/repo" + "github.com/roney492/opv/pkg/apimodel" + "github.com/roney492/opv/pkg/repo" ) // QueryFactTypes godoc diff --git a/pkg/dataplane/crud_scope.go b/pkg/dataplane/crud_scope.go index 7449d29..fedc107 100644 --- a/pkg/dataplane/crud_scope.go +++ b/pkg/dataplane/crud_scope.go @@ -4,8 +4,8 @@ import ( "net/http" "github.com/labstack/echo/v4" - "github.com/open-privacy/opv/pkg/apimodel" - "github.com/open-privacy/opv/pkg/repo" + "github.com/roney492/opv/pkg/apimodel" + "github.com/roney492/opv/pkg/repo" ) // QueryScopes godoc diff --git a/pkg/dataplane/dataplane.go b/pkg/dataplane/dataplane.go index 2f65e26..9fc5ab6 100644 --- a/pkg/dataplane/dataplane.go +++ b/pkg/dataplane/dataplane.go @@ -9,9 +9,9 @@ import ( "github.com/labstack/echo/v4" "github.com/labstack/echo/v4/middleware" "github.com/labstack/gommon/log" - "github.com/open-privacy/opv/pkg/config" - "github.com/open-privacy/opv/pkg/crypto" - "github.com/open-privacy/opv/pkg/repo" + "github.com/roney492/opv/pkg/config" + "github.com/roney492/opv/pkg/crypto" + "github.com/roney492/opv/pkg/repo" ) // DataPlane represents the data plane struct diff --git a/pkg/dataplane/healthz.go b/pkg/dataplane/healthz.go index 16cb68d..fe83a60 100644 --- a/pkg/dataplane/healthz.go +++ b/pkg/dataplane/healthz.go @@ -4,7 +4,7 @@ import ( "net/http" "github.com/labstack/echo/v4" - "github.com/open-privacy/opv/pkg/apimodel" + "github.com/roney492/opv/pkg/apimodel" ) // Healthz godoc diff --git a/pkg/dataplane/middleware.go b/pkg/dataplane/middleware.go index 0e041a8..cd45235 100644 --- a/pkg/dataplane/middleware.go +++ b/pkg/dataplane/middleware.go @@ -6,8 +6,8 @@ import ( "github.com/labstack/echo/v4" "github.com/labstack/echo/v4/middleware" - "github.com/open-privacy/opv/pkg/apimodel" - "github.com/open-privacy/opv/pkg/repo" + "github.com/roney492/opv/pkg/apimodel" + "github.com/roney492/opv/pkg/repo" ) const ( diff --git a/pkg/ent/apiaudit.go b/pkg/ent/apiaudit.go index a342bbd..c07fe42 100644 --- a/pkg/ent/apiaudit.go +++ b/pkg/ent/apiaudit.go @@ -8,7 +8,7 @@ import ( "time" "entgo.io/ent/dialect/sql" - "github.com/open-privacy/opv/pkg/ent/apiaudit" + "github.com/roney492/opv/pkg/ent/apiaudit" ) // APIAudit is the model entity for the APIAudit schema. diff --git a/pkg/ent/apiaudit/where.go b/pkg/ent/apiaudit/where.go index f06ec3f..8ae5439 100644 --- a/pkg/ent/apiaudit/where.go +++ b/pkg/ent/apiaudit/where.go @@ -6,7 +6,7 @@ import ( "time" "entgo.io/ent/dialect/sql" - "github.com/open-privacy/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/predicate" ) // ID filters vertices based on their ID field. diff --git a/pkg/ent/apiaudit_create.go b/pkg/ent/apiaudit_create.go index 7302d0f..38217cb 100644 --- a/pkg/ent/apiaudit_create.go +++ b/pkg/ent/apiaudit_create.go @@ -10,7 +10,7 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/apiaudit" + "github.com/roney492/opv/pkg/ent/apiaudit" ) // APIAuditCreate is the builder for creating a APIAudit entity. diff --git a/pkg/ent/apiaudit_delete.go b/pkg/ent/apiaudit_delete.go index 244c673..551d61f 100644 --- a/pkg/ent/apiaudit_delete.go +++ b/pkg/ent/apiaudit_delete.go @@ -9,8 +9,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/apiaudit" - "github.com/open-privacy/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/apiaudit" + "github.com/roney492/opv/pkg/ent/predicate" ) // APIAuditDelete is the builder for deleting a APIAudit entity. diff --git a/pkg/ent/apiaudit_query.go b/pkg/ent/apiaudit_query.go index 2265d41..9f778ed 100644 --- a/pkg/ent/apiaudit_query.go +++ b/pkg/ent/apiaudit_query.go @@ -11,8 +11,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/apiaudit" - "github.com/open-privacy/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/apiaudit" + "github.com/roney492/opv/pkg/ent/predicate" ) // APIAuditQuery is the builder for querying APIAudit entities. diff --git a/pkg/ent/apiaudit_update.go b/pkg/ent/apiaudit_update.go index 0cba52c..86b1e2e 100644 --- a/pkg/ent/apiaudit_update.go +++ b/pkg/ent/apiaudit_update.go @@ -10,8 +10,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/apiaudit" - "github.com/open-privacy/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/apiaudit" + "github.com/roney492/opv/pkg/ent/predicate" ) // APIAuditUpdate is the builder for updating APIAudit entities. diff --git a/pkg/ent/client.go b/pkg/ent/client.go index 0223548..086a3e2 100644 --- a/pkg/ent/client.go +++ b/pkg/ent/client.go @@ -7,13 +7,13 @@ import ( "fmt" "log" - "github.com/open-privacy/opv/pkg/ent/migrate" + "github.com/roney492/opv/pkg/ent/migrate" - "github.com/open-privacy/opv/pkg/ent/apiaudit" - "github.com/open-privacy/opv/pkg/ent/fact" - "github.com/open-privacy/opv/pkg/ent/facttype" - "github.com/open-privacy/opv/pkg/ent/grant" - "github.com/open-privacy/opv/pkg/ent/scope" + "github.com/roney492/opv/pkg/ent/apiaudit" + "github.com/roney492/opv/pkg/ent/fact" + "github.com/roney492/opv/pkg/ent/facttype" + "github.com/roney492/opv/pkg/ent/grant" + "github.com/roney492/opv/pkg/ent/scope" "entgo.io/ent/dialect" "entgo.io/ent/dialect/sql" diff --git a/pkg/ent/entql.go b/pkg/ent/entql.go index 554c1d2..c8090fc 100644 --- a/pkg/ent/entql.go +++ b/pkg/ent/entql.go @@ -3,12 +3,12 @@ package ent import ( - "github.com/open-privacy/opv/pkg/ent/apiaudit" - "github.com/open-privacy/opv/pkg/ent/fact" - "github.com/open-privacy/opv/pkg/ent/facttype" - "github.com/open-privacy/opv/pkg/ent/grant" - "github.com/open-privacy/opv/pkg/ent/predicate" - "github.com/open-privacy/opv/pkg/ent/scope" + "github.com/roney492/opv/pkg/ent/apiaudit" + "github.com/roney492/opv/pkg/ent/fact" + "github.com/roney492/opv/pkg/ent/facttype" + "github.com/roney492/opv/pkg/ent/grant" + "github.com/roney492/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/scope" "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" diff --git a/pkg/ent/enttest/enttest.go b/pkg/ent/enttest/enttest.go index 0398381..4a54d0c 100644 --- a/pkg/ent/enttest/enttest.go +++ b/pkg/ent/enttest/enttest.go @@ -5,9 +5,9 @@ package enttest import ( "context" - "github.com/open-privacy/opv/pkg/ent" + "github.com/roney492/opv/pkg/ent" // required by schema hooks. - _ "github.com/open-privacy/opv/pkg/ent/runtime" + _ "github.com/roney492/opv/pkg/ent/runtime" "entgo.io/ent/dialect/sql/schema" ) diff --git a/pkg/ent/fact.go b/pkg/ent/fact.go index cc0da3b..66bf1d6 100644 --- a/pkg/ent/fact.go +++ b/pkg/ent/fact.go @@ -8,9 +8,9 @@ import ( "time" "entgo.io/ent/dialect/sql" - "github.com/open-privacy/opv/pkg/ent/fact" - "github.com/open-privacy/opv/pkg/ent/facttype" - "github.com/open-privacy/opv/pkg/ent/scope" + "github.com/roney492/opv/pkg/ent/fact" + "github.com/roney492/opv/pkg/ent/facttype" + "github.com/roney492/opv/pkg/ent/scope" ) // Fact is the model entity for the Fact schema. diff --git a/pkg/ent/fact/where.go b/pkg/ent/fact/where.go index 209a4fd..890224e 100644 --- a/pkg/ent/fact/where.go +++ b/pkg/ent/fact/where.go @@ -7,7 +7,7 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" - "github.com/open-privacy/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/predicate" ) // ID filters vertices based on their ID field. diff --git a/pkg/ent/fact_create.go b/pkg/ent/fact_create.go index 26f459c..25721f9 100644 --- a/pkg/ent/fact_create.go +++ b/pkg/ent/fact_create.go @@ -10,9 +10,9 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/fact" - "github.com/open-privacy/opv/pkg/ent/facttype" - "github.com/open-privacy/opv/pkg/ent/scope" + "github.com/roney492/opv/pkg/ent/fact" + "github.com/roney492/opv/pkg/ent/facttype" + "github.com/roney492/opv/pkg/ent/scope" ) // FactCreate is the builder for creating a Fact entity. diff --git a/pkg/ent/fact_delete.go b/pkg/ent/fact_delete.go index 104ab7e..84e3450 100644 --- a/pkg/ent/fact_delete.go +++ b/pkg/ent/fact_delete.go @@ -9,8 +9,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/fact" - "github.com/open-privacy/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/fact" + "github.com/roney492/opv/pkg/ent/predicate" ) // FactDelete is the builder for deleting a Fact entity. diff --git a/pkg/ent/fact_query.go b/pkg/ent/fact_query.go index 6c4e786..289af8e 100644 --- a/pkg/ent/fact_query.go +++ b/pkg/ent/fact_query.go @@ -11,10 +11,10 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/fact" - "github.com/open-privacy/opv/pkg/ent/facttype" - "github.com/open-privacy/opv/pkg/ent/predicate" - "github.com/open-privacy/opv/pkg/ent/scope" + "github.com/roney492/opv/pkg/ent/fact" + "github.com/roney492/opv/pkg/ent/facttype" + "github.com/roney492/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/scope" ) // FactQuery is the builder for querying Fact entities. diff --git a/pkg/ent/fact_update.go b/pkg/ent/fact_update.go index dc981e8..2a813a2 100644 --- a/pkg/ent/fact_update.go +++ b/pkg/ent/fact_update.go @@ -10,10 +10,10 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/fact" - "github.com/open-privacy/opv/pkg/ent/facttype" - "github.com/open-privacy/opv/pkg/ent/predicate" - "github.com/open-privacy/opv/pkg/ent/scope" + "github.com/roney492/opv/pkg/ent/fact" + "github.com/roney492/opv/pkg/ent/facttype" + "github.com/roney492/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/scope" ) // FactUpdate is the builder for updating Fact entities. diff --git a/pkg/ent/facttype.go b/pkg/ent/facttype.go index 09765f1..32f26fc 100644 --- a/pkg/ent/facttype.go +++ b/pkg/ent/facttype.go @@ -8,7 +8,7 @@ import ( "time" "entgo.io/ent/dialect/sql" - "github.com/open-privacy/opv/pkg/ent/facttype" + "github.com/roney492/opv/pkg/ent/facttype" ) // FactType is the model entity for the FactType schema. diff --git a/pkg/ent/facttype/where.go b/pkg/ent/facttype/where.go index a1385f2..999ae17 100644 --- a/pkg/ent/facttype/where.go +++ b/pkg/ent/facttype/where.go @@ -7,7 +7,7 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" - "github.com/open-privacy/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/predicate" ) // ID filters vertices based on their ID field. diff --git a/pkg/ent/facttype_create.go b/pkg/ent/facttype_create.go index 57faa2c..9d5bf55 100644 --- a/pkg/ent/facttype_create.go +++ b/pkg/ent/facttype_create.go @@ -10,8 +10,8 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/fact" - "github.com/open-privacy/opv/pkg/ent/facttype" + "github.com/roney492/opv/pkg/ent/fact" + "github.com/roney492/opv/pkg/ent/facttype" ) // FactTypeCreate is the builder for creating a FactType entity. diff --git a/pkg/ent/facttype_delete.go b/pkg/ent/facttype_delete.go index dd8c408..221cc07 100644 --- a/pkg/ent/facttype_delete.go +++ b/pkg/ent/facttype_delete.go @@ -9,8 +9,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/facttype" - "github.com/open-privacy/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/facttype" + "github.com/roney492/opv/pkg/ent/predicate" ) // FactTypeDelete is the builder for deleting a FactType entity. diff --git a/pkg/ent/facttype_query.go b/pkg/ent/facttype_query.go index f215f5c..1b29920 100644 --- a/pkg/ent/facttype_query.go +++ b/pkg/ent/facttype_query.go @@ -12,9 +12,9 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/fact" - "github.com/open-privacy/opv/pkg/ent/facttype" - "github.com/open-privacy/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/fact" + "github.com/roney492/opv/pkg/ent/facttype" + "github.com/roney492/opv/pkg/ent/predicate" ) // FactTypeQuery is the builder for querying FactType entities. diff --git a/pkg/ent/facttype_update.go b/pkg/ent/facttype_update.go index 7c8fbc7..58580a3 100644 --- a/pkg/ent/facttype_update.go +++ b/pkg/ent/facttype_update.go @@ -10,9 +10,9 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/fact" - "github.com/open-privacy/opv/pkg/ent/facttype" - "github.com/open-privacy/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/fact" + "github.com/roney492/opv/pkg/ent/facttype" + "github.com/roney492/opv/pkg/ent/predicate" ) // FactTypeUpdate is the builder for updating FactType entities. diff --git a/pkg/ent/grant.go b/pkg/ent/grant.go index f6b718e..9337e2a 100644 --- a/pkg/ent/grant.go +++ b/pkg/ent/grant.go @@ -9,7 +9,7 @@ import ( "time" "entgo.io/ent/dialect/sql" - "github.com/open-privacy/opv/pkg/ent/grant" + "github.com/roney492/opv/pkg/ent/grant" ) // Grant is the model entity for the Grant schema. diff --git a/pkg/ent/grant/where.go b/pkg/ent/grant/where.go index 2a869f9..5046a2c 100644 --- a/pkg/ent/grant/where.go +++ b/pkg/ent/grant/where.go @@ -6,7 +6,7 @@ import ( "time" "entgo.io/ent/dialect/sql" - "github.com/open-privacy/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/predicate" ) // ID filters vertices based on their ID field. diff --git a/pkg/ent/grant_create.go b/pkg/ent/grant_create.go index 5d6093e..0887a9e 100644 --- a/pkg/ent/grant_create.go +++ b/pkg/ent/grant_create.go @@ -10,7 +10,7 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/grant" + "github.com/roney492/opv/pkg/ent/grant" ) // GrantCreate is the builder for creating a Grant entity. diff --git a/pkg/ent/grant_delete.go b/pkg/ent/grant_delete.go index 993a896..cef7da8 100644 --- a/pkg/ent/grant_delete.go +++ b/pkg/ent/grant_delete.go @@ -9,8 +9,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/grant" - "github.com/open-privacy/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/grant" + "github.com/roney492/opv/pkg/ent/predicate" ) // GrantDelete is the builder for deleting a Grant entity. diff --git a/pkg/ent/grant_query.go b/pkg/ent/grant_query.go index 112ff99..ae48ea7 100644 --- a/pkg/ent/grant_query.go +++ b/pkg/ent/grant_query.go @@ -11,8 +11,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/grant" - "github.com/open-privacy/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/grant" + "github.com/roney492/opv/pkg/ent/predicate" ) // GrantQuery is the builder for querying Grant entities. diff --git a/pkg/ent/grant_update.go b/pkg/ent/grant_update.go index f747449..64c4e5d 100644 --- a/pkg/ent/grant_update.go +++ b/pkg/ent/grant_update.go @@ -10,8 +10,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/grant" - "github.com/open-privacy/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/grant" + "github.com/roney492/opv/pkg/ent/predicate" ) // GrantUpdate is the builder for updating Grant entities. diff --git a/pkg/ent/hook/hook.go b/pkg/ent/hook/hook.go index 673d3aa..079e43a 100644 --- a/pkg/ent/hook/hook.go +++ b/pkg/ent/hook/hook.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/open-privacy/opv/pkg/ent" + "github.com/roney492/opv/pkg/ent" ) // The APIAuditFunc type is an adapter to allow the use of ordinary diff --git a/pkg/ent/internal/schema.go b/pkg/ent/internal/schema.go index 43d6069..816696a 100644 --- a/pkg/ent/internal/schema.go +++ b/pkg/ent/internal/schema.go @@ -5,4 +5,4 @@ // Package internal holds a loadable version of the latest schema. package internal -const Schema = `{"Schema":"github.com/open-privacy/opv/pkg/ent/schema","Package":"github.com/open-privacy/opv/pkg/ent","Schemas":[{"name":"APIAudit","config":{"Table":""},"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"update_default":true,"immutable":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"deleted_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0}},{"name":"id","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"size":255,"default":true,"default_kind":19,"immutable":true,"validators":1,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"plane","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"hashed_grant_token","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":2,"MixedIn":false,"MixinIndex":0},"sensitive":true},{"name":"domain","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"http_path","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"http_method","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"sent_http_status","type":{"Type":12,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":6,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"unique":true,"fields":["id"]},{"fields":["created_at"]},{"fields":["updated_at"]},{"fields":["deleted_at"]},{"fields":["plane"]},{"fields":["hashed_grant_token"]},{"fields":["domain"]},{"fields":["http_path"]},{"fields":["http_method"]},{"fields":["sent_http_status"]}]},{"name":"Fact","config":{"Table":""},"edges":[{"name":"scope","type":"Scope","ref_name":"facts","unique":true,"inverse":true},{"name":"fact_type","type":"FactType","ref_name":"facts","unique":true,"inverse":true}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"update_default":true,"immutable":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"deleted_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0}},{"name":"id","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"size":255,"default":true,"default_kind":19,"immutable":true,"validators":1,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"hashed_value","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":1,"MixedIn":false,"MixinIndex":0},"sensitive":true},{"name":"encrypted_value","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":2,"MixedIn":false,"MixinIndex":0},"sensitive":true},{"name":"domain","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"unique":true,"fields":["id"]},{"fields":["created_at"]},{"fields":["updated_at"]},{"fields":["deleted_at"]},{"fields":["hashed_value"]},{"fields":["domain"]}]},{"name":"FactType","config":{"Table":""},"edges":[{"name":"facts","type":"Fact"}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"update_default":true,"immutable":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"deleted_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0}},{"name":"id","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"size":255,"default":true,"default_kind":19,"immutable":true,"validators":1,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"slug","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"built_in","type":{"Type":1,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"default":true,"default_value":false,"default_kind":1,"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"validation","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":3,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"unique":true,"fields":["id"]},{"fields":["created_at"]},{"fields":["updated_at"]},{"fields":["deleted_at"]},{"unique":true,"fields":["slug"]}]},{"name":"Grant","config":{"Table":""},"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"update_default":true,"immutable":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"deleted_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0}},{"name":"id","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"size":255,"default":true,"default_kind":19,"immutable":true,"validators":1,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"hashed_grant_token","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":1,"MixedIn":false,"MixinIndex":0},"sensitive":true},{"name":"domain","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"version","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"allowed_http_methods","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"paths","type":{"Type":3,"Ident":"[]string","PkgPath":"","Nillable":true,"RType":null},"position":{"Index":5,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"unique":true,"fields":["id"]},{"fields":["created_at"]},{"fields":["updated_at"]},{"fields":["deleted_at"]},{"fields":["hashed_grant_token"]},{"fields":["domain"]}]},{"name":"Scope","config":{"Table":""},"edges":[{"name":"facts","type":"Fact"}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"update_default":true,"immutable":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"deleted_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0}},{"name":"id","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"size":255,"default":true,"default_kind":19,"immutable":true,"validators":1,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"custom_id","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"nonce","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"default":true,"default_kind":19,"position":{"Index":2,"MixedIn":false,"MixinIndex":0},"sensitive":true},{"name":"domain","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"unique":true,"fields":["id"]},{"fields":["created_at"]},{"fields":["updated_at"]},{"fields":["deleted_at"]},{"unique":true,"fields":["custom_id"]},{"fields":["domain"]}]}],"Features":["privacy","entql","schema/snapshot"]}` +const Schema = `{"Schema":"github.com/roney492/opv/pkg/ent/schema","Package":"github.com/roney492/opv/pkg/ent","Schemas":[{"name":"APIAudit","config":{"Table":""},"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"update_default":true,"immutable":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"deleted_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0}},{"name":"id","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"size":255,"default":true,"default_kind":19,"immutable":true,"validators":1,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"plane","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"hashed_grant_token","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":2,"MixedIn":false,"MixinIndex":0},"sensitive":true},{"name":"domain","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"http_path","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"http_method","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"sent_http_status","type":{"Type":12,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":6,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"unique":true,"fields":["id"]},{"fields":["created_at"]},{"fields":["updated_at"]},{"fields":["deleted_at"]},{"fields":["plane"]},{"fields":["hashed_grant_token"]},{"fields":["domain"]},{"fields":["http_path"]},{"fields":["http_method"]},{"fields":["sent_http_status"]}]},{"name":"Fact","config":{"Table":""},"edges":[{"name":"scope","type":"Scope","ref_name":"facts","unique":true,"inverse":true},{"name":"fact_type","type":"FactType","ref_name":"facts","unique":true,"inverse":true}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"update_default":true,"immutable":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"deleted_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0}},{"name":"id","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"size":255,"default":true,"default_kind":19,"immutable":true,"validators":1,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"hashed_value","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":1,"MixedIn":false,"MixinIndex":0},"sensitive":true},{"name":"encrypted_value","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":2,"MixedIn":false,"MixinIndex":0},"sensitive":true},{"name":"domain","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"unique":true,"fields":["id"]},{"fields":["created_at"]},{"fields":["updated_at"]},{"fields":["deleted_at"]},{"fields":["hashed_value"]},{"fields":["domain"]}]},{"name":"FactType","config":{"Table":""},"edges":[{"name":"facts","type":"Fact"}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"update_default":true,"immutable":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"deleted_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0}},{"name":"id","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"size":255,"default":true,"default_kind":19,"immutable":true,"validators":1,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"slug","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"built_in","type":{"Type":1,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"default":true,"default_value":false,"default_kind":1,"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"validation","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":3,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"unique":true,"fields":["id"]},{"fields":["created_at"]},{"fields":["updated_at"]},{"fields":["deleted_at"]},{"unique":true,"fields":["slug"]}]},{"name":"Grant","config":{"Table":""},"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"update_default":true,"immutable":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"deleted_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0}},{"name":"id","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"size":255,"default":true,"default_kind":19,"immutable":true,"validators":1,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"hashed_grant_token","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":1,"MixedIn":false,"MixinIndex":0},"sensitive":true},{"name":"domain","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"version","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"allowed_http_methods","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"paths","type":{"Type":3,"Ident":"[]string","PkgPath":"","Nillable":true,"RType":null},"position":{"Index":5,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"unique":true,"fields":["id"]},{"fields":["created_at"]},{"fields":["updated_at"]},{"fields":["deleted_at"]},{"fields":["hashed_grant_token"]},{"fields":["domain"]}]},{"name":"Scope","config":{"Table":""},"edges":[{"name":"facts","type":"Fact"}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"default":true,"default_kind":19,"update_default":true,"immutable":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"deleted_at","type":{"Type":2,"Ident":"","PkgPath":"time","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0}},{"name":"id","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"size":255,"default":true,"default_kind":19,"immutable":true,"validators":1,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"custom_id","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"nonce","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"default":true,"default_kind":19,"position":{"Index":2,"MixedIn":false,"MixinIndex":0},"sensitive":true},{"name":"domain","type":{"Type":7,"Ident":"","PkgPath":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"unique":true,"fields":["id"]},{"fields":["created_at"]},{"fields":["updated_at"]},{"fields":["deleted_at"]},{"unique":true,"fields":["custom_id"]},{"fields":["domain"]}]}],"Features":["privacy","entql","schema/snapshot"]}` diff --git a/pkg/ent/mutation.go b/pkg/ent/mutation.go index f1b56c9..d572248 100644 --- a/pkg/ent/mutation.go +++ b/pkg/ent/mutation.go @@ -8,12 +8,12 @@ import ( "sync" "time" - "github.com/open-privacy/opv/pkg/ent/apiaudit" - "github.com/open-privacy/opv/pkg/ent/fact" - "github.com/open-privacy/opv/pkg/ent/facttype" - "github.com/open-privacy/opv/pkg/ent/grant" - "github.com/open-privacy/opv/pkg/ent/predicate" - "github.com/open-privacy/opv/pkg/ent/scope" + "github.com/roney492/opv/pkg/ent/apiaudit" + "github.com/roney492/opv/pkg/ent/fact" + "github.com/roney492/opv/pkg/ent/facttype" + "github.com/roney492/opv/pkg/ent/grant" + "github.com/roney492/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/scope" "entgo.io/ent" ) diff --git a/pkg/ent/privacy/privacy.go b/pkg/ent/privacy/privacy.go index ee119e8..94c6d21 100644 --- a/pkg/ent/privacy/privacy.go +++ b/pkg/ent/privacy/privacy.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/open-privacy/opv/pkg/ent" + "github.com/roney492/opv/pkg/ent" "entgo.io/ent/entql" "entgo.io/ent/privacy" diff --git a/pkg/ent/runtime.go b/pkg/ent/runtime.go index 34a5f0f..9dcfea3 100644 --- a/pkg/ent/runtime.go +++ b/pkg/ent/runtime.go @@ -5,12 +5,12 @@ package ent import ( "time" - "github.com/open-privacy/opv/pkg/ent/apiaudit" - "github.com/open-privacy/opv/pkg/ent/fact" - "github.com/open-privacy/opv/pkg/ent/facttype" - "github.com/open-privacy/opv/pkg/ent/grant" - "github.com/open-privacy/opv/pkg/ent/schema" - "github.com/open-privacy/opv/pkg/ent/scope" + "github.com/roney492/opv/pkg/ent/apiaudit" + "github.com/roney492/opv/pkg/ent/fact" + "github.com/roney492/opv/pkg/ent/facttype" + "github.com/roney492/opv/pkg/ent/grant" + "github.com/roney492/opv/pkg/ent/schema" + "github.com/roney492/opv/pkg/ent/scope" ) // The init function reads all schema descriptors with runtime code diff --git a/pkg/ent/runtime/runtime.go b/pkg/ent/runtime/runtime.go index 317f7bc..5afed3b 100644 --- a/pkg/ent/runtime/runtime.go +++ b/pkg/ent/runtime/runtime.go @@ -2,7 +2,7 @@ package runtime -// The schema-stitching logic is generated in github.com/open-privacy/opv/pkg/ent/runtime.go +// The schema-stitching logic is generated in github.com/roney492/opv/pkg/ent/runtime.go const ( Version = "v0.7.0" // Version of ent codegen. diff --git a/pkg/ent/scope.go b/pkg/ent/scope.go index 2c5d6d0..79b6f79 100644 --- a/pkg/ent/scope.go +++ b/pkg/ent/scope.go @@ -8,7 +8,7 @@ import ( "time" "entgo.io/ent/dialect/sql" - "github.com/open-privacy/opv/pkg/ent/scope" + "github.com/roney492/opv/pkg/ent/scope" ) // Scope is the model entity for the Scope schema. diff --git a/pkg/ent/scope/where.go b/pkg/ent/scope/where.go index 8e5bffa..b0a3be1 100644 --- a/pkg/ent/scope/where.go +++ b/pkg/ent/scope/where.go @@ -7,7 +7,7 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" - "github.com/open-privacy/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/predicate" ) // ID filters vertices based on their ID field. diff --git a/pkg/ent/scope_create.go b/pkg/ent/scope_create.go index 9a5ee49..65418a6 100644 --- a/pkg/ent/scope_create.go +++ b/pkg/ent/scope_create.go @@ -10,8 +10,8 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/fact" - "github.com/open-privacy/opv/pkg/ent/scope" + "github.com/roney492/opv/pkg/ent/fact" + "github.com/roney492/opv/pkg/ent/scope" ) // ScopeCreate is the builder for creating a Scope entity. diff --git a/pkg/ent/scope_delete.go b/pkg/ent/scope_delete.go index 928a89e..6c28d2d 100644 --- a/pkg/ent/scope_delete.go +++ b/pkg/ent/scope_delete.go @@ -9,8 +9,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/predicate" - "github.com/open-privacy/opv/pkg/ent/scope" + "github.com/roney492/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/scope" ) // ScopeDelete is the builder for deleting a Scope entity. diff --git a/pkg/ent/scope_query.go b/pkg/ent/scope_query.go index 916423d..fde5c0a 100644 --- a/pkg/ent/scope_query.go +++ b/pkg/ent/scope_query.go @@ -12,9 +12,9 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/fact" - "github.com/open-privacy/opv/pkg/ent/predicate" - "github.com/open-privacy/opv/pkg/ent/scope" + "github.com/roney492/opv/pkg/ent/fact" + "github.com/roney492/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/scope" ) // ScopeQuery is the builder for querying Scope entities. diff --git a/pkg/ent/scope_update.go b/pkg/ent/scope_update.go index 4334c59..336a862 100644 --- a/pkg/ent/scope_update.go +++ b/pkg/ent/scope_update.go @@ -10,9 +10,9 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/open-privacy/opv/pkg/ent/fact" - "github.com/open-privacy/opv/pkg/ent/predicate" - "github.com/open-privacy/opv/pkg/ent/scope" + "github.com/roney492/opv/pkg/ent/fact" + "github.com/roney492/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/scope" ) // ScopeUpdate is the builder for updating Scope entities. diff --git a/pkg/proxyplane/http.go b/pkg/proxyplane/http.go index 1e20df4..90527e5 100644 --- a/pkg/proxyplane/http.go +++ b/pkg/proxyplane/http.go @@ -11,11 +11,11 @@ import ( "time" "github.com/golang-jwt/jwt" - _ "github.com/open-privacy/opv/pkg/proxyplane/modifier" // import it to register all the internal martian modifiers + _ "github.com/roney492/opv/pkg/proxyplane/modifier" // import it to register all the internal martian modifiers ginzap "github.com/gin-contrib/zap" "github.com/gin-gonic/gin" - "github.com/open-privacy/opv/pkg/config" + "github.com/roney492/opv/pkg/config" "go.uber.org/zap" gincors "github.com/devopsfaith/krakend-cors/gin" @@ -33,7 +33,7 @@ import ( const ( OPVProxyplaneUserAgent = "OPV Proxy Plane" - OPVProxyplaneExtraConfigNamespace = "github.com/open-privacy/opv" + OPVProxyplaneExtraConfigNamespace = "github.com/roney492/opv" ) type HTTPProxy struct { diff --git a/pkg/proxyplane/modifier/body.go b/pkg/proxyplane/modifier/body.go index 58e6d30..3687899 100644 --- a/pkg/proxyplane/modifier/body.go +++ b/pkg/proxyplane/modifier/body.go @@ -16,7 +16,7 @@ import ( "github.com/Jeffail/gabs" "github.com/go-playground/validator/v10" "github.com/google/martian/parse" - "github.com/open-privacy/opv/pkg/config" + "github.com/roney492/opv/pkg/config" ) func init() { diff --git a/pkg/repo/ent_impl.go b/pkg/repo/ent_impl.go index e4a973e..b8e967c 100644 --- a/pkg/repo/ent_impl.go +++ b/pkg/repo/ent_impl.go @@ -17,9 +17,9 @@ import ( entsql "entgo.io/ent/dialect/sql" "github.com/asaskevich/govalidator" "github.com/go-playground/validator/v10" - "github.com/open-privacy/opv/pkg/config" - "github.com/open-privacy/opv/pkg/ent" - "github.com/open-privacy/opv/pkg/ent/migrate" + "github.com/roney492/opv/pkg/config" + "github.com/roney492/opv/pkg/ent" + "github.com/roney492/opv/pkg/ent/migrate" ) type entImpl struct { diff --git a/pkg/repo/ent_impl_casbin.go b/pkg/repo/ent_impl_casbin.go index 4001ee6..66b4862 100644 --- a/pkg/repo/ent_impl_casbin.go +++ b/pkg/repo/ent_impl_casbin.go @@ -13,8 +13,8 @@ import ( _ "github.com/lib/pq" // postgres driver _ "github.com/mattn/go-sqlite3" // sqlite3 driver - "github.com/open-privacy/opv/pkg/config" - "github.com/open-privacy/opv/pkg/ent" + "github.com/roney492/opv/pkg/config" + "github.com/roney492/opv/pkg/ent" ) const defaultCasbinModel = ` diff --git a/pkg/repo/ent_impl_crud.go b/pkg/repo/ent_impl_crud.go index f552a2e..e90ba7e 100644 --- a/pkg/repo/ent_impl_crud.go +++ b/pkg/repo/ent_impl_crud.go @@ -8,12 +8,12 @@ import ( _ "github.com/lib/pq" // postgres driver _ "github.com/mattn/go-sqlite3" // sqlite3 driver - "github.com/open-privacy/opv/pkg/ent" - "github.com/open-privacy/opv/pkg/ent/apiaudit" - "github.com/open-privacy/opv/pkg/ent/fact" - "github.com/open-privacy/opv/pkg/ent/facttype" - "github.com/open-privacy/opv/pkg/ent/predicate" - "github.com/open-privacy/opv/pkg/ent/scope" + "github.com/roney492/opv/pkg/ent" + "github.com/roney492/opv/pkg/ent/apiaudit" + "github.com/roney492/opv/pkg/ent/fact" + "github.com/roney492/opv/pkg/ent/facttype" + "github.com/roney492/opv/pkg/ent/predicate" + "github.com/roney492/opv/pkg/ent/scope" ) func (e *entImpl) CreateFact(ctx context.Context, opt *CreateFactOption) (f *ent.Fact, err error) { diff --git a/pkg/repo/repo.go b/pkg/repo/repo.go index 025950c..3e1552c 100644 --- a/pkg/repo/repo.go +++ b/pkg/repo/repo.go @@ -6,8 +6,8 @@ import ( "entgo.io/ent/dialect" "github.com/labstack/echo/v4" - "github.com/open-privacy/opv/pkg/config" - "github.com/open-privacy/opv/pkg/ent" + "github.com/roney492/opv/pkg/config" + "github.com/roney492/opv/pkg/ent" ) const (