diff --git a/.gitignore b/.gitignore index 3cb5dd17a..6f5fb6a77 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.bin/ node_modules/ .idea/ coverage.txt @@ -6,4 +7,4 @@ dist/ **/*.sqlite-journal .vscode/ .fuzzer/ -keto \ No newline at end of file +keto diff --git a/Makefile b/Makefile index 440480b97..2c08a6395 100644 --- a/Makefile +++ b/Makefile @@ -49,8 +49,9 @@ node_modules: package-lock.json go build -o .bin/clidoc ./cmd/clidoc/. .PHONY: format -format: .bin/goimports node_modules - goimports -w -local github.com/ory/keto *.go internal cmd contrib ketoctx ketoapi embedx +format: .bin/ory .bin/goimports node_modules + .bin/ory dev headers license --exclude=.bin --exclude=internal/httpclient --exclude=proto + .bin/goimports -w -local github.com/ory/keto *.go internal cmd contrib ketoctx ketoapi embedx npm exec -- prettier --write . .PHONY: install @@ -70,10 +71,10 @@ sdk: .bin/swagger .bin/ory node_modules -c github.com/ory/x/healthx \ -x internal/httpclient \ -x internal/e2e - ory dev swagger sanitize ./spec/swagger.json + .bin/ory dev swagger sanitize ./spec/swagger.json swagger validate ./spec/swagger.json CIRCLE_PROJECT_USERNAME=ory CIRCLE_PROJECT_REPONAME=keto \ - ory dev openapi migrate \ + .bin/ory dev openapi migrate \ --health-path-tags metadata \ -p https://raw.githubusercontent.com/ory/x/master/healthx/openapi/patch.yaml \ -p file://.schema/openapi/patches/meta.yaml \ @@ -157,6 +158,7 @@ post-release: .bin/yq .PHONY: generate generate: .bin/stringer go generate ./... + make format licenses: .bin/licenses node_modules # checks open-source licenses .bin/licenses @@ -164,6 +166,10 @@ licenses: .bin/licenses node_modules # checks open-source licenses .bin/licenses: Makefile curl https://raw.githubusercontent.com/ory/ci/master/licenses/install | sh +.bin/ory: Makefile + curl https://raw.githubusercontent.com/ory/meta/master/install.sh | bash -s -- -b .bin ory v0.1.47 + touch .bin/ory + node_modules: package-lock.json npm ci touch node_modules diff --git a/cmd/check/root.go b/cmd/check/root.go index 66708d6b3..09194653e 100644 --- a/cmd/check/root.go +++ b/cmd/check/root.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package check import ( diff --git a/cmd/check/root_test.go b/cmd/check/root_test.go index 814b7c897..0436a90ba 100644 --- a/cmd/check/root_test.go +++ b/cmd/check/root_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package check import ( diff --git a/cmd/clidoc/main.go b/cmd/clidoc/main.go index 2feabb1f1..bc5b6dafe 100644 --- a/cmd/clidoc/main.go +++ b/cmd/clidoc/main.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/client/grpc_client.go b/cmd/client/grpc_client.go index 3abba463a..90db677b6 100644 --- a/cmd/client/grpc_client.go +++ b/cmd/client/grpc_client.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package client import ( diff --git a/cmd/client/grpc_client_test.go b/cmd/client/grpc_client_test.go index 6ff96cc2c..3eb14a8b9 100644 --- a/cmd/client/grpc_client_test.go +++ b/cmd/client/grpc_client_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package client import ( diff --git a/cmd/client/test_helpers.go b/cmd/client/test_helpers.go index b7224e12e..30bef36d3 100644 --- a/cmd/client/test_helpers.go +++ b/cmd/client/test_helpers.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package client import ( diff --git a/cmd/expand/root.go b/cmd/expand/root.go index 63f0a0971..4684ff695 100644 --- a/cmd/expand/root.go +++ b/cmd/expand/root.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package expand import ( diff --git a/cmd/expand/root_test.go b/cmd/expand/root_test.go index 0ac4b8512..52e7f0744 100644 --- a/cmd/expand/root_test.go +++ b/cmd/expand/root_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package expand import ( diff --git a/cmd/helpers/helpers.go b/cmd/helpers/helpers.go index c4586108e..fb84018a1 100644 --- a/cmd/helpers/helpers.go +++ b/cmd/helpers/helpers.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package helpers import ( diff --git a/cmd/migrate/down.go b/cmd/migrate/down.go index 91979ab86..1560a4378 100644 --- a/cmd/migrate/down.go +++ b/cmd/migrate/down.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package migrate import ( diff --git a/cmd/migrate/migrate_test.go b/cmd/migrate/migrate_test.go index b56e9f6f5..d7ab52886 100644 --- a/cmd/migrate/migrate_test.go +++ b/cmd/migrate/migrate_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package migrate import ( diff --git a/cmd/migrate/root.go b/cmd/migrate/root.go index f29f9d3f6..8603222a0 100644 --- a/cmd/migrate/root.go +++ b/cmd/migrate/root.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package migrate import ( diff --git a/cmd/migrate/status.go b/cmd/migrate/status.go index b1b52c9b1..5bfc8c8ef 100644 --- a/cmd/migrate/status.go +++ b/cmd/migrate/status.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package migrate import ( diff --git a/cmd/migrate/up.go b/cmd/migrate/up.go index 27ceed165..bddfc5956 100644 --- a/cmd/migrate/up.go +++ b/cmd/migrate/up.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package migrate import ( diff --git a/cmd/namespace/opl_generate.go b/cmd/namespace/opl_generate.go index 2519685f0..94bf9212b 100644 --- a/cmd/namespace/opl_generate.go +++ b/cmd/namespace/opl_generate.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package namespace import ( diff --git a/cmd/namespace/opl_generate_test.go b/cmd/namespace/opl_generate_test.go index 7cd95b6db..d501f9002 100644 --- a/cmd/namespace/opl_generate_test.go +++ b/cmd/namespace/opl_generate_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package namespace_test import ( diff --git a/cmd/namespace/root.go b/cmd/namespace/root.go index 9264da0f7..c3da8473a 100644 --- a/cmd/namespace/root.go +++ b/cmd/namespace/root.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package namespace import ( diff --git a/cmd/namespace/validate.go b/cmd/namespace/validate.go index a59e47827..d7c38a43c 100644 --- a/cmd/namespace/validate.go +++ b/cmd/namespace/validate.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package namespace import ( diff --git a/cmd/namespace/validate_test.go b/cmd/namespace/validate_test.go index 9de762458..5d4c44e0d 100644 --- a/cmd/namespace/validate_test.go +++ b/cmd/namespace/validate_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package namespace import ( diff --git a/cmd/relationtuple/create.go b/cmd/relationtuple/create.go index 72a9a17ad..a8ebaef45 100644 --- a/cmd/relationtuple/create.go +++ b/cmd/relationtuple/create.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/cmd/relationtuple/delete.go b/cmd/relationtuple/delete.go index 4f4094e94..60a261cc7 100644 --- a/cmd/relationtuple/delete.go +++ b/cmd/relationtuple/delete.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/cmd/relationtuple/delete_all.go b/cmd/relationtuple/delete_all.go index f77aea576..8675c504c 100644 --- a/cmd/relationtuple/delete_all.go +++ b/cmd/relationtuple/delete_all.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/cmd/relationtuple/delete_all_test.go b/cmd/relationtuple/delete_all_test.go index e5cae7c9c..7df06665f 100644 --- a/cmd/relationtuple/delete_all_test.go +++ b/cmd/relationtuple/delete_all_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/cmd/relationtuple/get.go b/cmd/relationtuple/get.go index ef8f609a9..03eb33341 100644 --- a/cmd/relationtuple/get.go +++ b/cmd/relationtuple/get.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/cmd/relationtuple/output.go b/cmd/relationtuple/output.go index 900ed0c3b..018787ef9 100644 --- a/cmd/relationtuple/output.go +++ b/cmd/relationtuple/output.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/cmd/relationtuple/output_test.go b/cmd/relationtuple/output_test.go index e973ed524..bcfa29e4a 100644 --- a/cmd/relationtuple/output_test.go +++ b/cmd/relationtuple/output_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/cmd/relationtuple/parse.go b/cmd/relationtuple/parse.go index 5cc20bf51..0be42382a 100644 --- a/cmd/relationtuple/parse.go +++ b/cmd/relationtuple/parse.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/cmd/relationtuple/parse_test.go b/cmd/relationtuple/parse_test.go index ed4175b24..38a9ebfa0 100644 --- a/cmd/relationtuple/parse_test.go +++ b/cmd/relationtuple/parse_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/cmd/relationtuple/root.go b/cmd/relationtuple/root.go index 495d7b502..3cca761a0 100644 --- a/cmd/relationtuple/root.go +++ b/cmd/relationtuple/root.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/cmd/root.go b/cmd/root.go index b5ece32d0..77885347a 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,16 +1,5 @@ -// Copyright © 2018 NAME HERE -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package cmd diff --git a/cmd/serve_debug_test.go b/cmd/serve_debug_test.go index a2206bbce..8df46a738 100644 --- a/cmd/serve_debug_test.go +++ b/cmd/serve_debug_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package cmd import ( diff --git a/cmd/server/serve.go b/cmd/server/serve.go index 4871bd0ae..5e13ecb75 100644 --- a/cmd/server/serve.go +++ b/cmd/server/serve.go @@ -1,16 +1,5 @@ -// Copyright © 2018 NAME HERE -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package server diff --git a/cmd/status/root.go b/cmd/status/root.go index 5fe89c9de..3061fe5cf 100644 --- a/cmd/status/root.go +++ b/cmd/status/root.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package status import ( diff --git a/cmd/status/root_test.go b/cmd/status/root_test.go index 84a64587d..077dac61f 100644 --- a/cmd/status/root_test.go +++ b/cmd/status/root_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package status import ( diff --git a/contrib/docs-code-samples/expand-api-display-access/00-create-tuples/index.js b/contrib/docs-code-samples/expand-api-display-access/00-create-tuples/index.js index 524a478c5..63bb8458f 100644 --- a/contrib/docs-code-samples/expand-api-display-access/00-create-tuples/index.js +++ b/contrib/docs-code-samples/expand-api-display-access/00-create-tuples/index.js @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import grpc from "@ory/keto-grpc-client/node_modules/@grpc/grpc-js/build/src/index.js" import { relationTuples, write, writeService } from "@ory/keto-grpc-client" diff --git a/contrib/docs-code-samples/expand-api-display-access/00-create-tuples/main.go b/contrib/docs-code-samples/expand-api-display-access/00-create-tuples/main.go index 2887f1eff..d94986577 100644 --- a/contrib/docs-code-samples/expand-api-display-access/00-create-tuples/main.go +++ b/contrib/docs-code-samples/expand-api-display-access/00-create-tuples/main.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/contrib/docs-code-samples/expand-api-display-access/01-expand-beach/index.js b/contrib/docs-code-samples/expand-api-display-access/01-expand-beach/index.js index 1d4cd61c8..0022388a7 100644 --- a/contrib/docs-code-samples/expand-api-display-access/01-expand-beach/index.js +++ b/contrib/docs-code-samples/expand-api-display-access/01-expand-beach/index.js @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import grpc from "@ory/keto-grpc-client/node_modules/@grpc/grpc-js/build/src/index.js" import { relationTuples, expand, expandService } from "@ory/keto-grpc-client" diff --git a/contrib/docs-code-samples/expand-api-display-access/01-expand-beach/main.go b/contrib/docs-code-samples/expand-api-display-access/01-expand-beach/main.go index 43a038bbe..4321cecf9 100644 --- a/contrib/docs-code-samples/expand-api-display-access/01-expand-beach/main.go +++ b/contrib/docs-code-samples/expand-api-display-access/01-expand-beach/main.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/contrib/docs-code-samples/expand-api-display-access/99-cleanup/index.js b/contrib/docs-code-samples/expand-api-display-access/99-cleanup/index.js index 6d53b8286..b9ded337f 100644 --- a/contrib/docs-code-samples/expand-api-display-access/99-cleanup/index.js +++ b/contrib/docs-code-samples/expand-api-display-access/99-cleanup/index.js @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import grpc from "@ory/keto-grpc-client/node_modules/@grpc/grpc-js/build/src/index.js" import { relationTuples, write, writeService } from "@ory/keto-grpc-client" diff --git a/contrib/docs-code-samples/expand-api-display-access/99-cleanup/main.go b/contrib/docs-code-samples/expand-api-display-access/99-cleanup/main.go index bf2a31483..e89c60c7c 100644 --- a/contrib/docs-code-samples/expand-api-display-access/99-cleanup/main.go +++ b/contrib/docs-code-samples/expand-api-display-access/99-cleanup/main.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + //go:build docscodesamples // +build docscodesamples diff --git a/contrib/docs-code-samples/list-api-display-objects/00-create-tuples/index.js b/contrib/docs-code-samples/list-api-display-objects/00-create-tuples/index.js index 28202ea36..9c76c3d7a 100644 --- a/contrib/docs-code-samples/list-api-display-objects/00-create-tuples/index.js +++ b/contrib/docs-code-samples/list-api-display-objects/00-create-tuples/index.js @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import grpc from "@ory/keto-grpc-client/node_modules/@grpc/grpc-js/build/src/index.js" import { relationTuples, write, writeService } from "@ory/keto-grpc-client" diff --git a/contrib/docs-code-samples/list-api-display-objects/00-create-tuples/main.go b/contrib/docs-code-samples/list-api-display-objects/00-create-tuples/main.go index 444968a19..0715a83aa 100644 --- a/contrib/docs-code-samples/list-api-display-objects/00-create-tuples/main.go +++ b/contrib/docs-code-samples/list-api-display-objects/00-create-tuples/main.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/contrib/docs-code-samples/list-api-display-objects/01-list-PM/index.js b/contrib/docs-code-samples/list-api-display-objects/01-list-PM/index.js index 36d740767..132afcb64 100644 --- a/contrib/docs-code-samples/list-api-display-objects/01-list-PM/index.js +++ b/contrib/docs-code-samples/list-api-display-objects/01-list-PM/index.js @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import grpc from "@ory/keto-grpc-client/node_modules/@grpc/grpc-js/build/src/index.js" import { relationTuples, read, readService } from "@ory/keto-grpc-client" diff --git a/contrib/docs-code-samples/list-api-display-objects/01-list-PM/main.go b/contrib/docs-code-samples/list-api-display-objects/01-list-PM/main.go index 9108d16ad..35370b511 100644 --- a/contrib/docs-code-samples/list-api-display-objects/01-list-PM/main.go +++ b/contrib/docs-code-samples/list-api-display-objects/01-list-PM/main.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/contrib/docs-code-samples/list-api-display-objects/02-list-coffee-break/index.js b/contrib/docs-code-samples/list-api-display-objects/02-list-coffee-break/index.js index 819255e41..033ebdc6a 100644 --- a/contrib/docs-code-samples/list-api-display-objects/02-list-coffee-break/index.js +++ b/contrib/docs-code-samples/list-api-display-objects/02-list-coffee-break/index.js @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import grpc from "@ory/keto-grpc-client/node_modules/@grpc/grpc-js/build/src/index.js" import { read, readService } from "@ory/keto-grpc-client" diff --git a/contrib/docs-code-samples/list-api-display-objects/02-list-coffee-break/main.go b/contrib/docs-code-samples/list-api-display-objects/02-list-coffee-break/main.go index 810cc8087..bc6d30671 100644 --- a/contrib/docs-code-samples/list-api-display-objects/02-list-coffee-break/main.go +++ b/contrib/docs-code-samples/list-api-display-objects/02-list-coffee-break/main.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/contrib/docs-code-samples/list-api-display-objects/99-cleanup/index.js b/contrib/docs-code-samples/list-api-display-objects/99-cleanup/index.js index 557b4f33c..4486a19fc 100644 --- a/contrib/docs-code-samples/list-api-display-objects/99-cleanup/index.js +++ b/contrib/docs-code-samples/list-api-display-objects/99-cleanup/index.js @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import grpc from "@ory/keto-grpc-client/node_modules/@grpc/grpc-js/build/src/index.js" import { write, writeService, read, readService } from "@ory/keto-grpc-client" diff --git a/contrib/docs-code-samples/list-api-display-objects/99-cleanup/main.go b/contrib/docs-code-samples/list-api-display-objects/99-cleanup/main.go index d54e356ef..bd95d863f 100644 --- a/contrib/docs-code-samples/list-api-display-objects/99-cleanup/main.go +++ b/contrib/docs-code-samples/list-api-display-objects/99-cleanup/main.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + //go:build docscodesamples // +build docscodesamples diff --git a/contrib/docs-code-samples/simple-access-check-guide/00-write-direct-access/index.js b/contrib/docs-code-samples/simple-access-check-guide/00-write-direct-access/index.js index 2b46d09ad..33da25cdf 100644 --- a/contrib/docs-code-samples/simple-access-check-guide/00-write-direct-access/index.js +++ b/contrib/docs-code-samples/simple-access-check-guide/00-write-direct-access/index.js @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import grpc from "@ory/keto-grpc-client/node_modules/@grpc/grpc-js/build/src/index.js" import { relationTuples, write, writeService } from "@ory/keto-grpc-client" diff --git a/contrib/docs-code-samples/simple-access-check-guide/00-write-direct-access/main.go b/contrib/docs-code-samples/simple-access-check-guide/00-write-direct-access/main.go index 7730720e5..9cbb5441f 100644 --- a/contrib/docs-code-samples/simple-access-check-guide/00-write-direct-access/main.go +++ b/contrib/docs-code-samples/simple-access-check-guide/00-write-direct-access/main.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/contrib/docs-code-samples/simple-access-check-guide/01-check-direct-access/index.js b/contrib/docs-code-samples/simple-access-check-guide/01-check-direct-access/index.js index 368f75be2..018397f75 100644 --- a/contrib/docs-code-samples/simple-access-check-guide/01-check-direct-access/index.js +++ b/contrib/docs-code-samples/simple-access-check-guide/01-check-direct-access/index.js @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import grpc from "@ory/keto-grpc-client/node_modules/@grpc/grpc-js/build/src/index.js" import { relationTuples, check, checkService } from "@ory/keto-grpc-client" diff --git a/contrib/docs-code-samples/simple-access-check-guide/01-check-direct-access/main.go b/contrib/docs-code-samples/simple-access-check-guide/01-check-direct-access/main.go index cbc5dc89d..1c87760de 100644 --- a/contrib/docs-code-samples/simple-access-check-guide/01-check-direct-access/main.go +++ b/contrib/docs-code-samples/simple-access-check-guide/01-check-direct-access/main.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/contrib/docs-code-samples/simple-access-check-guide/99-cleanup/index.js b/contrib/docs-code-samples/simple-access-check-guide/99-cleanup/index.js index 3e6310fa4..e4a1fb563 100644 --- a/contrib/docs-code-samples/simple-access-check-guide/99-cleanup/index.js +++ b/contrib/docs-code-samples/simple-access-check-guide/99-cleanup/index.js @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import grpc from "@ory/keto-grpc-client/node_modules/@grpc/grpc-js/build/src/index.js" import { relationTuples, write, writeService } from "@ory/keto-grpc-client" diff --git a/contrib/docs-code-samples/simple-access-check-guide/99-cleanup/main.go b/contrib/docs-code-samples/simple-access-check-guide/99-cleanup/main.go index 12dc715e9..725c3288e 100644 --- a/contrib/docs-code-samples/simple-access-check-guide/99-cleanup/main.go +++ b/contrib/docs-code-samples/simple-access-check-guide/99-cleanup/main.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/contrib/namespace-type-lib/index.d.ts b/contrib/namespace-type-lib/index.d.ts index d21bc4725..32e0ba48b 100644 --- a/contrib/namespace-type-lib/index.d.ts +++ b/contrib/namespace-type-lib/index.d.ts @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + /// declare interface Boolean {} diff --git a/contrib/namespace-type-lib/test.ts b/contrib/namespace-type-lib/test.ts index f17f5713d..15d844f19 100644 --- a/contrib/namespace-type-lib/test.ts +++ b/contrib/namespace-type-lib/test.ts @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import { Namespace, SubjectSet, Context } from "@ory/keto-namespace-types" // This test is not really a valid config, but rather a check of the types. diff --git a/contrib/rewrites-example/namespaces.keto.ts b/contrib/rewrites-example/namespaces.keto.ts index 5e67f2604..10523d15f 100644 --- a/contrib/rewrites-example/namespaces.keto.ts +++ b/contrib/rewrites-example/namespaces.keto.ts @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + import { Namespace, SubjectSet, Context } from "@ory/keto-namespace-types" class User implements Namespace { diff --git a/doc.go b/doc.go index cd42f8392..7ff65b40b 100644 --- a/doc.go +++ b/doc.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // Package main ORY Keto // // Ory Keto is a cloud native access control server providing best-practice patterns (RBAC, ABAC, ACL, AWS IAM Policies, Kubernetes Roles, ...) via REST APIs. @@ -17,17 +20,3 @@ // // swagger:meta package main - -// Copyright © 2017 Aeneas Rekkas -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. diff --git a/doc_swagger.go b/doc_swagger.go index ab10ab216..df8d571c6 100644 --- a/doc_swagger.go +++ b/doc_swagger.go @@ -1,16 +1,5 @@ -// Copyright © 2017 Aeneas Rekkas -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/embedx/schemas.go b/embedx/schemas.go index c2e938fc6..5077ee82c 100644 --- a/embedx/schemas.go +++ b/embedx/schemas.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package embedx import ( diff --git a/embedx/schemas_test.go b/embedx/schemas_test.go index c9910efc2..bea06a96f 100644 --- a/embedx/schemas_test.go +++ b/embedx/schemas_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package embedx import ( diff --git a/internal/check/bench_test.go b/internal/check/bench_test.go index 7db57844e..993e240b7 100644 --- a/internal/check/bench_test.go +++ b/internal/check/bench_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package check_test import ( diff --git a/internal/check/binop.go b/internal/check/binop.go index d1ed7fa23..1593557d6 100644 --- a/internal/check/binop.go +++ b/internal/check/binop.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package check import ( diff --git a/internal/check/checkgroup/checkgroup_test.go b/internal/check/checkgroup/checkgroup_test.go index 5bbfc3c8e..0ed489da5 100644 --- a/internal/check/checkgroup/checkgroup_test.go +++ b/internal/check/checkgroup/checkgroup_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package checkgroup_test import ( diff --git a/internal/check/checkgroup/concurrent_checkgroup.go b/internal/check/checkgroup/concurrent_checkgroup.go index 1dabe8ccb..762549e4b 100644 --- a/internal/check/checkgroup/concurrent_checkgroup.go +++ b/internal/check/checkgroup/concurrent_checkgroup.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package checkgroup import ( diff --git a/internal/check/checkgroup/definitions.go b/internal/check/checkgroup/definitions.go index 352da0d49..0eac0924a 100644 --- a/internal/check/checkgroup/definitions.go +++ b/internal/check/checkgroup/definitions.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package checkgroup import ( diff --git a/internal/check/checkgroup/membership_string.go b/internal/check/checkgroup/membership_string.go index a5670b365..3fc6fd662 100644 --- a/internal/check/checkgroup/membership_string.go +++ b/internal/check/checkgroup/membership_string.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // Code generated by "stringer -type Membership"; DO NOT EDIT. package checkgroup diff --git a/internal/check/checkgroup/testmain_test.go b/internal/check/checkgroup/testmain_test.go index 780afbae5..171494f7e 100644 --- a/internal/check/checkgroup/testmain_test.go +++ b/internal/check/checkgroup/testmain_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package checkgroup_test import ( diff --git a/internal/check/checkgroup/workerpool_test.go b/internal/check/checkgroup/workerpool_test.go index b08d39f92..7a052aa20 100644 --- a/internal/check/checkgroup/workerpool_test.go +++ b/internal/check/checkgroup/workerpool_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package checkgroup_test import ( diff --git a/internal/check/engine.go b/internal/check/engine.go index 1226544a4..263bfe62e 100644 --- a/internal/check/engine.go +++ b/internal/check/engine.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package check import ( diff --git a/internal/check/engine_test.go b/internal/check/engine_test.go index 289bbe1fe..b421d65c5 100644 --- a/internal/check/engine_test.go +++ b/internal/check/engine_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package check_test import ( diff --git a/internal/check/handler.go b/internal/check/handler.go index 0f9aec8cf..3ba2fd64c 100644 --- a/internal/check/handler.go +++ b/internal/check/handler.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package check import ( diff --git a/internal/check/handler_test.go b/internal/check/handler_test.go index 346dc26c3..b3cedf4b5 100644 --- a/internal/check/handler_test.go +++ b/internal/check/handler_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package check_test import ( diff --git a/internal/check/performance_test.go b/internal/check/performance_test.go index 3d67334fd..ce50f04a7 100644 --- a/internal/check/performance_test.go +++ b/internal/check/performance_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package check_test //import ( diff --git a/internal/check/rewrites.go b/internal/check/rewrites.go index fd99f856f..a1b36fa9b 100644 --- a/internal/check/rewrites.go +++ b/internal/check/rewrites.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package check import ( diff --git a/internal/check/rewrites_test.go b/internal/check/rewrites_test.go index 9ee928011..bdff9c665 100644 --- a/internal/check/rewrites_test.go +++ b/internal/check/rewrites_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package check_test import ( diff --git a/internal/check/testmain_test.go b/internal/check/testmain_test.go index dd314464e..0e3ab7c81 100644 --- a/internal/check/testmain_test.go +++ b/internal/check/testmain_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package check_test import ( diff --git a/internal/driver/config/buildinfo.go b/internal/driver/config/buildinfo.go index bd2633440..54a894387 100644 --- a/internal/driver/config/buildinfo.go +++ b/internal/driver/config/buildinfo.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package config var ( diff --git a/internal/driver/config/namespace_memory.go b/internal/driver/config/namespace_memory.go index 00a10a1e8..e78420646 100644 --- a/internal/driver/config/namespace_memory.go +++ b/internal/driver/config/namespace_memory.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/internal/driver/config/namespace_memory_test.go b/internal/driver/config/namespace_memory_test.go index 229a13722..281842d07 100644 --- a/internal/driver/config/namespace_memory_test.go +++ b/internal/driver/config/namespace_memory_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/internal/driver/config/namespace_watcher.go b/internal/driver/config/namespace_watcher.go index ebbef6f19..ca1a6e584 100644 --- a/internal/driver/config/namespace_watcher.go +++ b/internal/driver/config/namespace_watcher.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/internal/driver/config/namespace_watcher_test.go b/internal/driver/config/namespace_watcher_test.go index 7ea5a152e..1a5d8d971 100644 --- a/internal/driver/config/namespace_watcher_test.go +++ b/internal/driver/config/namespace_watcher_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/internal/driver/config/opl_config_namespace_watcher.go b/internal/driver/config/opl_config_namespace_watcher.go index bce5ed499..b32e77d8e 100644 --- a/internal/driver/config/opl_config_namespace_watcher.go +++ b/internal/driver/config/opl_config_namespace_watcher.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/internal/driver/config/provider.go b/internal/driver/config/provider.go index 2d17a37bb..c6729e306 100644 --- a/internal/driver/config/provider.go +++ b/internal/driver/config/provider.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/internal/driver/config/provider_test.go b/internal/driver/config/provider_test.go index bd8d87a9d..f90b5dd67 100644 --- a/internal/driver/config/provider_test.go +++ b/internal/driver/config/provider_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package config import ( diff --git a/internal/driver/daemon.go b/internal/driver/daemon.go index 8d56c6297..15ff48d21 100644 --- a/internal/driver/daemon.go +++ b/internal/driver/daemon.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package driver import ( diff --git a/internal/driver/daemon_test.go b/internal/driver/daemon_test.go index de150e736..560b9ab1e 100644 --- a/internal/driver/daemon_test.go +++ b/internal/driver/daemon_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package driver import ( diff --git a/internal/driver/pop_connection.go b/internal/driver/pop_connection.go index da02b9d9b..d076a1b76 100644 --- a/internal/driver/pop_connection.go +++ b/internal/driver/pop_connection.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package driver import ( diff --git a/internal/driver/registry.go b/internal/driver/registry.go index 1f9d64573..8ee7fff9f 100644 --- a/internal/driver/registry.go +++ b/internal/driver/registry.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package driver import ( diff --git a/internal/driver/registry_default.go b/internal/driver/registry_default.go index 84894be7d..48b1d0bc7 100644 --- a/internal/driver/registry_default.go +++ b/internal/driver/registry_default.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package driver import ( diff --git a/internal/driver/registry_factory.go b/internal/driver/registry_factory.go index d36d36e36..fb8856b70 100644 --- a/internal/driver/registry_factory.go +++ b/internal/driver/registry_factory.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package driver import ( diff --git a/internal/driver/selfsigned_cert_bench_test.go b/internal/driver/selfsigned_cert_bench_test.go index 79e812f83..4cc485e3f 100644 --- a/internal/driver/selfsigned_cert_bench_test.go +++ b/internal/driver/selfsigned_cert_bench_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package driver import ( diff --git a/internal/e2e/cli_client_test.go b/internal/e2e/cli_client_test.go index 9e7d1976e..f4646a223 100644 --- a/internal/e2e/cli_client_test.go +++ b/internal/e2e/cli_client_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package e2e import ( diff --git a/internal/e2e/full_suit_test.go b/internal/e2e/full_suit_test.go index d6657e784..0cb2aa9a5 100644 --- a/internal/e2e/full_suit_test.go +++ b/internal/e2e/full_suit_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package e2e import ( diff --git a/internal/e2e/grpc_client_test.go b/internal/e2e/grpc_client_test.go index ab4a93685..e78329403 100644 --- a/internal/e2e/grpc_client_test.go +++ b/internal/e2e/grpc_client_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package e2e import ( diff --git a/internal/e2e/helpers.go b/internal/e2e/helpers.go index 30ce75af0..fb98e485e 100644 --- a/internal/e2e/helpers.go +++ b/internal/e2e/helpers.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package e2e import ( diff --git a/internal/e2e/rest_client_test.go b/internal/e2e/rest_client_test.go index 4fd8f8730..49b2ebea1 100644 --- a/internal/e2e/rest_client_test.go +++ b/internal/e2e/rest_client_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package e2e import ( diff --git a/internal/e2e/sdk_client_test.go b/internal/e2e/sdk_client_test.go index f43547794..7f18a64bb 100644 --- a/internal/e2e/sdk_client_test.go +++ b/internal/e2e/sdk_client_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package e2e import ( diff --git a/internal/e2e/testcases_test.go b/internal/e2e/testcases_test.go index 3e0162d31..9a0a7fb58 100644 --- a/internal/e2e/testcases_test.go +++ b/internal/e2e/testcases_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package e2e import ( diff --git a/internal/e2e/transaction_cases_test.go b/internal/e2e/transaction_cases_test.go index 8d615db91..76e0d5910 100644 --- a/internal/e2e/transaction_cases_test.go +++ b/internal/e2e/transaction_cases_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package e2e import ( diff --git a/internal/expand/engine.go b/internal/expand/engine.go index 408c47d44..2cb0a764c 100644 --- a/internal/expand/engine.go +++ b/internal/expand/engine.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package expand import ( diff --git a/internal/expand/engine_test.go b/internal/expand/engine_test.go index 2ec2d860d..0386b85b9 100644 --- a/internal/expand/engine_test.go +++ b/internal/expand/engine_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package expand_test import ( diff --git a/internal/expand/handler.go b/internal/expand/handler.go index 87a8ce894..d03b125be 100644 --- a/internal/expand/handler.go +++ b/internal/expand/handler.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package expand import ( diff --git a/internal/expand/handler_test.go b/internal/expand/handler_test.go index de4df8a00..cf2d6733a 100644 --- a/internal/expand/handler_test.go +++ b/internal/expand/handler_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package expand_test import ( diff --git a/internal/expand/testhelper.go b/internal/expand/testhelper.go index 845566bcc..0d44956c7 100644 --- a/internal/expand/testhelper.go +++ b/internal/expand/testhelper.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package expand import ( diff --git a/internal/namespace/ast/ast_definitions.go b/internal/namespace/ast/ast_definitions.go index c5cd56486..b9c049863 100644 --- a/internal/namespace/ast/ast_definitions.go +++ b/internal/namespace/ast/ast_definitions.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package ast import "encoding/json" diff --git a/internal/namespace/ast/operator_string.go b/internal/namespace/ast/operator_string.go index 74f212cb6..07834396c 100644 --- a/internal/namespace/ast/operator_string.go +++ b/internal/namespace/ast/operator_string.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // Code generated by "stringer -type=Operator -linecomment"; DO NOT EDIT. package ast diff --git a/internal/namespace/definitions.go b/internal/namespace/definitions.go index ff526f844..a47f05576 100644 --- a/internal/namespace/definitions.go +++ b/internal/namespace/definitions.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package namespace import ( diff --git a/internal/namespace/namespacehandler/handler.go b/internal/namespace/namespacehandler/handler.go index 6df611f6f..315fab3d9 100644 --- a/internal/namespace/namespacehandler/handler.go +++ b/internal/namespace/namespacehandler/handler.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package namespacehandler import ( diff --git a/internal/persistence/definitions.go b/internal/persistence/definitions.go index ce0a73c50..61d60d962 100644 --- a/internal/persistence/definitions.go +++ b/internal/persistence/definitions.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package persistence import ( diff --git a/internal/persistence/sql/full_test.go b/internal/persistence/sql/full_test.go index c68d98ecf..b74d8f44a 100644 --- a/internal/persistence/sql/full_test.go +++ b/internal/persistence/sql/full_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package sql_test import ( diff --git a/internal/persistence/sql/migrations/migratest/migration_test.go b/internal/persistence/sql/migrations/migratest/migration_test.go index 32aea0a6f..09e202eb4 100644 --- a/internal/persistence/sql/migrations/migratest/migration_test.go +++ b/internal/persistence/sql/migrations/migratest/migration_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package migratest import ( diff --git a/internal/persistence/sql/migrations/uuidmapping/uuid_mapping_migrator.go b/internal/persistence/sql/migrations/uuidmapping/uuid_mapping_migrator.go index 9d3154e35..e4db40c64 100644 --- a/internal/persistence/sql/migrations/uuidmapping/uuid_mapping_migrator.go +++ b/internal/persistence/sql/migrations/uuidmapping/uuid_mapping_migrator.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package uuidmapping import ( diff --git a/internal/persistence/sql/migrations/uuidmapping/uuid_mapping_migrator_test.go b/internal/persistence/sql/migrations/uuidmapping/uuid_mapping_migrator_test.go index 971561354..428b01141 100644 --- a/internal/persistence/sql/migrations/uuidmapping/uuid_mapping_migrator_test.go +++ b/internal/persistence/sql/migrations/uuidmapping/uuid_mapping_migrator_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package uuidmapping_test import ( diff --git a/internal/persistence/sql/pagination_test.go b/internal/persistence/sql/pagination_test.go index 5f3f3e9da..debeb7623 100644 --- a/internal/persistence/sql/pagination_test.go +++ b/internal/persistence/sql/pagination_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package sql import ( diff --git a/internal/persistence/sql/persister.go b/internal/persistence/sql/persister.go index 4fc017de5..1df576e57 100644 --- a/internal/persistence/sql/persister.go +++ b/internal/persistence/sql/persister.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package sql import ( diff --git a/internal/persistence/sql/relationtuples.go b/internal/persistence/sql/relationtuples.go index bb3fea2da..4310edeff 100644 --- a/internal/persistence/sql/relationtuples.go +++ b/internal/persistence/sql/relationtuples.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package sql import ( diff --git a/internal/persistence/sql/relationtuples_test.go b/internal/persistence/sql/relationtuples_test.go index f876d8d45..aaa5691da 100644 --- a/internal/persistence/sql/relationtuples_test.go +++ b/internal/persistence/sql/relationtuples_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package sql_test import ( diff --git a/internal/persistence/sql/uuid_mapping.go b/internal/persistence/sql/uuid_mapping.go index bc7e12b18..66db88e45 100644 --- a/internal/persistence/sql/uuid_mapping.go +++ b/internal/persistence/sql/uuid_mapping.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package sql import ( diff --git a/internal/persistence/sql/uuid_mapping_test.go b/internal/persistence/sql/uuid_mapping_test.go index ce72b5dbf..8e3d6cea8 100644 --- a/internal/persistence/sql/uuid_mapping_test.go +++ b/internal/persistence/sql/uuid_mapping_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package sql_test import ( diff --git a/internal/relationtuple/definitions.go b/internal/relationtuple/definitions.go index 789285160..8218d407a 100644 --- a/internal/relationtuple/definitions.go +++ b/internal/relationtuple/definitions.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/internal/relationtuple/definitions_test.go b/internal/relationtuple/definitions_test.go index b10f28040..ab850edb4 100644 --- a/internal/relationtuple/definitions_test.go +++ b/internal/relationtuple/definitions_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/internal/relationtuple/handler.go b/internal/relationtuple/handler.go index 4223b4b4a..0e38b8dae 100644 --- a/internal/relationtuple/handler.go +++ b/internal/relationtuple/handler.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/internal/relationtuple/manager_isolation.go b/internal/relationtuple/manager_isolation.go index 7080238df..d57db1dc0 100644 --- a/internal/relationtuple/manager_isolation.go +++ b/internal/relationtuple/manager_isolation.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/internal/relationtuple/manager_requirements.go b/internal/relationtuple/manager_requirements.go index 2ffcf9bb8..e02086cf4 100644 --- a/internal/relationtuple/manager_requirements.go +++ b/internal/relationtuple/manager_requirements.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/internal/relationtuple/read_server.go b/internal/relationtuple/read_server.go index 7aef627a4..51da7c5a4 100644 --- a/internal/relationtuple/read_server.go +++ b/internal/relationtuple/read_server.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/internal/relationtuple/read_server_test.go b/internal/relationtuple/read_server_test.go index b33403bd3..b6acf6d1c 100644 --- a/internal/relationtuple/read_server_test.go +++ b/internal/relationtuple/read_server_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple_test import ( diff --git a/internal/relationtuple/swagger_definitions.go b/internal/relationtuple/swagger_definitions.go index 12bada38c..4127b0c21 100644 --- a/internal/relationtuple/swagger_definitions.go +++ b/internal/relationtuple/swagger_definitions.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/internal/relationtuple/test_helper.go b/internal/relationtuple/test_helper.go index a984d940b..9e68f9a90 100644 --- a/internal/relationtuple/test_helper.go +++ b/internal/relationtuple/test_helper.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/internal/relationtuple/transact_server.go b/internal/relationtuple/transact_server.go index 64738376f..330155869 100644 --- a/internal/relationtuple/transact_server.go +++ b/internal/relationtuple/transact_server.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/internal/relationtuple/transact_server_test.go b/internal/relationtuple/transact_server_test.go index d8adba066..379952fcc 100644 --- a/internal/relationtuple/transact_server_test.go +++ b/internal/relationtuple/transact_server_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple_test import ( diff --git a/internal/relationtuple/uuid_mapping.go b/internal/relationtuple/uuid_mapping.go index 0188f4bab..285e5a4ab 100644 --- a/internal/relationtuple/uuid_mapping.go +++ b/internal/relationtuple/uuid_mapping.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple import ( diff --git a/internal/relationtuple/uuid_mapping_test.go b/internal/relationtuple/uuid_mapping_test.go index a912f82ac..5f2c757e5 100644 --- a/internal/relationtuple/uuid_mapping_test.go +++ b/internal/relationtuple/uuid_mapping_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package relationtuple_test import ( diff --git a/internal/schema/handler.go b/internal/schema/handler.go index 1d7c11d93..841cc85ff 100644 --- a/internal/schema/handler.go +++ b/internal/schema/handler.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package schema import ( diff --git a/internal/schema/handler_test.go b/internal/schema/handler_test.go index 8b5985cd2..cad979437 100644 --- a/internal/schema/handler_test.go +++ b/internal/schema/handler_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package schema_test import ( diff --git a/internal/schema/itemtype_string.go b/internal/schema/itemtype_string.go index d608294d9..c00f7375c 100644 --- a/internal/schema/itemtype_string.go +++ b/internal/schema/itemtype_string.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // Code generated by "stringer -type=itemType -trimprefix item -linecomment"; DO NOT EDIT. package schema diff --git a/internal/schema/lexer.go b/internal/schema/lexer.go index 83cef2248..0bdb649e6 100644 --- a/internal/schema/lexer.go +++ b/internal/schema/lexer.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // The lexer is inspired by Rob Pike's talk at // https://www.youtube.com/watch?v=HxaD_trXwRE. diff --git a/internal/schema/lexer_test.go b/internal/schema/lexer_test.go index 0ac5e7a43..f095b2a4a 100644 --- a/internal/schema/lexer_test.go +++ b/internal/schema/lexer_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package schema import ( diff --git a/internal/schema/limits.go b/internal/schema/limits.go index a4e141e3b..d849c6d7f 100644 --- a/internal/schema/limits.go +++ b/internal/schema/limits.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package schema const ( diff --git a/internal/schema/parse_errors.go b/internal/schema/parse_errors.go index f73815069..2e450e58f 100644 --- a/internal/schema/parse_errors.go +++ b/internal/schema/parse_errors.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package schema import ( diff --git a/internal/schema/parser.go b/internal/schema/parser.go index ccf666a1c..0682c188e 100644 --- a/internal/schema/parser.go +++ b/internal/schema/parser.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package schema import ( diff --git a/internal/schema/parser_fuzzer.go b/internal/schema/parser_fuzzer.go index ba421ea61..f5141d4a6 100644 --- a/internal/schema/parser_fuzzer.go +++ b/internal/schema/parser_fuzzer.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package schema func Fuzz(data []byte) int { diff --git a/internal/schema/parser_test.go b/internal/schema/parser_test.go index 3b232929c..94a2e8f2e 100644 --- a/internal/schema/parser_test.go +++ b/internal/schema/parser_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package schema import ( diff --git a/internal/schema/typechecks.go b/internal/schema/typechecks.go index 5be585287..766bc53fe 100644 --- a/internal/schema/typechecks.go +++ b/internal/schema/typechecks.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package schema import "github.com/ory/keto/internal/namespace/ast" diff --git a/internal/swagger_types.go b/internal/swagger_types.go index d847a5a3a..16c884e22 100644 --- a/internal/swagger_types.go +++ b/internal/swagger_types.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package internal // Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. diff --git a/internal/x/dbx/dsn_cockroach.go b/internal/x/dbx/dsn_cockroach.go index a99ff5c2b..fa9cee9e5 100644 --- a/internal/x/dbx/dsn_cockroach.go +++ b/internal/x/dbx/dsn_cockroach.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + //go:build !nocrdb && !nocockroach package dbx diff --git a/internal/x/dbx/dsn_mysql.go b/internal/x/dbx/dsn_mysql.go index 1214ab2ec..91471e340 100644 --- a/internal/x/dbx/dsn_mysql.go +++ b/internal/x/dbx/dsn_mysql.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + //go:build !nomysql package dbx diff --git a/internal/x/dbx/dsn_nocockroach.go b/internal/x/dbx/dsn_nocockroach.go index d1ae3f7e0..beb01c15e 100644 --- a/internal/x/dbx/dsn_nocockroach.go +++ b/internal/x/dbx/dsn_nocockroach.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + //go:build nocrdb || nocockroach package dbx diff --git a/internal/x/dbx/dsn_nomysql.go b/internal/x/dbx/dsn_nomysql.go index b68e5e590..680f749f5 100644 --- a/internal/x/dbx/dsn_nomysql.go +++ b/internal/x/dbx/dsn_nomysql.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + //go:build nomysql package dbx diff --git a/internal/x/dbx/dsn_nopostgres.go b/internal/x/dbx/dsn_nopostgres.go index e6e38a682..83b1c8375 100644 --- a/internal/x/dbx/dsn_nopostgres.go +++ b/internal/x/dbx/dsn_nopostgres.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + //go:build nopostgres package dbx diff --git a/internal/x/dbx/dsn_nosqlite.go b/internal/x/dbx/dsn_nosqlite.go index 06a0e2b95..6b0b891b9 100644 --- a/internal/x/dbx/dsn_nosqlite.go +++ b/internal/x/dbx/dsn_nosqlite.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + //go:build !sqlite package dbx diff --git a/internal/x/dbx/dsn_postgres.go b/internal/x/dbx/dsn_postgres.go index 14a9dc66c..a7e48e54a 100644 --- a/internal/x/dbx/dsn_postgres.go +++ b/internal/x/dbx/dsn_postgres.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + //go:build !nopostgres package dbx diff --git a/internal/x/dbx/dsn_sqlite.go b/internal/x/dbx/dsn_sqlite.go index b5ab137b3..3a157b4a3 100644 --- a/internal/x/dbx/dsn_sqlite.go +++ b/internal/x/dbx/dsn_sqlite.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + //go:build sqlite package dbx diff --git a/internal/x/dbx/dsn_testutils.go b/internal/x/dbx/dsn_testutils.go index ecdb32ae2..e31b82b0c 100644 --- a/internal/x/dbx/dsn_testutils.go +++ b/internal/x/dbx/dsn_testutils.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package dbx import ( diff --git a/internal/x/dbx/dsn_testutils_test.go b/internal/x/dbx/dsn_testutils_test.go index ce4271554..0ce51f5d7 100644 --- a/internal/x/dbx/dsn_testutils_test.go +++ b/internal/x/dbx/dsn_testutils_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package dbx import ( diff --git a/internal/x/graph/graph_utils.go b/internal/x/graph/graph_utils.go index 88447983a..d62773b7d 100644 --- a/internal/x/graph/graph_utils.go +++ b/internal/x/graph/graph_utils.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package graph import ( diff --git a/internal/x/graph/graph_utils_test.go b/internal/x/graph/graph_utils_test.go index 2b732c98c..749bb06d5 100644 --- a/internal/x/graph/graph_utils_test.go +++ b/internal/x/graph/graph_utils_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package graph import ( diff --git a/internal/x/helpers.go b/internal/x/helpers.go index d9dc74939..ed9f689ce 100644 --- a/internal/x/helpers.go +++ b/internal/x/helpers.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package x import ( diff --git a/internal/x/max_depth.go b/internal/x/max_depth.go index 2b12df8d5..0b8266056 100644 --- a/internal/x/max_depth.go +++ b/internal/x/max_depth.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package x import ( diff --git a/internal/x/pagination.go b/internal/x/pagination.go index 2850dc27c..b55b45ea7 100644 --- a/internal/x/pagination.go +++ b/internal/x/pagination.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package x type ( diff --git a/internal/x/registry.go b/internal/x/registry.go index ec13791dd..b9d6e6014 100644 --- a/internal/x/registry.go +++ b/internal/x/registry.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package x import ( diff --git a/internal/x/router.go b/internal/x/router.go index 0d318560a..1506586b6 100644 --- a/internal/x/router.go +++ b/internal/x/router.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package x import ( diff --git a/ketoapi/cmd_output.go b/ketoapi/cmd_output.go index 3e75d7d26..30c53441c 100644 --- a/ketoapi/cmd_output.go +++ b/ketoapi/cmd_output.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package ketoapi func (r *RelationTuple) Header() []string { diff --git a/ketoapi/enc_proto.go b/ketoapi/enc_proto.go index 29121b33e..97f7f9c38 100644 --- a/ketoapi/enc_proto.go +++ b/ketoapi/enc_proto.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package ketoapi import ( diff --git a/ketoapi/enc_string.go b/ketoapi/enc_string.go index 9b29292be..4a6db9fda 100644 --- a/ketoapi/enc_string.go +++ b/ketoapi/enc_string.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package ketoapi import ( diff --git a/ketoapi/enc_test.go b/ketoapi/enc_test.go index 35f16d761..6c73b0dbb 100644 --- a/ketoapi/enc_test.go +++ b/ketoapi/enc_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package ketoapi import ( diff --git a/ketoapi/enc_url_query.go b/ketoapi/enc_url_query.go index 7c866a8c2..cbdaa31ff 100644 --- a/ketoapi/enc_url_query.go +++ b/ketoapi/enc_url_query.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package ketoapi import ( diff --git a/ketoapi/public_api_definitions.go b/ketoapi/public_api_definitions.go index a302effbb..902f4f5f8 100644 --- a/ketoapi/public_api_definitions.go +++ b/ketoapi/public_api_definitions.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package ketoapi import ( diff --git a/ketoctx/contextualizer.go b/ketoctx/contextualizer.go index bfe102bea..77860cd41 100644 --- a/ketoctx/contextualizer.go +++ b/ketoctx/contextualizer.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package ketoctx import ( diff --git a/ketoctx/contextualizer_test.go b/ketoctx/contextualizer_test.go index 55d075400..69c9a0aad 100644 --- a/ketoctx/contextualizer_test.go +++ b/ketoctx/contextualizer_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package ketoctx import ( diff --git a/ketoctx/options.go b/ketoctx/options.go index 4fc1b67d3..630623bee 100644 --- a/ketoctx/options.go +++ b/ketoctx/options.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package ketoctx import ( diff --git a/ketoctx/options_test.go b/ketoctx/options_test.go index 06a9d94a5..18a067a8f 100644 --- a/ketoctx/options_test.go +++ b/ketoctx/options_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package ketoctx import ( diff --git a/main.go b/main.go index 01cb89c61..cb0d58758 100644 --- a/main.go +++ b/main.go @@ -1,16 +1,5 @@ -// Copyright © 2017 Aeneas Rekkas -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/spec/files.go b/spec/files.go index 27b9cb385..d1bbbdad6 100644 --- a/spec/files.go +++ b/spec/files.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package spec import _ "embed"