LICENSE 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. Eclipse Public License - v 2.0 (EPL-2.0)
  2. This program and the accompanying materials
  3. are made available under the terms of the Eclipse Public License v2.0
  4. and Eclipse Distribution License v1.0 which accompany this distribution.
  5. The Eclipse Public License is available at
  6. https://www.eclipse.org/legal/epl-2.0/
  7. and the Eclipse Distribution License is available at
  8. http://www.eclipse.org/org/documents/edl-v10.php.
  9. For an explanation of what dual-licensing means to you, see:
  10. https://www.eclipse.org/legal/eplfaq.php#DUALLIC
  11. ****
  12. The epl-2.0 is copied below in order to pass the pkg.go.dev license check (https://pkg.go.dev/license-policy).
  13. ****
  14. Eclipse Public License - v 2.0
  15. THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
  16. PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION
  17. OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
  18. 1. DEFINITIONS
  19. "Contribution" means:
  20. a) in the case of the initial Contributor, the initial content
  21. Distributed under this Agreement, and
  22. b) in the case of each subsequent Contributor:
  23. i) changes to the Program, and
  24. ii) additions to the Program;
  25. where such changes and/or additions to the Program originate from
  26. and are Distributed by that particular Contributor. A Contribution
  27. "originates" from a Contributor if it was added to the Program by
  28. such Contributor itself or anyone acting on such Contributor's behalf.
  29. Contributions do not include changes or additions to the Program that
  30. are not Modified Works.
  31. "Contributor" means any person or entity that Distributes the Program.
  32. "Licensed Patents" mean patent claims licensable by a Contributor which
  33. are necessarily infringed by the use or sale of its Contribution alone
  34. or when combined with the Program.
  35. "Program" means the Contributions Distributed in accordance with this
  36. Agreement.
  37. "Recipient" means anyone who receives the Program under this Agreement
  38. or any Secondary License (as applicable), including Contributors.
  39. "Derivative Works" shall mean any work, whether in Source Code or other
  40. form, that is based on (or derived from) the Program and for which the
  41. editorial revisions, annotations, elaborations, or other modifications
  42. represent, as a whole, an original work of authorship.
  43. "Modified Works" shall mean any work in Source Code or other form that
  44. results from an addition to, deletion from, or modification of the
  45. contents of the Program, including, for purposes of clarity any new file
  46. in Source Code form that contains any contents of the Program. Modified
  47. Works shall not include works that contain only declarations,
  48. interfaces, types, classes, structures, or files of the Program solely
  49. in each case in order to link to, bind by name, or subclass the Program
  50. or Modified Works thereof.
  51. "Distribute" means the acts of a) distributing or b) making available
  52. in any manner that enables the transfer of a copy.
  53. "Source Code" means the form of a Program preferred for making
  54. modifications, including but not limited to software source code,
  55. documentation source, and configuration files.
  56. "Secondary License" means either the GNU General Public License,
  57. Version 2.0, or any later versions of that license, including any
  58. exceptions or additional permissions as identified by the initial
  59. Contributor.
  60. 2. GRANT OF RIGHTS
  61. a) Subject to the terms of this Agreement, each Contributor hereby
  62. grants Recipient a non-exclusive, worldwide, royalty-free copyright
  63. license to reproduce, prepare Derivative Works of, publicly display,
  64. publicly perform, Distribute and sublicense the Contribution of such
  65. Contributor, if any, and such Derivative Works.
  66. b) Subject to the terms of this Agreement, each Contributor hereby
  67. grants Recipient a non-exclusive, worldwide, royalty-free patent
  68. license under Licensed Patents to make, use, sell, offer to sell,
  69. import and otherwise transfer the Contribution of such Contributor,
  70. if any, in Source Code or other form. This patent license shall
  71. apply to the combination of the Contribution and the Program if, at
  72. the time the Contribution is added by the Contributor, such addition
  73. of the Contribution causes such combination to be covered by the
  74. Licensed Patents. The patent license shall not apply to any other
  75. combinations which include the Contribution. No hardware per se is
  76. licensed hereunder.
  77. c) Recipient understands that although each Contributor grants the
  78. licenses to its Contributions set forth herein, no assurances are
  79. provided by any Contributor that the Program does not infringe the
  80. patent or other intellectual property rights of any other entity.
  81. Each Contributor disclaims any liability to Recipient for claims
  82. brought by any other entity based on infringement of intellectual
  83. property rights or otherwise. As a condition to exercising the
  84. rights and licenses granted hereunder, each Recipient hereby
  85. assumes sole responsibility to secure any other intellectual
  86. property rights needed, if any. For example, if a third party
  87. patent license is required to allow Recipient to Distribute the
  88. Program, it is Recipient's responsibility to acquire that license
  89. before distributing the Program.
  90. d) Each Contributor represents that to its knowledge it has
  91. sufficient copyright rights in its Contribution, if any, to grant
  92. the copyright license set forth in this Agreement.
  93. e) Notwithstanding the terms of any Secondary License, no
  94. Contributor makes additional grants to any Recipient (other than
  95. those set forth in this Agreement) as a result of such Recipient's
  96. receipt of the Program under the terms of a Secondary License
  97. (if permitted under the terms of Section 3).
  98. 3. REQUIREMENTS
  99. 3.1 If a Contributor Distributes the Program in any form, then:
  100. a) the Program must also be made available as Source Code, in
  101. accordance with section 3.2, and the Contributor must accompany
  102. the Program with a statement that the Source Code for the Program
  103. is available under this Agreement, and informs Recipients how to
  104. obtain it in a reasonable manner on or through a medium customarily
  105. used for software exchange; and
  106. b) the Contributor may Distribute the Program under a license
  107. different than this Agreement, provided that such license:
  108. i) effectively disclaims on behalf of all other Contributors all
  109. warranties and conditions, express and implied, including
  110. warranties or conditions of title and non-infringement, and
  111. implied warranties or conditions of merchantability and fitness
  112. for a particular purpose;
  113. ii) effectively excludes on behalf of all other Contributors all
  114. liability for damages, including direct, indirect, special,
  115. incidental and consequential damages, such as lost profits;
  116. iii) does not attempt to limit or alter the recipients' rights
  117. in the Source Code under section 3.2; and
  118. iv) requires any subsequent distribution of the Program by any
  119. party to be under a license that satisfies the requirements
  120. of this section 3.
  121. 3.2 When the Program is Distributed as Source Code:
  122. a) it must be made available under this Agreement, or if the
  123. Program (i) is combined with other material in a separate file or
  124. files made available under a Secondary License, and (ii) the initial
  125. Contributor attached to the Source Code the notice described in
  126. Exhibit A of this Agreement, then the Program may be made available
  127. under the terms of such Secondary Licenses, and
  128. b) a copy of this Agreement must be included with each copy of
  129. the Program.
  130. 3.3 Contributors may not remove or alter any copyright, patent,
  131. trademark, attribution notices, disclaimers of warranty, or limitations
  132. of liability ("notices") contained within the Program from any copy of
  133. the Program which they Distribute, provided that Contributors may add
  134. their own appropriate notices.
  135. 4. COMMERCIAL DISTRIBUTION
  136. Commercial distributors of software may accept certain responsibilities
  137. with respect to end users, business partners and the like. While this
  138. license is intended to facilitate the commercial use of the Program,
  139. the Contributor who includes the Program in a commercial product
  140. offering should do so in a manner which does not create potential
  141. liability for other Contributors. Therefore, if a Contributor includes
  142. the Program in a commercial product offering, such Contributor
  143. ("Commercial Contributor") hereby agrees to defend and indemnify every
  144. other Contributor ("Indemnified Contributor") against any losses,
  145. damages and costs (collectively "Losses") arising from claims, lawsuits
  146. and other legal actions brought by a third party against the Indemnified
  147. Contributor to the extent caused by the acts or omissions of such
  148. Commercial Contributor in connection with its distribution of the Program
  149. in a commercial product offering. The obligations in this section do not
  150. apply to any claims or Losses relating to any actual or alleged
  151. intellectual property infringement. In order to qualify, an Indemnified
  152. Contributor must: a) promptly notify the Commercial Contributor in
  153. writing of such claim, and b) allow the Commercial Contributor to control,
  154. and cooperate with the Commercial Contributor in, the defense and any
  155. related settlement negotiations. The Indemnified Contributor may
  156. participate in any such claim at its own expense.
  157. For example, a Contributor might include the Program in a commercial
  158. product offering, Product X. That Contributor is then a Commercial
  159. Contributor. If that Commercial Contributor then makes performance
  160. claims, or offers warranties related to Product X, those performance
  161. claims and warranties are such Commercial Contributor's responsibility
  162. alone. Under this section, the Commercial Contributor would have to
  163. defend claims against the other Contributors related to those performance
  164. claims and warranties, and if a court requires any other Contributor to
  165. pay any damages as a result, the Commercial Contributor must pay
  166. those damages.
  167. 5. NO WARRANTY
  168. EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT
  169. PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN "AS IS"
  170. BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR
  171. IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF
  172. TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
  173. PURPOSE. Each Recipient is solely responsible for determining the
  174. appropriateness of using and distributing the Program and assumes all
  175. risks associated with its exercise of rights under this Agreement,
  176. including but not limited to the risks and costs of program errors,
  177. compliance with applicable laws, damage to or loss of data, programs
  178. or equipment, and unavailability or interruption of operations.
  179. 6. DISCLAIMER OF LIABILITY
  180. EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT
  181. PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS
  182. SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  183. EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST
  184. PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  185. CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  186. ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE
  187. EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE
  188. POSSIBILITY OF SUCH DAMAGES.
  189. 7. GENERAL
  190. If any provision of this Agreement is invalid or unenforceable under
  191. applicable law, it shall not affect the validity or enforceability of
  192. the remainder of the terms of this Agreement, and without further
  193. action by the parties hereto, such provision shall be reformed to the
  194. minimum extent necessary to make such provision valid and enforceable.
  195. If Recipient institutes patent litigation against any entity
  196. (including a cross-claim or counterclaim in a lawsuit) alleging that the
  197. Program itself (excluding combinations of the Program with other software
  198. or hardware) infringes such Recipient's patent(s), then such Recipient's
  199. rights granted under Section 2(b) shall terminate as of the date such
  200. litigation is filed.
  201. All Recipient's rights under this Agreement shall terminate if it
  202. fails to comply with any of the material terms or conditions of this
  203. Agreement and does not cure such failure in a reasonable period of
  204. time after becoming aware of such noncompliance. If all Recipient's
  205. rights under this Agreement terminate, Recipient agrees to cease use
  206. and distribution of the Program as soon as reasonably practicable.
  207. However, Recipient's obligations under this Agreement and any licenses
  208. granted by Recipient relating to the Program shall continue and survive.
  209. Everyone is permitted to copy and distribute copies of this Agreement,
  210. but in order to avoid inconsistency the Agreement is copyrighted and
  211. may only be modified in the following manner. The Agreement Steward
  212. reserves the right to publish new versions (including revisions) of
  213. this Agreement from time to time. No one other than the Agreement
  214. Steward has the right to modify this Agreement. The Eclipse Foundation
  215. is the initial Agreement Steward. The Eclipse Foundation may assign the
  216. responsibility to serve as the Agreement Steward to a suitable separate
  217. entity. Each new version of the Agreement will be given a distinguishing
  218. version number. The Program (including Contributions) may always be
  219. Distributed subject to the version of the Agreement under which it was
  220. received. In addition, after a new version of the Agreement is published,
  221. Contributor may elect to Distribute the Program (including its
  222. Contributions) under the new version.
  223. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient
  224. receives no rights or licenses to the intellectual property of any
  225. Contributor under this Agreement, whether expressly, by implication,
  226. estoppel or otherwise. All rights in the Program not expressly granted
  227. under this Agreement are reserved. Nothing in this Agreement is intended
  228. to be enforceable by any entity that is not a Contributor or Recipient.
  229. No third-party beneficiary rights are created under this Agreement.
  230. Exhibit A - Form of Secondary Licenses Notice
  231. "This Source Code may also be made available under the following
  232. Secondary Licenses when the conditions for such availability set forth
  233. in the Eclipse Public License, v. 2.0 are satisfied: {name license(s),
  234. version(s), and exceptions or additional permissions here}."
  235. Simply including a copy of this Agreement, including this Exhibit A
  236. is not sufficient to license the Source Code under Secondary Licenses.
  237. If it is not possible or desirable to put the notice in a particular
  238. file, then You may include the notice in a location (such as a LICENSE
  239. file in a relevant directory) where a recipient would be likely to
  240. look for such a notice.
  241. You may add additional accurate notices of copyright ownership.