From 6f53dda39e4cffe49286a31fae50d9f9098c40b5 Mon Sep 17 00:00:00 2001 From: Orpheus Lummis Date: Mon, 14 Feb 2022 16:29:34 -0500 Subject: [PATCH] docs: Update old or missing license headers (#205) --- cli/defradb/cmd/addreplicator.go | 3 ++- cli/defradb/cmd/rpc.go | 3 ++- cli/defradb/cmd/serverdump.go | 3 ++- core/log.go | 10 ++++++++++ core/net/broadcaster.go | 10 ++++++++++ core/net/protocol.go | 10 ++++++++++ db/tests/mutation/simple/complex/with_txn_test.go | 3 ++- net/api/client/client.go | 12 ++++++++++++ net/api/service.go | 12 ++++++++++++ net/client.go | 12 ++++++++++++ net/dag.go | 12 ++++++++++++ net/dialer.go | 12 ++++++++++++ net/pb/custom.go | 12 ++++++++++++ net/peer.go | 12 ++++++++++++ net/process.go | 12 ++++++++++++ net/server.go | 12 ++++++++++++ net/utils/util.go | 12 ++++++++++++ node/node.go | 10 ++++++++++ node/options.go | 10 ++++++++++ utils/cid.go | 10 ++++++++++ 20 files changed, 188 insertions(+), 4 deletions(-) diff --git a/cli/defradb/cmd/addreplicator.go b/cli/defradb/cmd/addreplicator.go index 192afc917e..01ad96636f 100644 --- a/cli/defradb/cmd/addreplicator.go +++ b/cli/defradb/cmd/addreplicator.go @@ -1,4 +1,4 @@ -// Copyright 2020 Source Inc. +// Copyright 2022 Democratized Data Foundation // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. @@ -7,6 +7,7 @@ // the Business Source License, use of this software will be governed // by the Apache License, Version 2.0, included in the file // licenses/APL.txt. + package cmd import ( diff --git a/cli/defradb/cmd/rpc.go b/cli/defradb/cmd/rpc.go index 5f22dcb9d1..ca5cf50556 100644 --- a/cli/defradb/cmd/rpc.go +++ b/cli/defradb/cmd/rpc.go @@ -1,4 +1,4 @@ -// Copyright 2020 Source Inc. +// Copyright 2022 Democratized Data Foundation // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. @@ -7,6 +7,7 @@ // the Business Source License, use of this software will be governed // by the Apache License, Version 2.0, included in the file // licenses/APL.txt. + package cmd import ( diff --git a/cli/defradb/cmd/serverdump.go b/cli/defradb/cmd/serverdump.go index 9bb4248c99..25666718ca 100644 --- a/cli/defradb/cmd/serverdump.go +++ b/cli/defradb/cmd/serverdump.go @@ -1,4 +1,4 @@ -// Copyright 2020 Source Inc. +// Copyright 2022 Democratized Data Foundation // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. @@ -7,6 +7,7 @@ // the Business Source License, use of this software will be governed // by the Apache License, Version 2.0, included in the file // licenses/APL.txt. + package cmd import ( diff --git a/core/log.go b/core/log.go index bf2962d6fc..8157184231 100644 --- a/core/log.go +++ b/core/log.go @@ -1,3 +1,13 @@ +// Copyright 2022 Democratized Data Foundation +// +// Use of this software is governed by the Business Source License +// included in the file licenses/BSL.txt. +// +// As of the Change Date specified in that file, in accordance with +// the Business Source License, use of this software will be governed +// by the Apache License, Version 2.0, included in the file +// licenses/APL.txt. + package core import ( diff --git a/core/net/broadcaster.go b/core/net/broadcaster.go index fd31fd6413..440513a5cf 100644 --- a/core/net/broadcaster.go +++ b/core/net/broadcaster.go @@ -1,3 +1,13 @@ +// Copyright 2022 Democratized Data Foundation +// +// Use of this software is governed by the Business Source License +// included in the file licenses/BSL.txt. +// +// As of the Change Date specified in that file, in accordance with +// the Business Source License, use of this software will be governed +// by the Apache License, Version 2.0, included in the file +// licenses/APL.txt. + package net import "time" diff --git a/core/net/protocol.go b/core/net/protocol.go index 9a226eb4ca..2c6f5ba3f3 100644 --- a/core/net/protocol.go +++ b/core/net/protocol.go @@ -1,3 +1,13 @@ +// Copyright 2022 Democratized Data Foundation +// +// Use of this software is governed by the Business Source License +// included in the file licenses/BSL.txt. +// +// As of the Change Date specified in that file, in accordance with +// the Business Source License, use of this software will be governed +// by the Apache License, Version 2.0, included in the file +// licenses/APL.txt. + package net import ( diff --git a/db/tests/mutation/simple/complex/with_txn_test.go b/db/tests/mutation/simple/complex/with_txn_test.go index 583d9e4b72..e0ee8de748 100644 --- a/db/tests/mutation/simple/complex/with_txn_test.go +++ b/db/tests/mutation/simple/complex/with_txn_test.go @@ -1,4 +1,4 @@ -// Copyright 2020 Source Inc. +// Copyright 2022 Democratized Data Foundation // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. @@ -7,6 +7,7 @@ // the Business Source License, use of this software will be governed // by the Apache License, Version 2.0, included in the file // licenses/APL.txt. + package complex import ( diff --git a/net/api/client/client.go b/net/api/client/client.go index 0235aa3bb8..4fdfd36f65 100644 --- a/net/api/client/client.go +++ b/net/api/client/client.go @@ -1,3 +1,15 @@ +// 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. + package client import ( diff --git a/net/api/service.go b/net/api/service.go index 841528177d..aeb528302c 100644 --- a/net/api/service.go +++ b/net/api/service.go @@ -1,3 +1,15 @@ +// 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. + package api import ( diff --git a/net/client.go b/net/client.go index 33a5e945b8..e92e9db6ab 100644 --- a/net/client.go +++ b/net/client.go @@ -1,3 +1,15 @@ +// 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. + package net import ( diff --git a/net/dag.go b/net/dag.go index cfc8a0dfb7..5539fef437 100644 --- a/net/dag.go +++ b/net/dag.go @@ -1,3 +1,15 @@ +// 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. + package net import ( diff --git a/net/dialer.go b/net/dialer.go index 96635f7858..0febc97ced 100644 --- a/net/dialer.go +++ b/net/dialer.go @@ -1,3 +1,15 @@ +// 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. + package net import ( diff --git a/net/pb/custom.go b/net/pb/custom.go index 7fc0b01fe0..dbb4f483d0 100644 --- a/net/pb/custom.go +++ b/net/pb/custom.go @@ -1,3 +1,15 @@ +// 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. + package net_pb import ( diff --git a/net/peer.go b/net/peer.go index 1f73ae333f..641437d38e 100644 --- a/net/peer.go +++ b/net/peer.go @@ -1,3 +1,15 @@ +// 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. + package net import ( diff --git a/net/process.go b/net/process.go index 5bc94426c9..62013918ff 100644 --- a/net/process.go +++ b/net/process.go @@ -1,3 +1,15 @@ +// 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. + package net import ( diff --git a/net/server.go b/net/server.go index 5b3ad4a940..889400dbbf 100644 --- a/net/server.go +++ b/net/server.go @@ -1,3 +1,15 @@ +// 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. + package net import ( diff --git a/net/utils/util.go b/net/utils/util.go index 95e84aadcd..987180cb1b 100644 --- a/net/utils/util.go +++ b/net/utils/util.go @@ -1,3 +1,15 @@ +// 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. + package utils import ( diff --git a/node/node.go b/node/node.go index 8c0c273ba4..a190a0ff80 100644 --- a/node/node.go +++ b/node/node.go @@ -1,3 +1,13 @@ +// Copyright 2022 Democratized Data Foundation +// +// Use of this software is governed by the Business Source License +// included in the file licenses/BSL.txt. +// +// As of the Change Date specified in that file, in accordance with +// the Business Source License, use of this software will be governed +// by the Apache License, Version 2.0, included in the file +// licenses/APL.txt. + package node import ( diff --git a/node/options.go b/node/options.go index feed6172bf..6464ebdf5b 100644 --- a/node/options.go +++ b/node/options.go @@ -1,3 +1,13 @@ +// Copyright 2022 Democratized Data Foundation +// +// Use of this software is governed by the Business Source License +// included in the file licenses/BSL.txt. +// +// As of the Change Date specified in that file, in accordance with +// the Business Source License, use of this software will be governed +// by the Apache License, Version 2.0, included in the file +// licenses/APL.txt. + package node import ( diff --git a/utils/cid.go b/utils/cid.go index 36bb20fa84..743b0c081d 100644 --- a/utils/cid.go +++ b/utils/cid.go @@ -1,3 +1,13 @@ +// Copyright 2022 Democratized Data Foundation +// +// Use of this software is governed by the Business Source License +// included in the file licenses/BSL.txt. +// +// As of the Change Date specified in that file, in accordance with +// the Business Source License, use of this software will be governed +// by the Apache License, Version 2.0, included in the file +// licenses/APL.txt. + package utils import (