Skip to content

Commit

Permalink
Add copyright license to core library files
Browse files Browse the repository at this point in the history
Added script to add license to files. This script does not add the
license to files that already have the license added.

GODRIVER-353

Change-Id: Id2000cd36804c397864f85ca211fdb8ed600cb7c
  • Loading branch information
skriptble committed Apr 11, 2018
1 parent 5f9341c commit 9bee77c
Show file tree
Hide file tree
Showing 120 changed files with 737 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/addr/addr.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package addr

import (
Expand Down
6 changes: 6 additions & 0 deletions core/addr/addr_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package addr

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/aggregate.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/buildinfo.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/command.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/command_test.go
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command
6 changes: 6 additions & 0 deletions core/command/count.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/create_indexes.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/cursor.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/delete.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/distinct.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/doc.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

// Package command contains abstractions for operations that can be performed against a MongoDB
// deployment. The types in this package are meant to provide a general set of commands that a
// user can run against a MongoDB database without knowing the version of the database.
Expand Down
6 changes: 6 additions & 0 deletions core/command/drop_indexes.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/errors.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/find.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/find_and_modify.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/find_one_delete.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/find_one_replace.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/find_one_update.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/get_more.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/getlasterror.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/handshake.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/insert.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/ismaster.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/kill_cursors.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/list_collections.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/list_databases.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/list_indexes.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/namespace.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/opreply.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/command/update.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package command

import (
Expand Down
6 changes: 6 additions & 0 deletions core/connection/addr.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package connection

const defaultPort = "27017"
Expand Down
6 changes: 6 additions & 0 deletions core/connection/connection.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

// Package connection contains the types for building and pooling connections that can speak the
// MongoDB Wire Protocol. Since this low level library is meant to be used in the context of either
// a driver or a server there are some extra identifiers on a connection so one can keep track of
Expand Down
6 changes: 6 additions & 0 deletions core/connection/connection_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package connection

import (
Expand Down
6 changes: 6 additions & 0 deletions core/connection/error.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package connection

import "fmt"
Expand Down
6 changes: 6 additions & 0 deletions core/connection/listener.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package connection

// Listener is a generic mongodb network protocol listener. It can return connections
Expand Down
6 changes: 6 additions & 0 deletions core/connection/options.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package connection

import (
Expand Down
6 changes: 6 additions & 0 deletions core/connection/pool.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package connection

import (
Expand Down
6 changes: 6 additions & 0 deletions core/connection/proxy.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package connection

import "github.com/mongodb/mongo-go-driver/core/wiremessage"
Expand Down
6 changes: 6 additions & 0 deletions core/connection/server.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package connection

import "context"
Expand Down
Loading

0 comments on commit 9bee77c

Please sign in to comment.