cubefs
304 строки · 16.3 Кб
1Copyright (c) 2012 The Go Authors. All rights reserved.
2Copyright (c) 2019 Klaus Post. All rights reserved.
3
4Redistribution and use in source and binary forms, with or without
5modification, are permitted provided that the following conditions are
6met:
7
8* Redistributions of source code must retain the above copyright
9notice, this list of conditions and the following disclaimer.
10* Redistributions in binary form must reproduce the above
11copyright notice, this list of conditions and the following disclaimer
12in the documentation and/or other materials provided with the
13distribution.
14* Neither the name of Google Inc. nor the names of its
15contributors may be used to endorse or promote products derived from
16this software without specific prior written permission.
17
18THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30------------------
31
32Files: gzhttp/*
33
34Apache License
35Version 2.0, January 2004
36http://www.apache.org/licenses/
37
38TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
39
401. Definitions.
41
42"License" shall mean the terms and conditions for use, reproduction,
43and distribution as defined by Sections 1 through 9 of this document.
44
45"Licensor" shall mean the copyright owner or entity authorized by
46the copyright owner that is granting the License.
47
48"Legal Entity" shall mean the union of the acting entity and all
49other entities that control, are controlled by, or are under common
50control with that entity. For the purposes of this definition,
51"control" means (i) the power, direct or indirect, to cause the
52direction or management of such entity, whether by contract or
53otherwise, or (ii) ownership of fifty percent (50%) or more of the
54outstanding shares, or (iii) beneficial ownership of such entity.
55
56"You" (or "Your") shall mean an individual or Legal Entity
57exercising permissions granted by this License.
58
59"Source" form shall mean the preferred form for making modifications,
60including but not limited to software source code, documentation
61source, and configuration files.
62
63"Object" form shall mean any form resulting from mechanical
64transformation or translation of a Source form, including but
65not limited to compiled object code, generated documentation,
66and conversions to other media types.
67
68"Work" shall mean the work of authorship, whether in Source or
69Object form, made available under the License, as indicated by a
70copyright notice that is included in or attached to the work
71(an example is provided in the Appendix below).
72
73"Derivative Works" shall mean any work, whether in Source or Object
74form, that is based on (or derived from) the Work and for which the
75editorial revisions, annotations, elaborations, or other modifications
76represent, as a whole, an original work of authorship. For the purposes
77of this License, Derivative Works shall not include works that remain
78separable from, or merely link (or bind by name) to the interfaces of,
79the Work and Derivative Works thereof.
80
81"Contribution" shall mean any work of authorship, including
82the original version of the Work and any modifications or additions
83to that Work or Derivative Works thereof, that is intentionally
84submitted to Licensor for inclusion in the Work by the copyright owner
85or by an individual or Legal Entity authorized to submit on behalf of
86the copyright owner. For the purposes of this definition, "submitted"
87means any form of electronic, verbal, or written communication sent
88to the Licensor or its representatives, including but not limited to
89communication on electronic mailing lists, source code control systems,
90and issue tracking systems that are managed by, or on behalf of, the
91Licensor for the purpose of discussing and improving the Work, but
92excluding communication that is conspicuously marked or otherwise
93designated in writing by the copyright owner as "Not a Contribution."
94
95"Contributor" shall mean Licensor and any individual or Legal Entity
96on behalf of whom a Contribution has been received by Licensor and
97subsequently incorporated within the Work.
98
992. Grant of Copyright License. Subject to the terms and conditions of
100this License, each Contributor hereby grants to You a perpetual,
101worldwide, non-exclusive, no-charge, royalty-free, irrevocable
102copyright license to reproduce, prepare Derivative Works of,
103publicly display, publicly perform, sublicense, and distribute the
104Work and such Derivative Works in Source or Object form.
105
1063. Grant of Patent License. Subject to the terms and conditions of
107this License, each Contributor hereby grants to You a perpetual,
108worldwide, non-exclusive, no-charge, royalty-free, irrevocable
109(except as stated in this section) patent license to make, have made,
110use, offer to sell, sell, import, and otherwise transfer the Work,
111where such license applies only to those patent claims licensable
112by such Contributor that are necessarily infringed by their
113Contribution(s) alone or by combination of their Contribution(s)
114with the Work to which such Contribution(s) was submitted. If You
115institute patent litigation against any entity (including a
116cross-claim or counterclaim in a lawsuit) alleging that the Work
117or a Contribution incorporated within the Work constitutes direct
118or contributory patent infringement, then any patent licenses
119granted to You under this License for that Work shall terminate
120as of the date such litigation is filed.
121
1224. Redistribution. You may reproduce and distribute copies of the
123Work or Derivative Works thereof in any medium, with or without
124modifications, and in Source or Object form, provided that You
125meet the following conditions:
126
127(a) You must give any other recipients of the Work or
128Derivative Works a copy of this License; and
129
130(b) You must cause any modified files to carry prominent notices
131stating that You changed the files; and
132
133(c) You must retain, in the Source form of any Derivative Works
134that You distribute, all copyright, patent, trademark, and
135attribution notices from the Source form of the Work,
136excluding those notices that do not pertain to any part of
137the Derivative Works; and
138
139(d) If the Work includes a "NOTICE" text file as part of its
140distribution, then any Derivative Works that You distribute must
141include a readable copy of the attribution notices contained
142within such NOTICE file, excluding those notices that do not
143pertain to any part of the Derivative Works, in at least one
144of the following places: within a NOTICE text file distributed
145as part of the Derivative Works; within the Source form or
146documentation, if provided along with the Derivative Works; or,
147within a display generated by the Derivative Works, if and
148wherever such third-party notices normally appear. The contents
149of the NOTICE file are for informational purposes only and
150do not modify the License. You may add Your own attribution
151notices within Derivative Works that You distribute, alongside
152or as an addendum to the NOTICE text from the Work, provided
153that such additional attribution notices cannot be construed
154as modifying the License.
155
156You may add Your own copyright statement to Your modifications and
157may provide additional or different license terms and conditions
158for use, reproduction, or distribution of Your modifications, or
159for any such Derivative Works as a whole, provided Your use,
160reproduction, and distribution of the Work otherwise complies with
161the conditions stated in this License.
162
1635. Submission of Contributions. Unless You explicitly state otherwise,
164any Contribution intentionally submitted for inclusion in the Work
165by You to the Licensor shall be under the terms and conditions of
166this License, without any additional terms or conditions.
167Notwithstanding the above, nothing herein shall supersede or modify
168the terms of any separate license agreement you may have executed
169with Licensor regarding such Contributions.
170
1716. Trademarks. This License does not grant permission to use the trade
172names, trademarks, service marks, or product names of the Licensor,
173except as required for reasonable and customary use in describing the
174origin of the Work and reproducing the content of the NOTICE file.
175
1767. Disclaimer of Warranty. Unless required by applicable law or
177agreed to in writing, Licensor provides the Work (and each
178Contributor provides its Contributions) on an "AS IS" BASIS,
179WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
180implied, including, without limitation, any warranties or conditions
181of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
182PARTICULAR PURPOSE. You are solely responsible for determining the
183appropriateness of using or redistributing the Work and assume any
184risks associated with Your exercise of permissions under this License.
185
1868. Limitation of Liability. In no event and under no legal theory,
187whether in tort (including negligence), contract, or otherwise,
188unless required by applicable law (such as deliberate and grossly
189negligent acts) or agreed to in writing, shall any Contributor be
190liable to You for damages, including any direct, indirect, special,
191incidental, or consequential damages of any character arising as a
192result of this License or out of the use or inability to use the
193Work (including but not limited to damages for loss of goodwill,
194work stoppage, computer failure or malfunction, or any and all
195other commercial damages or losses), even if such Contributor
196has been advised of the possibility of such damages.
197
1989. Accepting Warranty or Additional Liability. While redistributing
199the Work or Derivative Works thereof, You may choose to offer,
200and charge a fee for, acceptance of support, warranty, indemnity,
201or other liability obligations and/or rights consistent with this
202License. However, in accepting such obligations, You may act only
203on Your own behalf and on Your sole responsibility, not on behalf
204of any other Contributor, and only if You agree to indemnify,
205defend, and hold each Contributor harmless for any liability
206incurred by, or claims asserted against, such Contributor by reason
207of your accepting any such warranty or additional liability.
208
209END OF TERMS AND CONDITIONS
210
211APPENDIX: How to apply the Apache License to your work.
212
213To apply the Apache License to your work, attach the following
214boilerplate notice, with the fields enclosed by brackets "[]"
215replaced with your own identifying information. (Don't include
216the brackets!) The text should be enclosed in the appropriate
217comment syntax for the file format. We also recommend that a
218file or class name and description of purpose be included on the
219same "printed page" as the copyright notice for easier
220identification within third-party archives.
221
222Copyright 2016-2017 The New York Times Company
223
224Licensed under the Apache License, Version 2.0 (the "License");
225you may not use this file except in compliance with the License.
226You may obtain a copy of the License at
227
228http://www.apache.org/licenses/LICENSE-2.0
229
230Unless required by applicable law or agreed to in writing, software
231distributed under the License is distributed on an "AS IS" BASIS,
232WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
233See the License for the specific language governing permissions and
234limitations under the License.
235
236------------------
237
238Files: s2/cmd/internal/readahead/*
239
240The MIT License (MIT)
241
242Copyright (c) 2015 Klaus Post
243
244Permission is hereby granted, free of charge, to any person obtaining a copy
245of this software and associated documentation files (the "Software"), to deal
246in the Software without restriction, including without limitation the rights
247to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
248copies of the Software, and to permit persons to whom the Software is
249furnished to do so, subject to the following conditions:
250
251The above copyright notice and this permission notice shall be included in all
252copies or substantial portions of the Software.
253
254THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
255IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
256FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
257AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
258LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
259OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
260SOFTWARE.
261
262---------------------
263Files: snappy/*
264Files: internal/snapref/*
265
266Copyright (c) 2011 The Snappy-Go Authors. All rights reserved.
267
268Redistribution and use in source and binary forms, with or without
269modification, are permitted provided that the following conditions are
270met:
271
272* Redistributions of source code must retain the above copyright
273notice, this list of conditions and the following disclaimer.
274* Redistributions in binary form must reproduce the above
275copyright notice, this list of conditions and the following disclaimer
276in the documentation and/or other materials provided with the
277distribution.
278* Neither the name of Google Inc. nor the names of its
279contributors may be used to endorse or promote products derived from
280this software without specific prior written permission.
281
282THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
283"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
284LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
285A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
286OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
287SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
288LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
289DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
290THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
291(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
292OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
293
294-----------------
295
296Files: s2/cmd/internal/filepathx/*
297
298Copyright 2016 The filepathx Authors
299
300Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
301
302The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
303
304THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
305