LICENSE 16 KB

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