From 580fe9abb749bde4ed7aa4e354b5fdb217cc050a Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Mon, 19 Feb 2018 14:24:10 -0800 Subject: [PATCH] add apache license header to files --- cmd/drone-agent/agent.go | 14 ++++++++++++++ cmd/drone-agent/health.go | 14 ++++++++++++++ cmd/drone-agent/health_test.go | 14 ++++++++++++++ cmd/drone-agent/main.go | 14 ++++++++++++++ cmd/drone-server/main.go | 14 ++++++++++++++ cmd/drone-server/server.go | 14 ++++++++++++++ cmd/drone-server/setup.go | 14 ++++++++++++++ model/build.go | 14 ++++++++++++++ model/build_test.go | 14 ++++++++++++++ model/cc.go | 14 ++++++++++++++ model/cc_test.go | 14 ++++++++++++++ model/config.go | 14 ++++++++++++++ model/const.go | 14 ++++++++++++++ model/environ.go | 14 ++++++++++++++ model/event.go | 14 ++++++++++++++ model/feed.go | 14 ++++++++++++++ model/file.go | 14 ++++++++++++++ model/limit.go | 14 ++++++++++++++ model/netrc.go | 14 ++++++++++++++ model/perm.go | 14 ++++++++++++++ model/proc.go | 14 ++++++++++++++ model/queue.go | 14 ++++++++++++++ model/registry.go | 14 ++++++++++++++ model/repo.go | 14 ++++++++++++++ model/resource_limit.go | 14 ++++++++++++++ model/secret.go | 14 ++++++++++++++ model/secret_test.go | 14 ++++++++++++++ model/sender.go | 14 ++++++++++++++ model/settings.go | 14 ++++++++++++++ model/team.go | 14 ++++++++++++++ model/user.go | 14 ++++++++++++++ model/user_test.go | 14 ++++++++++++++ remote/bitbucket/bitbucket.go | 14 ++++++++++++++ remote/bitbucket/bitbucket_test.go | 14 ++++++++++++++ remote/bitbucket/convert.go | 14 ++++++++++++++ remote/bitbucket/convert_test.go | 14 ++++++++++++++ remote/bitbucket/fixtures/handler.go | 14 ++++++++++++++ remote/bitbucket/fixtures/hooks.go | 14 ++++++++++++++ remote/bitbucket/internal/client.go | 14 ++++++++++++++ remote/bitbucket/internal/types.go | 14 ++++++++++++++ remote/bitbucket/parse.go | 14 ++++++++++++++ remote/bitbucket/parse_test.go | 14 ++++++++++++++ remote/bitbucketserver/bitbucketserver.go | 14 ++++++++++++++ remote/bitbucketserver/convert.go | 14 ++++++++++++++ remote/bitbucketserver/convert_test.go | 14 ++++++++++++++ remote/bitbucketserver/internal/client.go | 14 ++++++++++++++ remote/bitbucketserver/internal/types.go | 14 ++++++++++++++ remote/bitbucketserver/parse.go | 14 ++++++++++++++ remote/coding/coding.go | 14 ++++++++++++++ remote/coding/coding_test.go | 14 ++++++++++++++ remote/coding/fixtures/handler.go | 14 ++++++++++++++ remote/coding/fixtures/hooks.go | 14 ++++++++++++++ remote/coding/hook.go | 14 ++++++++++++++ remote/coding/hook_test.go | 14 ++++++++++++++ remote/coding/internal/coding.go | 14 ++++++++++++++ remote/coding/internal/error.go | 14 ++++++++++++++ remote/coding/internal/file.go | 14 ++++++++++++++ remote/coding/internal/project.go | 14 ++++++++++++++ remote/coding/internal/user.go | 14 ++++++++++++++ remote/coding/internal/webhook.go | 14 ++++++++++++++ remote/coding/util.go | 14 ++++++++++++++ remote/coding/util_test.go | 14 ++++++++++++++ remote/context.go | 14 ++++++++++++++ remote/errors.go | 14 ++++++++++++++ remote/gerrit/gerrit.go | 14 ++++++++++++++ remote/gitea/fixtures/handler.go | 14 ++++++++++++++ remote/gitea/fixtures/hooks.go | 14 ++++++++++++++ remote/gitea/gitea.go | 14 ++++++++++++++ remote/gitea/gitea_test.go | 14 ++++++++++++++ remote/gitea/helper.go | 14 ++++++++++++++ remote/gitea/helper_test.go | 14 ++++++++++++++ remote/gitea/parse.go | 14 ++++++++++++++ remote/gitea/parse_test.go | 14 ++++++++++++++ remote/gitea/types.go | 14 ++++++++++++++ remote/github/convert.go | 14 ++++++++++++++ remote/github/convert_test.go | 14 ++++++++++++++ remote/github/fixtures/handler.go | 14 ++++++++++++++ remote/github/fixtures/hooks.go | 14 ++++++++++++++ remote/github/github.go | 14 ++++++++++++++ remote/github/github_test.go | 14 ++++++++++++++ remote/github/parse.go | 14 ++++++++++++++ remote/github/parse_test.go | 14 ++++++++++++++ remote/github/types.go | 14 ++++++++++++++ remote/gitlab/client/drone.go | 14 ++++++++++++++ remote/gitlab/client/gitlab.go | 14 ++++++++++++++ remote/gitlab/client/groups.go | 14 ++++++++++++++ remote/gitlab/client/hook.go | 14 ++++++++++++++ remote/gitlab/client/project.go | 14 ++++++++++++++ remote/gitlab/client/types.go | 14 ++++++++++++++ remote/gitlab/client/user.go | 14 ++++++++++++++ remote/gitlab/client/util.go | 14 ++++++++++++++ remote/gitlab/gitlab.go | 14 ++++++++++++++ remote/gitlab/gitlab_test.go | 14 ++++++++++++++ remote/gitlab/helper.go | 14 ++++++++++++++ remote/gitlab/testdata/hooks.go | 14 ++++++++++++++ remote/gitlab/testdata/oauth.go | 14 ++++++++++++++ remote/gitlab/testdata/projects.go | 14 ++++++++++++++ remote/gitlab/testdata/testdata.go | 14 ++++++++++++++ remote/gitlab/testdata/users.go | 14 ++++++++++++++ remote/gitlab3/client/drone.go | 14 ++++++++++++++ remote/gitlab3/client/gitlab.go | 14 ++++++++++++++ remote/gitlab3/client/groups.go | 14 ++++++++++++++ remote/gitlab3/client/hook.go | 14 ++++++++++++++ remote/gitlab3/client/project.go | 14 ++++++++++++++ remote/gitlab3/client/types.go | 14 ++++++++++++++ remote/gitlab3/client/user.go | 14 ++++++++++++++ remote/gitlab3/client/util.go | 14 ++++++++++++++ remote/gitlab3/gitlab.go | 14 ++++++++++++++ remote/gitlab3/gitlab_test.go | 14 ++++++++++++++ remote/gitlab3/helper.go | 14 ++++++++++++++ remote/gitlab3/testdata/hooks.go | 14 ++++++++++++++ remote/gitlab3/testdata/oauth.go | 14 ++++++++++++++ remote/gitlab3/testdata/projects.go | 14 ++++++++++++++ remote/gitlab3/testdata/testdata.go | 14 ++++++++++++++ remote/gitlab3/testdata/users.go | 14 ++++++++++++++ remote/gogs/fixtures/handler.go | 14 ++++++++++++++ remote/gogs/fixtures/hooks.go | 14 ++++++++++++++ remote/gogs/gogs.go | 14 ++++++++++++++ remote/gogs/gogs_test.go | 14 ++++++++++++++ remote/gogs/helper.go | 14 ++++++++++++++ remote/gogs/helper_test.go | 14 ++++++++++++++ remote/gogs/parse.go | 14 ++++++++++++++ remote/gogs/parse_test.go | 14 ++++++++++++++ remote/gogs/types.go | 14 ++++++++++++++ remote/mock/remote.go | 14 ++++++++++++++ remote/remote.go | 14 ++++++++++++++ router/middleware/config.go | 14 ++++++++++++++ router/middleware/header/header.go | 14 ++++++++++++++ router/middleware/remote.go | 14 ++++++++++++++ router/middleware/session/agent.go | 14 ++++++++++++++ router/middleware/session/repo.go | 14 ++++++++++++++ router/middleware/session/repo_test.go | 14 ++++++++++++++ router/middleware/session/user.go | 14 ++++++++++++++ router/middleware/store.go | 14 ++++++++++++++ router/middleware/token/token.go | 14 ++++++++++++++ router/middleware/version.go | 14 ++++++++++++++ router/router.go | 14 ++++++++++++++ server/badge.go | 14 ++++++++++++++ server/build.go | 14 ++++++++++++++ server/debug/debug.go | 14 ++++++++++++++ server/file.go | 14 ++++++++++++++ server/hook.go | 14 ++++++++++++++ server/hook_test.go | 14 ++++++++++++++ server/login.go | 14 ++++++++++++++ server/metrics/prometheus.go | 14 ++++++++++++++ server/registry.go | 14 ++++++++++++++ server/repo.go | 14 ++++++++++++++ server/rpc.go | 14 ++++++++++++++ server/secret.go | 14 ++++++++++++++ server/stream.go | 14 ++++++++++++++ server/swagger/doc.go | 14 ++++++++++++++ server/swagger/swagger.go | 14 ++++++++++++++ server/sync.go | 14 ++++++++++++++ server/user.go | 14 ++++++++++++++ server/users.go | 14 ++++++++++++++ server/web/opts.go | 14 ++++++++++++++ server/web/opts_test.go | 14 ++++++++++++++ server/web/template.go | 14 ++++++++++++++ server/web/template_test.go | 14 ++++++++++++++ server/web/web.go | 14 ++++++++++++++ server/z.go | 14 ++++++++++++++ shared/httputil/httputil.go | 14 ++++++++++++++ shared/token/token.go | 14 ++++++++++++++ store/context.go | 14 ++++++++++++++ store/datastore/builds.go | 14 ++++++++++++++ store/datastore/builds_test.go | 14 ++++++++++++++ store/datastore/config.go | 14 ++++++++++++++ store/datastore/config_test.go | 14 ++++++++++++++ store/datastore/ddl/migrate.go | 14 ++++++++++++++ store/datastore/ddl/mysql/ddl.go | 14 ++++++++++++++ store/datastore/ddl/mysql/ddl_gen.go | 14 ++++++++++++++ store/datastore/ddl/postgres/ddl.go | 14 ++++++++++++++ store/datastore/ddl/postgres/ddl_gen.go | 14 ++++++++++++++ store/datastore/ddl/sqlite/ddl.go | 14 ++++++++++++++ store/datastore/ddl/sqlite/ddl_gen.go | 14 ++++++++++++++ store/datastore/files.go | 14 ++++++++++++++ store/datastore/files_test.go | 14 ++++++++++++++ store/datastore/init.go | 14 ++++++++++++++ store/datastore/init_cgo.go | 14 ++++++++++++++ store/datastore/logs.go | 14 ++++++++++++++ store/datastore/logs_test.go | 14 ++++++++++++++ store/datastore/perms.go | 14 ++++++++++++++ store/datastore/perms_test.go | 14 ++++++++++++++ store/datastore/procs.go | 14 ++++++++++++++ store/datastore/procs_test.go | 14 ++++++++++++++ store/datastore/registry.go | 14 ++++++++++++++ store/datastore/registry_test.go | 14 ++++++++++++++ store/datastore/repos.go | 14 ++++++++++++++ store/datastore/repos_test.go | 14 ++++++++++++++ store/datastore/secret.go | 14 ++++++++++++++ store/datastore/secret_test.go | 14 ++++++++++++++ store/datastore/sender.go | 14 ++++++++++++++ store/datastore/sender_test.go | 14 ++++++++++++++ store/datastore/sql/lookup.go | 14 ++++++++++++++ store/datastore/sql/mysql/sql.go | 14 ++++++++++++++ store/datastore/sql/mysql/sql_gen.go | 14 ++++++++++++++ store/datastore/sql/postgres/sql.go | 14 ++++++++++++++ store/datastore/sql/postgres/sql_gen.go | 14 ++++++++++++++ store/datastore/sql/sqlite/sql.go | 14 ++++++++++++++ store/datastore/sql/sqlite/sql_gen.go | 14 ++++++++++++++ store/datastore/store.go | 14 ++++++++++++++ store/datastore/task.go | 14 ++++++++++++++ store/datastore/task_test.go | 14 ++++++++++++++ store/datastore/users.go | 14 ++++++++++++++ store/datastore/users_test.go | 14 ++++++++++++++ store/datastore/utils.go | 14 ++++++++++++++ store/store.go | 14 ++++++++++++++ version/version.go | 14 ++++++++++++++ 208 files changed, 2912 insertions(+) diff --git a/cmd/drone-agent/agent.go b/cmd/drone-agent/agent.go index 94f9cb13..254c8ffe 100644 --- a/cmd/drone-agent/agent.go +++ b/cmd/drone-agent/agent.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 main import ( diff --git a/cmd/drone-agent/health.go b/cmd/drone-agent/health.go index 99c68fca..6a3f77e6 100644 --- a/cmd/drone-agent/health.go +++ b/cmd/drone-agent/health.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 main import ( diff --git a/cmd/drone-agent/health_test.go b/cmd/drone-agent/health_test.go index 17505c86..e15a8d8c 100644 --- a/cmd/drone-agent/health_test.go +++ b/cmd/drone-agent/health_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 main import ( diff --git a/cmd/drone-agent/main.go b/cmd/drone-agent/main.go index 75aac17d..1f6622b8 100644 --- a/cmd/drone-agent/main.go +++ b/cmd/drone-agent/main.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 main import ( diff --git a/cmd/drone-server/main.go b/cmd/drone-server/main.go index af2137f5..003818e3 100644 --- a/cmd/drone-server/main.go +++ b/cmd/drone-server/main.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 main import ( diff --git a/cmd/drone-server/server.go b/cmd/drone-server/server.go index 7e0de48d..389d019a 100644 --- a/cmd/drone-server/server.go +++ b/cmd/drone-server/server.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 main import ( diff --git a/cmd/drone-server/setup.go b/cmd/drone-server/setup.go index fabc6fac..e1dff3ec 100644 --- a/cmd/drone-server/setup.go +++ b/cmd/drone-server/setup.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 main import ( diff --git a/model/build.go b/model/build.go index e55d9263..dbedcfb7 100644 --- a/model/build.go +++ b/model/build.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model // swagger:model build diff --git a/model/build_test.go b/model/build_test.go index 1ac176cb..387c18a4 100644 --- a/model/build_test.go +++ b/model/build_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model import ( diff --git a/model/cc.go b/model/cc.go index 590beb75..ad303ae3 100644 --- a/model/cc.go +++ b/model/cc.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model import ( diff --git a/model/cc_test.go b/model/cc_test.go index 4d167274..940e9e5a 100644 --- a/model/cc_test.go +++ b/model/cc_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model import ( diff --git a/model/config.go b/model/config.go index 57294759..71e86d6f 100644 --- a/model/config.go +++ b/model/config.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model // ConfigStore persists pipeline configuration to storage. diff --git a/model/const.go b/model/const.go index 2cfd2e99..e202d2e8 100644 --- a/model/const.go +++ b/model/const.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model const ( diff --git a/model/environ.go b/model/environ.go index 3e3e00b5..1875e524 100644 --- a/model/environ.go +++ b/model/environ.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model import ( diff --git a/model/event.go b/model/event.go index e04803af..60469629 100644 --- a/model/event.go +++ b/model/event.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model // EventType defines the possible types of build events. diff --git a/model/feed.go b/model/feed.go index 8e766e21..72764ae5 100644 --- a/model/feed.go +++ b/model/feed.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model // Feed represents an item in the user's feed or timeline. diff --git a/model/file.go b/model/file.go index fd414017..9a86bbb3 100644 --- a/model/file.go +++ b/model/file.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model import "io" diff --git a/model/limit.go b/model/limit.go index 352b91ca..eb002c8a 100644 --- a/model/limit.go +++ b/model/limit.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model // Limiter defines an interface for limiting repository creation. diff --git a/model/netrc.go b/model/netrc.go index 1bb8e67a..6ed59116 100644 --- a/model/netrc.go +++ b/model/netrc.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model type Netrc struct { diff --git a/model/perm.go b/model/perm.go index f0aa5e18..b6ffd34b 100644 --- a/model/perm.go +++ b/model/perm.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model // PermStore persists repository permissions information to storage. diff --git a/model/proc.go b/model/proc.go index d73001bd..ac30076d 100644 --- a/model/proc.go +++ b/model/proc.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model // ProcStore persists process information to storage. diff --git a/model/queue.go b/model/queue.go index 660d3b7e..a1552162 100644 --- a/model/queue.go +++ b/model/queue.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model import ( diff --git a/model/registry.go b/model/registry.go index 5f074800..d77a1737 100644 --- a/model/registry.go +++ b/model/registry.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model import "errors" diff --git a/model/repo.go b/model/repo.go index 4b22cf53..87b8d250 100644 --- a/model/repo.go +++ b/model/repo.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model import ( diff --git a/model/resource_limit.go b/model/resource_limit.go index af2b68c7..104910e5 100644 --- a/model/resource_limit.go +++ b/model/resource_limit.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model // ResourceLimit is the resource limit to set on pipeline steps diff --git a/model/secret.go b/model/secret.go index 1cfd8a10..95237fc0 100644 --- a/model/secret.go +++ b/model/secret.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model import ( diff --git a/model/secret_test.go b/model/secret_test.go index 02c7cb24..fc5a1407 100644 --- a/model/secret_test.go +++ b/model/secret_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model import ( diff --git a/model/sender.go b/model/sender.go index 7655067c..755409c4 100644 --- a/model/sender.go +++ b/model/sender.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model type SenderService interface { diff --git a/model/settings.go b/model/settings.go index b3722655..4017cd4e 100644 --- a/model/settings.go +++ b/model/settings.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model // Settings defines system configuration parameters. diff --git a/model/team.go b/model/team.go index c91d5866..29abeb88 100644 --- a/model/team.go +++ b/model/team.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model // Team represents a team or organization in the remote version control system. diff --git a/model/user.go b/model/user.go index d961e9f7..4faa9e9a 100644 --- a/model/user.go +++ b/model/user.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model import ( diff --git a/model/user_test.go b/model/user_test.go index 27b568f5..ee96080b 100644 --- a/model/user_test.go +++ b/model/user_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 model import "testing" diff --git a/remote/bitbucket/bitbucket.go b/remote/bitbucket/bitbucket.go index 3632fa26..f7f5ef89 100644 --- a/remote/bitbucket/bitbucket.go +++ b/remote/bitbucket/bitbucket.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 bitbucket import ( diff --git a/remote/bitbucket/bitbucket_test.go b/remote/bitbucket/bitbucket_test.go index f00b1987..d417798c 100644 --- a/remote/bitbucket/bitbucket_test.go +++ b/remote/bitbucket/bitbucket_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 bitbucket import ( diff --git a/remote/bitbucket/convert.go b/remote/bitbucket/convert.go index b5627bc7..c5861b7e 100644 --- a/remote/bitbucket/convert.go +++ b/remote/bitbucket/convert.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 bitbucket import ( diff --git a/remote/bitbucket/convert_test.go b/remote/bitbucket/convert_test.go index 74903f5c..ffa526b8 100644 --- a/remote/bitbucket/convert_test.go +++ b/remote/bitbucket/convert_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 bitbucket import ( diff --git a/remote/bitbucket/fixtures/handler.go b/remote/bitbucket/fixtures/handler.go index 96aff73e..0440f8ad 100644 --- a/remote/bitbucket/fixtures/handler.go +++ b/remote/bitbucket/fixtures/handler.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 fixtures import ( diff --git a/remote/bitbucket/fixtures/hooks.go b/remote/bitbucket/fixtures/hooks.go index 2ee0823a..5afbb9e4 100644 --- a/remote/bitbucket/fixtures/hooks.go +++ b/remote/bitbucket/fixtures/hooks.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 fixtures const HookPush = ` diff --git a/remote/bitbucket/internal/client.go b/remote/bitbucket/internal/client.go index 781b3d07..b27633c5 100644 --- a/remote/bitbucket/internal/client.go +++ b/remote/bitbucket/internal/client.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 internal import ( diff --git a/remote/bitbucket/internal/types.go b/remote/bitbucket/internal/types.go index b92d22e0..b8c0bbf3 100644 --- a/remote/bitbucket/internal/types.go +++ b/remote/bitbucket/internal/types.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 internal import ( diff --git a/remote/bitbucket/parse.go b/remote/bitbucket/parse.go index 7ab385d3..891dc20b 100644 --- a/remote/bitbucket/parse.go +++ b/remote/bitbucket/parse.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 bitbucket import ( diff --git a/remote/bitbucket/parse_test.go b/remote/bitbucket/parse_test.go index eee2bda3..030cf1b1 100644 --- a/remote/bitbucket/parse_test.go +++ b/remote/bitbucket/parse_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 bitbucket import ( diff --git a/remote/bitbucketserver/bitbucketserver.go b/remote/bitbucketserver/bitbucketserver.go index b041b5ce..3f0d83b8 100644 --- a/remote/bitbucketserver/bitbucketserver.go +++ b/remote/bitbucketserver/bitbucketserver.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 bitbucketserver // WARNING! This is an work-in-progress patch and does not yet conform to the coding, diff --git a/remote/bitbucketserver/convert.go b/remote/bitbucketserver/convert.go index cf1f6b71..5d398341 100644 --- a/remote/bitbucketserver/convert.go +++ b/remote/bitbucketserver/convert.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 bitbucketserver import ( diff --git a/remote/bitbucketserver/convert_test.go b/remote/bitbucketserver/convert_test.go index 2860d601..dec64dd2 100644 --- a/remote/bitbucketserver/convert_test.go +++ b/remote/bitbucketserver/convert_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 bitbucketserver import ( diff --git a/remote/bitbucketserver/internal/client.go b/remote/bitbucketserver/internal/client.go index 3b9d84c4..1defa7ba 100644 --- a/remote/bitbucketserver/internal/client.go +++ b/remote/bitbucketserver/internal/client.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 internal import ( diff --git a/remote/bitbucketserver/internal/types.go b/remote/bitbucketserver/internal/types.go index ec74e3cb..3083cace 100644 --- a/remote/bitbucketserver/internal/types.go +++ b/remote/bitbucketserver/internal/types.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 internal type User struct { diff --git a/remote/bitbucketserver/parse.go b/remote/bitbucketserver/parse.go index be535253..a3e4047e 100644 --- a/remote/bitbucketserver/parse.go +++ b/remote/bitbucketserver/parse.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 bitbucketserver import ( diff --git a/remote/coding/coding.go b/remote/coding/coding.go index 4d98ffe9..622be8fe 100644 --- a/remote/coding/coding.go +++ b/remote/coding/coding.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 coding import ( diff --git a/remote/coding/coding_test.go b/remote/coding/coding_test.go index 149ba996..aad4f039 100644 --- a/remote/coding/coding_test.go +++ b/remote/coding/coding_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 coding import ( diff --git a/remote/coding/fixtures/handler.go b/remote/coding/fixtures/handler.go index cf5cbb43..33f054d6 100644 --- a/remote/coding/fixtures/handler.go +++ b/remote/coding/fixtures/handler.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 fixtures import ( diff --git a/remote/coding/fixtures/hooks.go b/remote/coding/fixtures/hooks.go index 8253a6af..c77715bc 100644 --- a/remote/coding/fixtures/hooks.go +++ b/remote/coding/fixtures/hooks.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 fixtures const PushHook = ` diff --git a/remote/coding/hook.go b/remote/coding/hook.go index d073f166..9f304a0d 100644 --- a/remote/coding/hook.go +++ b/remote/coding/hook.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 coding import ( diff --git a/remote/coding/hook_test.go b/remote/coding/hook_test.go index 66483e42..2d3e9073 100644 --- a/remote/coding/hook_test.go +++ b/remote/coding/hook_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 coding import ( diff --git a/remote/coding/internal/coding.go b/remote/coding/internal/coding.go index f6fc98fd..420642a9 100644 --- a/remote/coding/internal/coding.go +++ b/remote/coding/internal/coding.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 internal import ( diff --git a/remote/coding/internal/error.go b/remote/coding/internal/error.go index fefb9bc3..18b76fb9 100644 --- a/remote/coding/internal/error.go +++ b/remote/coding/internal/error.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 internal import ( diff --git a/remote/coding/internal/file.go b/remote/coding/internal/file.go index 358a21ae..616745af 100644 --- a/remote/coding/internal/file.go +++ b/remote/coding/internal/file.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 internal import ( diff --git a/remote/coding/internal/project.go b/remote/coding/internal/project.go index f799c78d..7f6a9503 100644 --- a/remote/coding/internal/project.go +++ b/remote/coding/internal/project.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 internal import ( diff --git a/remote/coding/internal/user.go b/remote/coding/internal/user.go index 0867483a..0a874d1d 100644 --- a/remote/coding/internal/user.go +++ b/remote/coding/internal/user.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 internal import ( diff --git a/remote/coding/internal/webhook.go b/remote/coding/internal/webhook.go index 3bc0e833..b9d6c4bb 100644 --- a/remote/coding/internal/webhook.go +++ b/remote/coding/internal/webhook.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 internal import ( diff --git a/remote/coding/util.go b/remote/coding/util.go index 9a553ea0..8bac9d02 100644 --- a/remote/coding/util.go +++ b/remote/coding/util.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 coding import ( diff --git a/remote/coding/util_test.go b/remote/coding/util_test.go index 704b82e9..d2cf7af0 100644 --- a/remote/coding/util_test.go +++ b/remote/coding/util_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 coding import ( diff --git a/remote/context.go b/remote/context.go index 16ad2b84..05258581 100644 --- a/remote/context.go +++ b/remote/context.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 remote import ( diff --git a/remote/errors.go b/remote/errors.go index 0ad31e76..f32613d7 100644 --- a/remote/errors.go +++ b/remote/errors.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 remote // AuthError represents remote authentication error. diff --git a/remote/gerrit/gerrit.go b/remote/gerrit/gerrit.go index 94a33978..93b3bd21 100644 --- a/remote/gerrit/gerrit.go +++ b/remote/gerrit/gerrit.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gerrit import ( diff --git a/remote/gitea/fixtures/handler.go b/remote/gitea/fixtures/handler.go index ca6d319a..daabf814 100644 --- a/remote/gitea/fixtures/handler.go +++ b/remote/gitea/fixtures/handler.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 fixtures import ( diff --git a/remote/gitea/fixtures/hooks.go b/remote/gitea/fixtures/hooks.go index b33cc9d7..2cd52104 100644 --- a/remote/gitea/fixtures/hooks.go +++ b/remote/gitea/fixtures/hooks.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 fixtures // HookPush is a sample Gitea push hook diff --git a/remote/gitea/gitea.go b/remote/gitea/gitea.go index 26ee8ae0..929b907e 100644 --- a/remote/gitea/gitea.go +++ b/remote/gitea/gitea.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gitea import ( diff --git a/remote/gitea/gitea_test.go b/remote/gitea/gitea_test.go index d0502c88..3af78647 100644 --- a/remote/gitea/gitea_test.go +++ b/remote/gitea/gitea_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gitea import ( diff --git a/remote/gitea/helper.go b/remote/gitea/helper.go index d10f1b8f..da094a54 100644 --- a/remote/gitea/helper.go +++ b/remote/gitea/helper.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gitea import ( diff --git a/remote/gitea/helper_test.go b/remote/gitea/helper_test.go index 6f1d6727..ac51c8e1 100644 --- a/remote/gitea/helper_test.go +++ b/remote/gitea/helper_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gitea import ( diff --git a/remote/gitea/parse.go b/remote/gitea/parse.go index 650fae23..d398447c 100644 --- a/remote/gitea/parse.go +++ b/remote/gitea/parse.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gitea import ( diff --git a/remote/gitea/parse_test.go b/remote/gitea/parse_test.go index 3ac0cb79..2e4f4559 100644 --- a/remote/gitea/parse_test.go +++ b/remote/gitea/parse_test.go @@ -1 +1,15 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gitea diff --git a/remote/gitea/types.go b/remote/gitea/types.go index 63fed544..f3ccb334 100644 --- a/remote/gitea/types.go +++ b/remote/gitea/types.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gitea type pushHook struct { diff --git a/remote/github/convert.go b/remote/github/convert.go index c535f5e0..0d1d774e 100644 --- a/remote/github/convert.go +++ b/remote/github/convert.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 github import ( diff --git a/remote/github/convert_test.go b/remote/github/convert_test.go index b6ce845e..3a92f844 100644 --- a/remote/github/convert_test.go +++ b/remote/github/convert_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 github import ( diff --git a/remote/github/fixtures/handler.go b/remote/github/fixtures/handler.go index ce4aa3d4..29181689 100644 --- a/remote/github/fixtures/handler.go +++ b/remote/github/fixtures/handler.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 fixtures import ( diff --git a/remote/github/fixtures/hooks.go b/remote/github/fixtures/hooks.go index da9baac6..6a07ac3f 100644 --- a/remote/github/fixtures/hooks.go +++ b/remote/github/fixtures/hooks.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 fixtures // HookPush is a sample push hook. diff --git a/remote/github/github.go b/remote/github/github.go index 097c8e75..d77622bd 100644 --- a/remote/github/github.go +++ b/remote/github/github.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 github import ( diff --git a/remote/github/github_test.go b/remote/github/github_test.go index bada35cd..46243a6c 100644 --- a/remote/github/github_test.go +++ b/remote/github/github_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 github import ( diff --git a/remote/github/parse.go b/remote/github/parse.go index 36b6fcf2..6d24bfff 100644 --- a/remote/github/parse.go +++ b/remote/github/parse.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 github import ( diff --git a/remote/github/parse_test.go b/remote/github/parse_test.go index 8152e16c..fab286ab 100644 --- a/remote/github/parse_test.go +++ b/remote/github/parse_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 github import ( diff --git a/remote/github/types.go b/remote/github/types.go index b8ed282e..d03e5e74 100644 --- a/remote/github/types.go +++ b/remote/github/types.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 github type webhook struct { diff --git a/remote/gitlab/client/drone.go b/remote/gitlab/client/drone.go index 8915e845..e5a36dce 100644 --- a/remote/gitlab/client/drone.go +++ b/remote/gitlab/client/drone.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 const ( diff --git a/remote/gitlab/client/gitlab.go b/remote/gitlab/client/gitlab.go index 1b4bad74..254d8d2d 100644 --- a/remote/gitlab/client/gitlab.go +++ b/remote/gitlab/client/gitlab.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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/remote/gitlab/client/groups.go b/remote/gitlab/client/groups.go index 0e8f30d2..745cdea5 100644 --- a/remote/gitlab/client/groups.go +++ b/remote/gitlab/client/groups.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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/remote/gitlab/client/hook.go b/remote/gitlab/client/hook.go index 8ea89689..d733178e 100644 --- a/remote/gitlab/client/hook.go +++ b/remote/gitlab/client/hook.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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/remote/gitlab/client/project.go b/remote/gitlab/client/project.go index 47565dd5..251dfd16 100644 --- a/remote/gitlab/client/project.go +++ b/remote/gitlab/client/project.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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/remote/gitlab/client/types.go b/remote/gitlab/client/types.go index b950a6d7..b7527708 100644 --- a/remote/gitlab/client/types.go +++ b/remote/gitlab/client/types.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 type QMap map[string]string diff --git a/remote/gitlab/client/user.go b/remote/gitlab/client/user.go index bafc7c47..88a12ae6 100644 --- a/remote/gitlab/client/user.go +++ b/remote/gitlab/client/user.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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/remote/gitlab/client/util.go b/remote/gitlab/client/util.go index c7418525..84c580d5 100644 --- a/remote/gitlab/client/util.go +++ b/remote/gitlab/client/util.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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/remote/gitlab/gitlab.go b/remote/gitlab/gitlab.go index a920ca43..884c125a 100644 --- a/remote/gitlab/gitlab.go +++ b/remote/gitlab/gitlab.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gitlab import ( diff --git a/remote/gitlab/gitlab_test.go b/remote/gitlab/gitlab_test.go index 6e4f7003..78974d1d 100644 --- a/remote/gitlab/gitlab_test.go +++ b/remote/gitlab/gitlab_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gitlab import ( diff --git a/remote/gitlab/helper.go b/remote/gitlab/helper.go index 03c5092a..7f80c0b4 100644 --- a/remote/gitlab/helper.go +++ b/remote/gitlab/helper.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gitlab import ( diff --git a/remote/gitlab/testdata/hooks.go b/remote/gitlab/testdata/hooks.go index d7e01450..ff5ad57b 100644 --- a/remote/gitlab/testdata/hooks.go +++ b/remote/gitlab/testdata/hooks.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 testdata var TagHook = []byte(` diff --git a/remote/gitlab/testdata/oauth.go b/remote/gitlab/testdata/oauth.go index 95119d70..6b975e57 100644 --- a/remote/gitlab/testdata/oauth.go +++ b/remote/gitlab/testdata/oauth.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 testdata var accessTokenPayload = []byte(`access_token=sekret&scope=api&token_type=bearer`) diff --git a/remote/gitlab/testdata/projects.go b/remote/gitlab/testdata/projects.go index 1dd069e3..eb3cfc39 100644 --- a/remote/gitlab/testdata/projects.go +++ b/remote/gitlab/testdata/projects.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 testdata // sample repository list diff --git a/remote/gitlab/testdata/testdata.go b/remote/gitlab/testdata/testdata.go index 032d4d58..63db0c4f 100644 --- a/remote/gitlab/testdata/testdata.go +++ b/remote/gitlab/testdata/testdata.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 testdata import ( diff --git a/remote/gitlab/testdata/users.go b/remote/gitlab/testdata/users.go index e7d56369..247adc9a 100644 --- a/remote/gitlab/testdata/users.go +++ b/remote/gitlab/testdata/users.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 testdata var currentUserPayload = []byte(` diff --git a/remote/gitlab3/client/drone.go b/remote/gitlab3/client/drone.go index 8915e845..e5a36dce 100644 --- a/remote/gitlab3/client/drone.go +++ b/remote/gitlab3/client/drone.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 const ( diff --git a/remote/gitlab3/client/gitlab.go b/remote/gitlab3/client/gitlab.go index 1b4bad74..254d8d2d 100644 --- a/remote/gitlab3/client/gitlab.go +++ b/remote/gitlab3/client/gitlab.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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/remote/gitlab3/client/groups.go b/remote/gitlab3/client/groups.go index 0e8f30d2..745cdea5 100644 --- a/remote/gitlab3/client/groups.go +++ b/remote/gitlab3/client/groups.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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/remote/gitlab3/client/hook.go b/remote/gitlab3/client/hook.go index 8ea89689..d733178e 100644 --- a/remote/gitlab3/client/hook.go +++ b/remote/gitlab3/client/hook.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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/remote/gitlab3/client/project.go b/remote/gitlab3/client/project.go index f21f1a48..455e2138 100644 --- a/remote/gitlab3/client/project.go +++ b/remote/gitlab3/client/project.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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/remote/gitlab3/client/types.go b/remote/gitlab3/client/types.go index 0c6424e0..5371f2af 100644 --- a/remote/gitlab3/client/types.go +++ b/remote/gitlab3/client/types.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 type QMap map[string]string diff --git a/remote/gitlab3/client/user.go b/remote/gitlab3/client/user.go index bafc7c47..88a12ae6 100644 --- a/remote/gitlab3/client/user.go +++ b/remote/gitlab3/client/user.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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/remote/gitlab3/client/util.go b/remote/gitlab3/client/util.go index c7418525..84c580d5 100644 --- a/remote/gitlab3/client/util.go +++ b/remote/gitlab3/client/util.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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/remote/gitlab3/gitlab.go b/remote/gitlab3/gitlab.go index 5bc62958..eb402de1 100644 --- a/remote/gitlab3/gitlab.go +++ b/remote/gitlab3/gitlab.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gitlab3 import ( diff --git a/remote/gitlab3/gitlab_test.go b/remote/gitlab3/gitlab_test.go index 7d69493c..e8bd7bc8 100644 --- a/remote/gitlab3/gitlab_test.go +++ b/remote/gitlab3/gitlab_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gitlab3 import ( diff --git a/remote/gitlab3/helper.go b/remote/gitlab3/helper.go index 93f66ef1..470e19b8 100644 --- a/remote/gitlab3/helper.go +++ b/remote/gitlab3/helper.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gitlab3 import ( diff --git a/remote/gitlab3/testdata/hooks.go b/remote/gitlab3/testdata/hooks.go index d7e01450..ff5ad57b 100644 --- a/remote/gitlab3/testdata/hooks.go +++ b/remote/gitlab3/testdata/hooks.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 testdata var TagHook = []byte(` diff --git a/remote/gitlab3/testdata/oauth.go b/remote/gitlab3/testdata/oauth.go index 95119d70..6b975e57 100644 --- a/remote/gitlab3/testdata/oauth.go +++ b/remote/gitlab3/testdata/oauth.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 testdata var accessTokenPayload = []byte(`access_token=sekret&scope=api&token_type=bearer`) diff --git a/remote/gitlab3/testdata/projects.go b/remote/gitlab3/testdata/projects.go index 1dd069e3..eb3cfc39 100644 --- a/remote/gitlab3/testdata/projects.go +++ b/remote/gitlab3/testdata/projects.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 testdata // sample repository list diff --git a/remote/gitlab3/testdata/testdata.go b/remote/gitlab3/testdata/testdata.go index 2fa2322b..d9ea8995 100644 --- a/remote/gitlab3/testdata/testdata.go +++ b/remote/gitlab3/testdata/testdata.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 testdata import ( diff --git a/remote/gitlab3/testdata/users.go b/remote/gitlab3/testdata/users.go index e7d56369..247adc9a 100644 --- a/remote/gitlab3/testdata/users.go +++ b/remote/gitlab3/testdata/users.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 testdata var currentUserPayload = []byte(` diff --git a/remote/gogs/fixtures/handler.go b/remote/gogs/fixtures/handler.go index 5904a1dd..fa4f74a7 100644 --- a/remote/gogs/fixtures/handler.go +++ b/remote/gogs/fixtures/handler.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 fixtures import ( diff --git a/remote/gogs/fixtures/hooks.go b/remote/gogs/fixtures/hooks.go index fdd1fda1..8aa2e228 100644 --- a/remote/gogs/fixtures/hooks.go +++ b/remote/gogs/fixtures/hooks.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 fixtures // Sample Gogs push hook diff --git a/remote/gogs/gogs.go b/remote/gogs/gogs.go index 8e2339f8..74a0f7bd 100644 --- a/remote/gogs/gogs.go +++ b/remote/gogs/gogs.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gogs import ( diff --git a/remote/gogs/gogs_test.go b/remote/gogs/gogs_test.go index bfd8728c..62d3698c 100644 --- a/remote/gogs/gogs_test.go +++ b/remote/gogs/gogs_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gogs import ( diff --git a/remote/gogs/helper.go b/remote/gogs/helper.go index 9bd96559..680ba5f1 100644 --- a/remote/gogs/helper.go +++ b/remote/gogs/helper.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gogs import ( diff --git a/remote/gogs/helper_test.go b/remote/gogs/helper_test.go index 41ec32eb..8ca91498 100644 --- a/remote/gogs/helper_test.go +++ b/remote/gogs/helper_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gogs import ( diff --git a/remote/gogs/parse.go b/remote/gogs/parse.go index a9ac0788..3698e204 100644 --- a/remote/gogs/parse.go +++ b/remote/gogs/parse.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gogs import ( diff --git a/remote/gogs/parse_test.go b/remote/gogs/parse_test.go index be8cf935..a2f45911 100644 --- a/remote/gogs/parse_test.go +++ b/remote/gogs/parse_test.go @@ -1 +1,15 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gogs diff --git a/remote/gogs/types.go b/remote/gogs/types.go index c4bed21a..532247ca 100644 --- a/remote/gogs/types.go +++ b/remote/gogs/types.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 gogs type pushHook struct { diff --git a/remote/mock/remote.go b/remote/mock/remote.go index f97a677f..d2735352 100644 --- a/remote/mock/remote.go +++ b/remote/mock/remote.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 mock import ( diff --git a/remote/remote.go b/remote/remote.go index 929d8c3a..99f28c67 100644 --- a/remote/remote.go +++ b/remote/remote.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 remote //go:generate mockery -name Remote -output mock -case=underscore diff --git a/router/middleware/config.go b/router/middleware/config.go index c90c9ac8..e42e0622 100644 --- a/router/middleware/config.go +++ b/router/middleware/config.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 middleware import ( diff --git a/router/middleware/header/header.go b/router/middleware/header/header.go index 7b82154a..333a6b82 100644 --- a/router/middleware/header/header.go +++ b/router/middleware/header/header.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 header import ( diff --git a/router/middleware/remote.go b/router/middleware/remote.go index cfc74823..17bdb90a 100644 --- a/router/middleware/remote.go +++ b/router/middleware/remote.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 middleware import ( diff --git a/router/middleware/session/agent.go b/router/middleware/session/agent.go index d1a31c66..dae56d4a 100644 --- a/router/middleware/session/agent.go +++ b/router/middleware/session/agent.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 session import ( diff --git a/router/middleware/session/repo.go b/router/middleware/session/repo.go index 2822d009..fddb69b0 100644 --- a/router/middleware/session/repo.go +++ b/router/middleware/session/repo.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 session import ( diff --git a/router/middleware/session/repo_test.go b/router/middleware/session/repo_test.go index 349b4e3a..de2bbdcc 100644 --- a/router/middleware/session/repo_test.go +++ b/router/middleware/session/repo_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 session import ( diff --git a/router/middleware/session/user.go b/router/middleware/session/user.go index f965014a..64f0bf3c 100644 --- a/router/middleware/session/user.go +++ b/router/middleware/session/user.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 session import ( diff --git a/router/middleware/store.go b/router/middleware/store.go index 09e52d38..c0a02c4b 100644 --- a/router/middleware/store.go +++ b/router/middleware/store.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 middleware import ( diff --git a/router/middleware/token/token.go b/router/middleware/token/token.go index 52440194..d5ca0f20 100644 --- a/router/middleware/token/token.go +++ b/router/middleware/token/token.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 token import ( diff --git a/router/middleware/version.go b/router/middleware/version.go index 87170010..fbed00c7 100644 --- a/router/middleware/version.go +++ b/router/middleware/version.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 middleware import ( diff --git a/router/router.go b/router/router.go index 0cb4fd11..c86dc13b 100644 --- a/router/router.go +++ b/router/router.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 router import ( diff --git a/server/badge.go b/server/badge.go index 455bd90a..aa1263cf 100644 --- a/server/badge.go +++ b/server/badge.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 server import ( diff --git a/server/build.go b/server/build.go index c66807d6..838d46f1 100644 --- a/server/build.go +++ b/server/build.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 server import ( diff --git a/server/debug/debug.go b/server/debug/debug.go index d4e2346d..17458b43 100644 --- a/server/debug/debug.go +++ b/server/debug/debug.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 debug import ( diff --git a/server/file.go b/server/file.go index f360c82d..0b2f4791 100644 --- a/server/file.go +++ b/server/file.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 server import ( diff --git a/server/hook.go b/server/hook.go index d213b619..e47fd89d 100644 --- a/server/hook.go +++ b/server/hook.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 server import ( diff --git a/server/hook_test.go b/server/hook_test.go index 51af94e6..546bafab 100644 --- a/server/hook_test.go +++ b/server/hook_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 server import ( diff --git a/server/login.go b/server/login.go index 0a41ff39..3f78bf16 100644 --- a/server/login.go +++ b/server/login.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 server import ( diff --git a/server/metrics/prometheus.go b/server/metrics/prometheus.go index 1eea8961..fa28c2fb 100644 --- a/server/metrics/prometheus.go +++ b/server/metrics/prometheus.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 metrics import ( diff --git a/server/registry.go b/server/registry.go index d1a46b6a..d9ee7e21 100644 --- a/server/registry.go +++ b/server/registry.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 server import ( diff --git a/server/repo.go b/server/repo.go index b8c1faaa..f77e52b4 100644 --- a/server/repo.go +++ b/server/repo.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 server import ( diff --git a/server/rpc.go b/server/rpc.go index d099ff4b..aceadca9 100644 --- a/server/rpc.go +++ b/server/rpc.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 server import ( diff --git a/server/secret.go b/server/secret.go index 34bed546..8c5b2093 100644 --- a/server/secret.go +++ b/server/secret.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 server import ( diff --git a/server/stream.go b/server/stream.go index d8625e90..290c5ef5 100644 --- a/server/stream.go +++ b/server/stream.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 server import ( diff --git a/server/swagger/doc.go b/server/swagger/doc.go index 2642c47d..5778d5b9 100644 --- a/server/swagger/doc.go +++ b/server/swagger/doc.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 classification Drone API. // // Schemes: http, https diff --git a/server/swagger/swagger.go b/server/swagger/swagger.go index 2e7a006f..d205abbe 100644 --- a/server/swagger/swagger.go +++ b/server/swagger/swagger.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 swagger import ( diff --git a/server/sync.go b/server/sync.go index 9d42835f..8e0ac103 100644 --- a/server/sync.go +++ b/server/sync.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 server import ( diff --git a/server/user.go b/server/user.go index 00402ae7..c6eaaf80 100644 --- a/server/user.go +++ b/server/user.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 server import ( diff --git a/server/users.go b/server/users.go index 410e8b8d..08a46f1d 100644 --- a/server/users.go +++ b/server/users.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 server import ( diff --git a/server/web/opts.go b/server/web/opts.go index 09d0c6d3..5d77fd21 100644 --- a/server/web/opts.go +++ b/server/web/opts.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 web import "time" diff --git a/server/web/opts_test.go b/server/web/opts_test.go index 188ec09d..d26ee047 100644 --- a/server/web/opts_test.go +++ b/server/web/opts_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 web import ( diff --git a/server/web/template.go b/server/web/template.go index dd93a74a..4f3bd80a 100644 --- a/server/web/template.go +++ b/server/web/template.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 web import ( diff --git a/server/web/template_test.go b/server/web/template_test.go index 3a0895ff..a1286d42 100644 --- a/server/web/template_test.go +++ b/server/web/template_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 web import ( diff --git a/server/web/web.go b/server/web/web.go index 58cb5dce..6a16f447 100644 --- a/server/web/web.go +++ b/server/web/web.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 web import ( diff --git a/server/z.go b/server/z.go index 69df93ad..e606b9f9 100644 --- a/server/z.go +++ b/server/z.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 server import ( diff --git a/shared/httputil/httputil.go b/shared/httputil/httputil.go index 86cc7b5a..3c976155 100644 --- a/shared/httputil/httputil.go +++ b/shared/httputil/httputil.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 httputil import ( diff --git a/shared/token/token.go b/shared/token/token.go index d4f83a2b..492943dd 100644 --- a/shared/token/token.go +++ b/shared/token/token.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 token import ( diff --git a/store/context.go b/store/context.go index 10112dde..bceed28a 100644 --- a/store/context.go +++ b/store/context.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 store import ( diff --git a/store/datastore/builds.go b/store/datastore/builds.go index fddee0b2..74c83bac 100644 --- a/store/datastore/builds.go +++ b/store/datastore/builds.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/builds_test.go b/store/datastore/builds_test.go index 69497f85..dcc9bb2d 100644 --- a/store/datastore/builds_test.go +++ b/store/datastore/builds_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/config.go b/store/datastore/config.go index ca6d6f24..f5eae4de 100644 --- a/store/datastore/config.go +++ b/store/datastore/config.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/config_test.go b/store/datastore/config_test.go index cdcceaab..e4784d3f 100644 --- a/store/datastore/config_test.go +++ b/store/datastore/config_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/ddl/migrate.go b/store/datastore/ddl/migrate.go index d59e2014..568848e1 100644 --- a/store/datastore/ddl/migrate.go +++ b/store/datastore/ddl/migrate.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 ddl import ( diff --git a/store/datastore/ddl/mysql/ddl.go b/store/datastore/ddl/mysql/ddl.go index 42ab9ab9..6305f4ce 100644 --- a/store/datastore/ddl/mysql/ddl.go +++ b/store/datastore/ddl/mysql/ddl.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 mysql //go:generate togo ddl -package mysql -dialect mysql diff --git a/store/datastore/ddl/mysql/ddl_gen.go b/store/datastore/ddl/mysql/ddl_gen.go index 0bd0ca69..11627f09 100644 --- a/store/datastore/ddl/mysql/ddl_gen.go +++ b/store/datastore/ddl/mysql/ddl_gen.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 mysql import ( diff --git a/store/datastore/ddl/postgres/ddl.go b/store/datastore/ddl/postgres/ddl.go index cb187703..fbe05329 100644 --- a/store/datastore/ddl/postgres/ddl.go +++ b/store/datastore/ddl/postgres/ddl.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 postgres //go:generate togo ddl -package postgres -dialect postgres diff --git a/store/datastore/ddl/postgres/ddl_gen.go b/store/datastore/ddl/postgres/ddl_gen.go index 2e999e22..b4ff8337 100644 --- a/store/datastore/ddl/postgres/ddl_gen.go +++ b/store/datastore/ddl/postgres/ddl_gen.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 postgres import ( diff --git a/store/datastore/ddl/sqlite/ddl.go b/store/datastore/ddl/sqlite/ddl.go index 5573bad2..2b730c9c 100644 --- a/store/datastore/ddl/sqlite/ddl.go +++ b/store/datastore/ddl/sqlite/ddl.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 sqlite //go:generate togo ddl -package sqlite -dialect sqlite3 diff --git a/store/datastore/ddl/sqlite/ddl_gen.go b/store/datastore/ddl/sqlite/ddl_gen.go index e4e46247..cb3e6964 100644 --- a/store/datastore/ddl/sqlite/ddl_gen.go +++ b/store/datastore/ddl/sqlite/ddl_gen.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 sqlite import ( diff --git a/store/datastore/files.go b/store/datastore/files.go index a52965ea..e32d070a 100644 --- a/store/datastore/files.go +++ b/store/datastore/files.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/files_test.go b/store/datastore/files_test.go index 051e78a1..441f2979 100644 --- a/store/datastore/files_test.go +++ b/store/datastore/files_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/init.go b/store/datastore/init.go index b0066090..f2dd486c 100644 --- a/store/datastore/init.go +++ b/store/datastore/init.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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. + // +build !cgo package datastore diff --git a/store/datastore/init_cgo.go b/store/datastore/init_cgo.go index 0aa3ef76..6c9e0ede 100644 --- a/store/datastore/init_cgo.go +++ b/store/datastore/init_cgo.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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. + // +build cgo package datastore diff --git a/store/datastore/logs.go b/store/datastore/logs.go index 841ef7de..2604d179 100644 --- a/store/datastore/logs.go +++ b/store/datastore/logs.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/logs_test.go b/store/datastore/logs_test.go index 66417870..7abb48f8 100644 --- a/store/datastore/logs_test.go +++ b/store/datastore/logs_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/perms.go b/store/datastore/perms.go index ffa4f77e..1871d426 100644 --- a/store/datastore/perms.go +++ b/store/datastore/perms.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/perms_test.go b/store/datastore/perms_test.go index 113b550c..1ab82431 100644 --- a/store/datastore/perms_test.go +++ b/store/datastore/perms_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/procs.go b/store/datastore/procs.go index 7dcce95e..51502652 100644 --- a/store/datastore/procs.go +++ b/store/datastore/procs.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/procs_test.go b/store/datastore/procs_test.go index 2f9849d3..b5d429c1 100644 --- a/store/datastore/procs_test.go +++ b/store/datastore/procs_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/registry.go b/store/datastore/registry.go index 6e16d365..f2b13dd3 100644 --- a/store/datastore/registry.go +++ b/store/datastore/registry.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/registry_test.go b/store/datastore/registry_test.go index 3df5b611..ea8a49aa 100644 --- a/store/datastore/registry_test.go +++ b/store/datastore/registry_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/repos.go b/store/datastore/repos.go index eda92d90..10e74e15 100644 --- a/store/datastore/repos.go +++ b/store/datastore/repos.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/repos_test.go b/store/datastore/repos_test.go index ddd1218a..b4c209f4 100644 --- a/store/datastore/repos_test.go +++ b/store/datastore/repos_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/secret.go b/store/datastore/secret.go index 33e8c0c7..c05dbf27 100644 --- a/store/datastore/secret.go +++ b/store/datastore/secret.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/secret_test.go b/store/datastore/secret_test.go index c5b02883..54ed058c 100644 --- a/store/datastore/secret_test.go +++ b/store/datastore/secret_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/sender.go b/store/datastore/sender.go index 78431086..0dd2099f 100644 --- a/store/datastore/sender.go +++ b/store/datastore/sender.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/sender_test.go b/store/datastore/sender_test.go index 346ce2c6..5c732309 100644 --- a/store/datastore/sender_test.go +++ b/store/datastore/sender_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/sql/lookup.go b/store/datastore/sql/lookup.go index da3643f9..f9c6eec7 100644 --- a/store/datastore/sql/lookup.go +++ b/store/datastore/sql/lookup.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 sql import ( diff --git a/store/datastore/sql/mysql/sql.go b/store/datastore/sql/mysql/sql.go index 3e7d8abf..cc49a56d 100644 --- a/store/datastore/sql/mysql/sql.go +++ b/store/datastore/sql/mysql/sql.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 mysql //go:generate togo sql --package=mysql diff --git a/store/datastore/sql/mysql/sql_gen.go b/store/datastore/sql/mysql/sql_gen.go index 313a53eb..b9b20514 100644 --- a/store/datastore/sql/mysql/sql_gen.go +++ b/store/datastore/sql/mysql/sql_gen.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 mysql // Lookup returns the named statement. diff --git a/store/datastore/sql/postgres/sql.go b/store/datastore/sql/postgres/sql.go index 08b77345..6623eefa 100644 --- a/store/datastore/sql/postgres/sql.go +++ b/store/datastore/sql/postgres/sql.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 postgres //go:generate togo sql --package=postgres diff --git a/store/datastore/sql/postgres/sql_gen.go b/store/datastore/sql/postgres/sql_gen.go index 3f0e2dac..8bf15819 100644 --- a/store/datastore/sql/postgres/sql_gen.go +++ b/store/datastore/sql/postgres/sql_gen.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 postgres // Lookup returns the named statement. diff --git a/store/datastore/sql/sqlite/sql.go b/store/datastore/sql/sqlite/sql.go index 9b8267f6..c1147069 100644 --- a/store/datastore/sql/sqlite/sql.go +++ b/store/datastore/sql/sqlite/sql.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 sqlite //go:generate togo sql --package=sqlite diff --git a/store/datastore/sql/sqlite/sql_gen.go b/store/datastore/sql/sqlite/sql_gen.go index e98d2e36..11b5e897 100644 --- a/store/datastore/sql/sqlite/sql_gen.go +++ b/store/datastore/sql/sqlite/sql_gen.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 sqlite // Lookup returns the named statement. diff --git a/store/datastore/store.go b/store/datastore/store.go index eb7058dc..4cdc69f6 100644 --- a/store/datastore/store.go +++ b/store/datastore/store.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/task.go b/store/datastore/task.go index d82e2380..96939525 100644 --- a/store/datastore/task.go +++ b/store/datastore/task.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/task_test.go b/store/datastore/task_test.go index a1550765..da8083d8 100644 --- a/store/datastore/task_test.go +++ b/store/datastore/task_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/users.go b/store/datastore/users.go index ba432c34..fef11983 100644 --- a/store/datastore/users.go +++ b/store/datastore/users.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/users_test.go b/store/datastore/users_test.go index f37dbce5..14094f89 100644 --- a/store/datastore/users_test.go +++ b/store/datastore/users_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/datastore/utils.go b/store/datastore/utils.go index dbf0e8b7..56a843bf 100644 --- a/store/datastore/utils.go +++ b/store/datastore/utils.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 datastore import ( diff --git a/store/store.go b/store/store.go index 88c6ccff..2b2393b0 100644 --- a/store/store.go +++ b/store/store.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 store import ( diff --git a/version/version.go b/version/version.go index c5962538..f5219e3d 100644 --- a/version/version.go +++ b/version/version.go @@ -1,3 +1,17 @@ +// Copyright 2018 Drone.IO Inc. +// +// 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 version import "github.com/coreos/go-semver/semver"