diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000000..824e9fb274 --- /dev/null +++ b/AUTHORS @@ -0,0 +1,6 @@ +# This is the list of Terraformer authors for copyright purposes. +# +# This does not necessarily list everyone who has contributed code, since in +# some cases, their employer may be the copyright holder. To see the full list +# of contributors, see the revision history in source control. +Sergey Lanzman \ No newline at end of file diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000000..7a88d5253e --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,46 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at jaq@google.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] + +[homepage]: http://contributor-covenant.org +[version]: http://contributor-covenant.org/version/1/4/ \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000000..ebbb59e531 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,28 @@ +# How to Contribute + +We'd love to accept your patches and contributions to this project. There are +just a few small guidelines you need to follow. + +## Contributor License Agreement + +Contributions to this project must be accompanied by a Contributor License +Agreement. You (or your employer) retain the copyright to your contribution; +this simply gives us permission to use and redistribute your contributions as +part of the project. Head over to to see +your current agreements on file or to sign a new one. + +You generally only need to submit a CLA once, so if you've already submitted one +(even if it was for a different project), you probably don't need to do it +again. + +## Code reviews + +All submissions, including submissions by project members, require review. We +use GitHub pull requests for this purpose. Consult +[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more +information on using pull requests. + +## Community Guidelines + +This project follows +[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/). \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000..7a4a3ea242 --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + 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. \ No newline at end of file diff --git a/aws_terraforming/aws.go b/aws_terraforming/aws.go index f76a5f75d3..ac984479a1 100644 --- a/aws_terraforming/aws.go +++ b/aws_terraforming/aws.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 aws_terraforming import ( diff --git a/aws_terraforming/aws_generator/basic.go b/aws_terraforming/aws_generator/basic.go index cc8cab550c..e622829587 100644 --- a/aws_terraforming/aws_generator/basic.go +++ b/aws_terraforming/aws_generator/basic.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 aws_generator import "waze/terraformer/terraform_utils" diff --git a/aws_terraforming/elb/elb.go b/aws_terraforming/elb/elb.go index 5420697ab5..abb70fd895 100644 --- a/aws_terraforming/elb/elb.go +++ b/aws_terraforming/elb/elb.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 elb import ( diff --git a/aws_terraforming/iam/iam.go b/aws_terraforming/iam/iam.go index b8ba4777b4..41df304327 100644 --- a/aws_terraforming/iam/iam.go +++ b/aws_terraforming/iam/iam.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 iam import ( diff --git a/aws_terraforming/igw/igw.go b/aws_terraforming/igw/igw.go index 91680c043a..c9f2992f47 100644 --- a/aws_terraforming/igw/igw.go +++ b/aws_terraforming/igw/igw.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 igw import ( diff --git a/aws_terraforming/nacl/nacl.go b/aws_terraforming/nacl/nacl.go index 46db805f4c..f4e7a7b196 100644 --- a/aws_terraforming/nacl/nacl.go +++ b/aws_terraforming/nacl/nacl.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 nacl import ( diff --git a/aws_terraforming/route53/route53.go b/aws_terraforming/route53/route53.go index b2b95ea4c4..a971013479 100644 --- a/aws_terraforming/route53/route53.go +++ b/aws_terraforming/route53/route53.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 route53 import ( diff --git a/aws_terraforming/s3/s3.go b/aws_terraforming/s3/s3.go index 5227dc375b..25418d4110 100644 --- a/aws_terraforming/s3/s3.go +++ b/aws_terraforming/s3/s3.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 s3 import ( diff --git a/aws_terraforming/sg/sg.go b/aws_terraforming/sg/sg.go index 3e29dfa989..369b809338 100644 --- a/aws_terraforming/sg/sg.go +++ b/aws_terraforming/sg/sg.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 sg import ( diff --git a/aws_terraforming/subnet/subnet.go b/aws_terraforming/subnet/subnet.go index 412fb239d2..72b27198e4 100644 --- a/aws_terraforming/subnet/subnet.go +++ b/aws_terraforming/subnet/subnet.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 subnet import ( diff --git a/aws_terraforming/vpc/vpc.go b/aws_terraforming/vpc/vpc.go index 5884777da4..3abda98e18 100644 --- a/aws_terraforming/vpc/vpc.go +++ b/aws_terraforming/vpc/vpc.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 vpc import ( diff --git a/aws_terraforming/vpn_connection/vpn_connetion.go b/aws_terraforming/vpn_connection/vpn_connetion.go index 54b44be53b..bba0b674b3 100644 --- a/aws_terraforming/vpn_connection/vpn_connetion.go +++ b/aws_terraforming/vpn_connection/vpn_connetion.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 vpn_connection import ( diff --git a/aws_terraforming/vpn_gateway/vgw.go b/aws_terraforming/vpn_gateway/vgw.go index 5aa7e267c4..3db946da2c 100644 --- a/aws_terraforming/vpn_gateway/vgw.go +++ b/aws_terraforming/vpn_gateway/vgw.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 vpn_gateway import ( diff --git a/gcp_terraforming/alerts/alert.go b/gcp_terraforming/alerts/alert.go index c4f0c6b5b7..5e0d9dc777 100644 --- a/gcp_terraforming/alerts/alert.go +++ b/gcp_terraforming/alerts/alert.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 alerts import ( diff --git a/gcp_terraforming/clouddns/clouddns.go b/gcp_terraforming/clouddns/clouddns.go index b7cb1813a9..9fae91c789 100644 --- a/gcp_terraforming/clouddns/clouddns.go +++ b/gcp_terraforming/clouddns/clouddns.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 clouddns import ( diff --git a/gcp_terraforming/compute_resources/addresses.go b/gcp_terraforming/compute_resources/addresses.go index 737c879275..5cdb5865dd 100755 --- a/gcp_terraforming/compute_resources/addresses.go +++ b/gcp_terraforming/compute_resources/addresses.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/autoscalers.go b/gcp_terraforming/compute_resources/autoscalers.go index 8bdbf8aad9..458e509775 100755 --- a/gcp_terraforming/compute_resources/autoscalers.go +++ b/gcp_terraforming/compute_resources/autoscalers.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/backendBuckets.go b/gcp_terraforming/compute_resources/backendBuckets.go index 1b679b32c1..9430837e6c 100755 --- a/gcp_terraforming/compute_resources/backendBuckets.go +++ b/gcp_terraforming/compute_resources/backendBuckets.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/backendServices.go b/gcp_terraforming/compute_resources/backendServices.go index 263a89cc68..af0e0031b9 100755 --- a/gcp_terraforming/compute_resources/backendServices.go +++ b/gcp_terraforming/compute_resources/backendServices.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/compute.go b/gcp_terraforming/compute_resources/compute.go index 475c517293..e35569268b 100755 --- a/gcp_terraforming/compute_resources/compute.go +++ b/gcp_terraforming/compute_resources/compute.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/disks.go b/gcp_terraforming/compute_resources/disks.go index 3352fa2e14..8b4c7455ae 100755 --- a/gcp_terraforming/compute_resources/disks.go +++ b/gcp_terraforming/compute_resources/disks.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/firewalls.go b/gcp_terraforming/compute_resources/firewalls.go index da6fc55c64..f692483e11 100755 --- a/gcp_terraforming/compute_resources/firewalls.go +++ b/gcp_terraforming/compute_resources/firewalls.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/forwardingRules.go b/gcp_terraforming/compute_resources/forwardingRules.go index 1a70d1ff4f..40119ef5a4 100755 --- a/gcp_terraforming/compute_resources/forwardingRules.go +++ b/gcp_terraforming/compute_resources/forwardingRules.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/gcp_compute_code_generator/backendServices.go b/gcp_terraforming/compute_resources/gcp_compute_code_generator/backendServices.go index 791dc6db92..a32ac09e58 100644 --- a/gcp_terraforming/compute_resources/gcp_compute_code_generator/backendServices.go +++ b/gcp_terraforming/compute_resources/gcp_compute_code_generator/backendServices.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 type backendServices struct { diff --git a/gcp_terraforming/compute_resources/gcp_compute_code_generator/basicGcpResource.go b/gcp_terraforming/compute_resources/gcp_compute_code_generator/basicGcpResource.go index a8002fadf2..e2ab699d1f 100644 --- a/gcp_terraforming/compute_resources/gcp_compute_code_generator/basicGcpResource.go +++ b/gcp_terraforming/compute_resources/gcp_compute_code_generator/basicGcpResource.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 type gcpResourceRenderble interface { diff --git a/gcp_terraforming/compute_resources/gcp_compute_code_generator/globalForwardingRules.go b/gcp_terraforming/compute_resources/gcp_compute_code_generator/globalForwardingRules.go index 14781be21e..e22a0b4343 100644 --- a/gcp_terraforming/compute_resources/gcp_compute_code_generator/globalForwardingRules.go +++ b/gcp_terraforming/compute_resources/gcp_compute_code_generator/globalForwardingRules.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 type globalForwardingRules struct { diff --git a/gcp_terraforming/compute_resources/gcp_compute_code_generator/instanceGroupManagers.go b/gcp_terraforming/compute_resources/gcp_compute_code_generator/instanceGroupManagers.go index a7a8321e32..ca1682bce3 100644 --- a/gcp_terraforming/compute_resources/gcp_compute_code_generator/instanceGroupManagers.go +++ b/gcp_terraforming/compute_resources/gcp_compute_code_generator/instanceGroupManagers.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 type instanceGroupManagers struct { diff --git a/gcp_terraforming/compute_resources/gcp_compute_code_generator/instances.go b/gcp_terraforming/compute_resources/gcp_compute_code_generator/instances.go index 7e97f6c687..9f30100f31 100644 --- a/gcp_terraforming/compute_resources/gcp_compute_code_generator/instances.go +++ b/gcp_terraforming/compute_resources/gcp_compute_code_generator/instances.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 type instances struct { diff --git a/gcp_terraforming/compute_resources/gcp_compute_code_generator/main.go b/gcp_terraforming/compute_resources/gcp_compute_code_generator/main.go index d3c4920f58..997ad4eb1a 100644 --- a/gcp_terraforming/compute_resources/gcp_compute_code_generator/main.go +++ b/gcp_terraforming/compute_resources/gcp_compute_code_generator/main.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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/gcp_terraforming/compute_resources/gcp_compute_code_generator/resources.go b/gcp_terraforming/compute_resources/gcp_compute_code_generator/resources.go index 7bb72de360..b869211f4d 100644 --- a/gcp_terraforming/compute_resources/gcp_compute_code_generator/resources.go +++ b/gcp_terraforming/compute_resources/gcp_compute_code_generator/resources.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 // metadata for generate code for GCP compute service diff --git a/gcp_terraforming/compute_resources/globalAddresses.go b/gcp_terraforming/compute_resources/globalAddresses.go index 6efd87d18c..b4199e4ca7 100755 --- a/gcp_terraforming/compute_resources/globalAddresses.go +++ b/gcp_terraforming/compute_resources/globalAddresses.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/globalForwardingRules.go b/gcp_terraforming/compute_resources/globalForwardingRules.go index b54a575eb5..2fde1bed0a 100755 --- a/gcp_terraforming/compute_resources/globalForwardingRules.go +++ b/gcp_terraforming/compute_resources/globalForwardingRules.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/healthChecks.go b/gcp_terraforming/compute_resources/healthChecks.go index b834421f1a..2d62def24a 100755 --- a/gcp_terraforming/compute_resources/healthChecks.go +++ b/gcp_terraforming/compute_resources/healthChecks.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/httpHealthChecks.go b/gcp_terraforming/compute_resources/httpHealthChecks.go index 946bc2b08a..41f5273e6b 100755 --- a/gcp_terraforming/compute_resources/httpHealthChecks.go +++ b/gcp_terraforming/compute_resources/httpHealthChecks.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/httpsHealthChecks.go b/gcp_terraforming/compute_resources/httpsHealthChecks.go index 4dd00b12ab..58668cf613 100755 --- a/gcp_terraforming/compute_resources/httpsHealthChecks.go +++ b/gcp_terraforming/compute_resources/httpsHealthChecks.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/images.go b/gcp_terraforming/compute_resources/images.go index 146ea173d4..07fd75e716 100755 --- a/gcp_terraforming/compute_resources/images.go +++ b/gcp_terraforming/compute_resources/images.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/instanceGroupManagers.go b/gcp_terraforming/compute_resources/instanceGroupManagers.go index 5f35dce385..c7a5f3ed41 100755 --- a/gcp_terraforming/compute_resources/instanceGroupManagers.go +++ b/gcp_terraforming/compute_resources/instanceGroupManagers.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/instanceGroups.go b/gcp_terraforming/compute_resources/instanceGroups.go index a891006f8f..02a395b825 100755 --- a/gcp_terraforming/compute_resources/instanceGroups.go +++ b/gcp_terraforming/compute_resources/instanceGroups.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/instanceTemplates.go b/gcp_terraforming/compute_resources/instanceTemplates.go index b69cdd3279..cb8a039fcd 100755 --- a/gcp_terraforming/compute_resources/instanceTemplates.go +++ b/gcp_terraforming/compute_resources/instanceTemplates.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/instances.go b/gcp_terraforming/compute_resources/instances.go index ccd99b5f2c..198de1c980 100755 --- a/gcp_terraforming/compute_resources/instances.go +++ b/gcp_terraforming/compute_resources/instances.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/networks.go b/gcp_terraforming/compute_resources/networks.go index 41bf863747..3d320cccbe 100755 --- a/gcp_terraforming/compute_resources/networks.go +++ b/gcp_terraforming/compute_resources/networks.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/regionAutoscalers.go b/gcp_terraforming/compute_resources/regionAutoscalers.go index ba9b000a30..e542af72fd 100755 --- a/gcp_terraforming/compute_resources/regionAutoscalers.go +++ b/gcp_terraforming/compute_resources/regionAutoscalers.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/regionBackendServices.go b/gcp_terraforming/compute_resources/regionBackendServices.go index ed5dc77eaf..8d7b281907 100755 --- a/gcp_terraforming/compute_resources/regionBackendServices.go +++ b/gcp_terraforming/compute_resources/regionBackendServices.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/regionDisks.go b/gcp_terraforming/compute_resources/regionDisks.go index d5ec1ab16c..2512c04a59 100755 --- a/gcp_terraforming/compute_resources/regionDisks.go +++ b/gcp_terraforming/compute_resources/regionDisks.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/regionInstanceGroupManagers.go b/gcp_terraforming/compute_resources/regionInstanceGroupManagers.go index aa048e48d2..f3ae04236e 100755 --- a/gcp_terraforming/compute_resources/regionInstanceGroupManagers.go +++ b/gcp_terraforming/compute_resources/regionInstanceGroupManagers.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/routers.go b/gcp_terraforming/compute_resources/routers.go index bec1c0f879..b0ac30fe6e 100755 --- a/gcp_terraforming/compute_resources/routers.go +++ b/gcp_terraforming/compute_resources/routers.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/routes.go b/gcp_terraforming/compute_resources/routes.go index 4acd292505..74992e4e34 100755 --- a/gcp_terraforming/compute_resources/routes.go +++ b/gcp_terraforming/compute_resources/routes.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/securityPolicies.go b/gcp_terraforming/compute_resources/securityPolicies.go index 338adbf95f..afb24391f3 100755 --- a/gcp_terraforming/compute_resources/securityPolicies.go +++ b/gcp_terraforming/compute_resources/securityPolicies.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/sslPolicies.go b/gcp_terraforming/compute_resources/sslPolicies.go index dd7d5583cd..edd3d53d65 100755 --- a/gcp_terraforming/compute_resources/sslPolicies.go +++ b/gcp_terraforming/compute_resources/sslPolicies.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/subnetworks.go b/gcp_terraforming/compute_resources/subnetworks.go index 5677a8092c..bb24e70cf8 100755 --- a/gcp_terraforming/compute_resources/subnetworks.go +++ b/gcp_terraforming/compute_resources/subnetworks.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/targetHttpProxies.go b/gcp_terraforming/compute_resources/targetHttpProxies.go index 5c4a43a868..692a7645fb 100755 --- a/gcp_terraforming/compute_resources/targetHttpProxies.go +++ b/gcp_terraforming/compute_resources/targetHttpProxies.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/targetHttpsProxies.go b/gcp_terraforming/compute_resources/targetHttpsProxies.go index 24dc09e9fc..7113bd4770 100755 --- a/gcp_terraforming/compute_resources/targetHttpsProxies.go +++ b/gcp_terraforming/compute_resources/targetHttpsProxies.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/targetSslProxies.go b/gcp_terraforming/compute_resources/targetSslProxies.go index 817f5c8710..b9950208ed 100755 --- a/gcp_terraforming/compute_resources/targetSslProxies.go +++ b/gcp_terraforming/compute_resources/targetSslProxies.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/targetTcpProxies.go b/gcp_terraforming/compute_resources/targetTcpProxies.go index 7af609ae4e..d1d5a17427 100755 --- a/gcp_terraforming/compute_resources/targetTcpProxies.go +++ b/gcp_terraforming/compute_resources/targetTcpProxies.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/urlMaps.go b/gcp_terraforming/compute_resources/urlMaps.go index 8c16352223..3df2630c07 100755 --- a/gcp_terraforming/compute_resources/urlMaps.go +++ b/gcp_terraforming/compute_resources/urlMaps.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/compute_resources/vpnTunnels.go b/gcp_terraforming/compute_resources/vpnTunnels.go index 36458731e0..133272664a 100755 --- a/gcp_terraforming/compute_resources/vpnTunnels.go +++ b/gcp_terraforming/compute_resources/vpnTunnels.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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. + // AUTO-GENERATED CODE. DO NOT EDIT. package computeTerrforming diff --git a/gcp_terraforming/gcp.go b/gcp_terraforming/gcp.go index e21152620c..c722cddcff 100644 --- a/gcp_terraforming/gcp.go +++ b/gcp_terraforming/gcp.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 gcp_terraforming import ( diff --git a/gcp_terraforming/gcp_generator/basic.go b/gcp_terraforming/gcp_generator/basic.go index 8eebd91ae7..4e7c7e4cf1 100644 --- a/gcp_terraforming/gcp_generator/basic.go +++ b/gcp_terraforming/gcp_generator/basic.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 gcp_generator import "waze/terraformer/terraform_utils" diff --git a/gcp_terraforming/gcs/gcs.go b/gcp_terraforming/gcs/gcs.go index 7f925158cc..bb1749038f 100644 --- a/gcp_terraforming/gcs/gcs.go +++ b/gcp_terraforming/gcs/gcs.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 gcs import ( diff --git a/gcp_terraforming/iam/iam.go b/gcp_terraforming/iam/iam.go index 00dd8c348e..a9d490684e 100644 --- a/gcp_terraforming/iam/iam.go +++ b/gcp_terraforming/iam/iam.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 iam import ( diff --git a/main.go b/main.go index 5dd62fddbd..fa79b97922 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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/terraform_utils/hcl.go b/terraform_utils/hcl.go index 7c53c400b7..328859b2d4 100644 --- a/terraform_utils/hcl.go +++ b/terraform_utils/hcl.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 terraform_utils import ( @@ -12,6 +26,8 @@ import ( hcl_parcer "github.com/hashicorp/hcl/json/parser" ) +// Copy code from https://github.com/kubernetes/kops project with few changes for support many provider and heredoc + const safeChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_" // sanitizer fixes up an invalid HCL AST, as produced by the HCL parser for JSON diff --git a/terraform_utils/resource_metadata.go b/terraform_utils/resource_metadata.go index 2ff9f4652a..79d12defb3 100644 --- a/terraform_utils/resource_metadata.go +++ b/terraform_utils/resource_metadata.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 terraform_utils type ResourceMetaData struct { diff --git a/terraform_utils/terraform_resource.go b/terraform_utils/terraform_resource.go index 5aa42ab195..0c29a9a909 100644 --- a/terraform_utils/terraform_resource.go +++ b/terraform_utils/terraform_resource.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 terraform_utils type TerraformResource struct { diff --git a/terraform_utils/tfstate_converter.go b/terraform_utils/tfstate_converter.go index af960a33c9..69da185433 100644 --- a/terraform_utils/tfstate_converter.go +++ b/terraform_utils/tfstate_converter.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 terraform_utils import ( diff --git a/terraform_utils/tfstate_converter_test.go b/terraform_utils/tfstate_converter_test.go index ef7cc73855..2c61aee52e 100644 --- a/terraform_utils/tfstate_converter_test.go +++ b/terraform_utils/tfstate_converter_test.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 terraform_utils import ( diff --git a/terraform_utils/utils.go b/terraform_utils/utils.go index 84876448f3..03fc463f1c 100644 --- a/terraform_utils/utils.go +++ b/terraform_utils/utils.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 terraform_utils import ( @@ -28,11 +42,10 @@ func GenerateTfState(resources []TerraformResource) error { return err } // use plugins from os.Getenv("HOME") + "/.terraform.d" - meta := command.Meta{ + c := command.RefreshCommand{Meta: command.Meta{ OverrideDataDir: os.Getenv("HOME") + "/.terraform.d", Ui: cli.Ui(&cli.ConcurrentUi{Ui: &cli.BasicUi{Writer: os.Stdout}}), - } - c := command.RefreshCommand{Meta: meta} + }} path, _ := os.Getwd() mod, _ := c.Module(path) @@ -49,8 +62,8 @@ func GenerateTfState(resources []TerraformResource) error { } opReq := c.Operation() - opReq.Type = backend.OperationTypeRefresh opReq.Module = mod + opReq.Type = backend.OperationTypeRefresh op, err := c.RunOperation(b, opReq) if err != nil { return err diff --git a/tests/aws/main.go b/tests/aws/main.go index 58597896fe..365fce0596 100644 --- a/tests/aws/main.go +++ b/tests/aws/main.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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/tests/gcp/main.go b/tests/gcp/main.go index dcde4b5e0c..b61ba1df6e 100644 --- a/tests/gcp/main.go +++ b/tests/gcp/main.go @@ -1,3 +1,17 @@ +// Copyright 2018 The Terraformer Authors. +// +// 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 (