diff --git a/cmd/build.go b/cmd/build.go index b562af8..0b0d72d 100644 --- a/cmd/build.go +++ b/cmd/build.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 cmd import ( diff --git a/cmd/install.go b/cmd/install.go index 0fcb6a2..662d744 100644 --- a/cmd/install.go +++ b/cmd/install.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 cmd import ( diff --git a/cmd/list.go b/cmd/list.go index fff1927..b8b9204 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 cmd import ( diff --git a/cmd/merge.go b/cmd/merge.go index b3c18ab..df5863d 100644 --- a/cmd/merge.go +++ b/cmd/merge.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 cmd import ( diff --git a/cmd/profile.go b/cmd/profile.go index 7cb3525..b617243 100644 --- a/cmd/profile.go +++ b/cmd/profile.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 cmd import ( diff --git a/cmd/root.go b/cmd/root.go index 4c48b78..56ba899 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,5 +1,5 @@ /* - Copyright 2020 Qiniu Cloud (qiniu.com) + Copyright 2021 Qiniu Cloud (qiniu.com) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/cmd/server.go b/cmd/server.go index 05a7784..e2d0e29 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 cmd import ( diff --git a/cmd/version.go b/cmd/version.go index 5f78e3b..37f1b6e 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 cmd import ( diff --git a/cmd/watch.go b/cmd/watch.go index ee7f616..0138900 100644 --- a/cmd/watch.go +++ b/cmd/watch.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 cmd import ( diff --git a/main.go b/main.go index 4b511ac..252d2e6 100644 --- a/main.go +++ b/main.go @@ -1,5 +1,5 @@ /* - Copyright 2020 Qiniu Cloud (qiniu.com) + Copyright 2021 Qiniu Cloud (qiniu.com) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/pkg/build/agent.tpl b/pkg/build/agent.tpl index fa70c6a..6109e04 100644 --- a/pkg/build/agent.tpl +++ b/pkg/build/agent.tpl @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 cover import ( diff --git a/pkg/build/agentwatch.tpl b/pkg/build/agentwatch.tpl index 9455bc3..b5a5a04 100644 --- a/pkg/build/agentwatch.tpl +++ b/pkg/build/agentwatch.tpl @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 cover import ( diff --git a/pkg/build/build.go b/pkg/build/build.go index e5c9ac1..bfae861 100644 --- a/pkg/build/build.go +++ b/pkg/build/build.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 build import ( diff --git a/pkg/build/build_flags.go b/pkg/build/build_flags.go index 2db94a7..571590b 100644 --- a/pkg/build/build_flags.go +++ b/pkg/build/build_flags.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 build import ( diff --git a/pkg/build/config.go b/pkg/build/config.go index 7e9d164..15b6b65 100644 --- a/pkg/build/config.go +++ b/pkg/build/config.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 build import ( diff --git a/pkg/build/cover.go b/pkg/build/cover.go index 21050d8..c48fc5b 100644 --- a/pkg/build/cover.go +++ b/pkg/build/cover.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 build import ( diff --git a/pkg/build/goenv.go b/pkg/build/goenv.go index 6926226..11914d5 100644 --- a/pkg/build/goenv.go +++ b/pkg/build/goenv.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 build import ( diff --git a/pkg/build/inject.go b/pkg/build/inject.go index 73089c0..1898d17 100644 --- a/pkg/build/inject.go +++ b/pkg/build/inject.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 build import ( diff --git a/pkg/build/install.go b/pkg/build/install.go index 1bb7a3d..18a95b1 100644 --- a/pkg/build/install.go +++ b/pkg/build/install.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 build import ( diff --git a/pkg/build/internal/websocket/wsdep.go b/pkg/build/internal/websocket/wsdep.go index 6c3b898..ff8734b 100644 --- a/pkg/build/internal/websocket/wsdep.go +++ b/pkg/build/internal/websocket/wsdep.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 websocket import ( diff --git a/pkg/build/template.go b/pkg/build/template.go index ef392ea..3481585 100644 --- a/pkg/build/template.go +++ b/pkg/build/template.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 build import ( diff --git a/pkg/build/tmpfolder.go b/pkg/build/tmpfolder.go index bbffbc5..4ab164f 100644 --- a/pkg/build/tmpfolder.go +++ b/pkg/build/tmpfolder.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 build import ( diff --git a/pkg/client/client.go b/pkg/client/client.go index 5b4ae4a..7deafb0 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -1,10 +1,22 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 ( "bytes" "encoding/json" "fmt" - "golang.org/x/term" "io" "io/ioutil" "net" @@ -13,6 +25,8 @@ import ( "os" "path/filepath" + "golang.org/x/term" + "github.com/olekukonko/tablewriter" "github.com/qiniu/goc/v2/pkg/log" ) diff --git a/pkg/client/client_test.go b/pkg/client/client_test.go index 6a3aad3..6986ded 100644 --- a/pkg/client/client_test.go +++ b/pkg/client/client_test.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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/pkg/log/ci_logger.go b/pkg/log/ci_logger.go index e8486d0..8194df9 100644 --- a/pkg/log/ci_logger.go +++ b/pkg/log/ci_logger.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 log import "go.uber.org/zap" diff --git a/pkg/log/display.go b/pkg/log/display.go index 39b7813..727fc66 100644 --- a/pkg/log/display.go +++ b/pkg/log/display.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 log import "github.com/mgutz/ansi" diff --git a/pkg/log/loading_text.go b/pkg/log/loading_text.go index e01d1f7..a355105 100644 --- a/pkg/log/loading_text.go +++ b/pkg/log/loading_text.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 log import ( diff --git a/pkg/log/log.go b/pkg/log/log.go index 3f44ea4..3962170 100644 --- a/pkg/log/log.go +++ b/pkg/log/log.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 log import ( diff --git a/pkg/log/logger.go b/pkg/log/logger.go index 97f0b2d..edaf84c 100644 --- a/pkg/log/logger.go +++ b/pkg/log/logger.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 log // Logger defines common interface for logging diff --git a/pkg/log/terminal.go b/pkg/log/terminal.go index 82aa81b..b9caa39 100644 --- a/pkg/log/terminal.go +++ b/pkg/log/terminal.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 log import ( diff --git a/pkg/log/terminal_logger.go b/pkg/log/terminal_logger.go index d4ca9a9..ffb1334 100644 --- a/pkg/log/terminal_logger.go +++ b/pkg/log/terminal_logger.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 log import ( diff --git a/pkg/server/api.go b/pkg/server/api.go index f98321b..8d866df 100644 --- a/pkg/server/api.go +++ b/pkg/server/api.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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/pkg/server/common.go b/pkg/server/common.go index 5243e39..0a1e0ed 100644 --- a/pkg/server/common.go +++ b/pkg/server/common.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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/pkg/server/rpcstream.go b/pkg/server/rpcstream.go index 9ef4227..074741f 100644 --- a/pkg/server/rpcstream.go +++ b/pkg/server/rpcstream.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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/pkg/server/server.go b/pkg/server/server.go index cf796b1..3763532 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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/pkg/server/util.go b/pkg/server/util.go index f0bfc95..05d8d15 100644 --- a/pkg/server/util.go +++ b/pkg/server/util.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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/pkg/server/watchstream.go b/pkg/server/watchstream.go index 02af6c7..579435c 100644 --- a/pkg/server/watchstream.go +++ b/pkg/server/watchstream.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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/pkg/watch/watch.go b/pkg/watch/watch.go index 3cca3f8..07318e2 100644 --- a/pkg/watch/watch.go +++ b/pkg/watch/watch.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 watch import ( diff --git a/tests/e2e/cmd.go b/tests/e2e/cmd.go index 37a56cc..8af2152 100644 --- a/tests/e2e/cmd.go +++ b/tests/e2e/cmd.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 e2e import ( diff --git a/tests/e2e/e2e_suite_test.go b/tests/e2e/e2e_suite_test.go index a80ded3..88aad2b 100644 --- a/tests/e2e/e2e_suite_test.go +++ b/tests/e2e/e2e_suite_test.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 e2e import ( diff --git a/tests/e2e/e2e_test.go b/tests/e2e/e2e_test.go index 15bd31a..7394b98 100644 --- a/tests/e2e/e2e_test.go +++ b/tests/e2e/e2e_test.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 e2e import ( diff --git a/tests/e2e/samples_mgr.go b/tests/e2e/samples_mgr.go index e898b29..a76cd95 100644 --- a/tests/e2e/samples_mgr.go +++ b/tests/e2e/samples_mgr.go @@ -1,3 +1,16 @@ +/* + Copyright 2021 Qiniu Cloud (qiniu.com) + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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 e2e import (