@itentialopensource/adapter-gogetssl 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +5 -0
- package/.eslintrc.js +18 -0
- package/.jshintrc +3 -0
- package/CHANGELOG.md +9 -0
- package/CODE_OF_CONDUCT.md +48 -0
- package/CONTRIBUTING.md +158 -0
- package/LICENSE +201 -0
- package/README.md +687 -0
- package/adapter.js +5428 -0
- package/adapterBase.js +1028 -0
- package/entities/.generic/action.json +109 -0
- package/entities/.generic/schema.json +23 -0
- package/entities/.system/action.json +50 -0
- package/entities/.system/mockdatafiles/getToken-default.json +3 -0
- package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
- package/entities/.system/schema.json +19 -0
- package/entities/.system/schemaTokenReq.json +53 -0
- package/entities/.system/schemaTokenResp.json +53 -0
- package/entities/Account/action.json +46 -0
- package/entities/Account/mockdatafiles/getAccountBalance-default.json +5 -0
- package/entities/Account/mockdatafiles/getAccountDetails-default.json +18 -0
- package/entities/Account/schema.json +31 -0
- package/entities/CSR/action.json +64 -0
- package/entities/CSR/mockdatafiles/decodeCSR-default.json +6 -0
- package/entities/CSR/mockdatafiles/generateCSR-default.json +5 -0
- package/entities/CSR/schema.json +98 -0
- package/entities/DCV/action.json +84 -0
- package/entities/DCV/mockdatafiles/domainGetFromWhois-default.json +5 -0
- package/entities/DCV/mockdatafiles/getDomainAlternative-default.json +24 -0
- package/entities/DCV/mockdatafiles/getDomainEmails-default.json +5 -0
- package/entities/DCV/mockdatafiles/getDomainEmailsForGeotrust-default.json +10 -0
- package/entities/DCV/schema.json +33 -0
- package/entities/Invoices/action.json +67 -0
- package/entities/Invoices/mockdatafiles/getAllInvoices-default.json +27 -0
- package/entities/Invoices/mockdatafiles/getOrderInvoice-default.json +13 -0
- package/entities/Invoices/mockdatafiles/getUnpaidInvoices-default.json +60 -0
- package/entities/Invoices/schema.json +43 -0
- package/entities/LEI/action.json +127 -0
- package/entities/LEI/mockdatafiles/createNewLEI-default.json +13 -0
- package/entities/LEI/mockdatafiles/getLeiStatus-default.json +5 -0
- package/entities/LEI/schema.json +46 -0
- package/entities/Orders/action.json +249 -0
- package/entities/Orders/mockdatafiles/addSSLOrder-default.json +59 -0
- package/entities/Orders/mockdatafiles/addSSLSANOrder-default.json +10 -0
- package/entities/Orders/mockdatafiles/cancelOrder-default.json +4 -0
- package/entities/Orders/mockdatafiles/comodoClaimFreeEV-default.json +5 -0
- package/entities/Orders/mockdatafiles/getAllSSLOrders-default.json +40 -0
- package/entities/Orders/mockdatafiles/getOrderStatus-default.json +105 -0
- package/entities/Orders/mockdatafiles/getOrdersStatuses-default.json +32 -0
- package/entities/Orders/mockdatafiles/getTotalOrders-default.json +4 -0
- package/entities/Orders/mockdatafiles/getUnpaidOrders-default.json +131 -0
- package/entities/Orders/mockdatafiles/recheckCAA-default.json +5 -0
- package/entities/Orders/schema.json +459 -0
- package/entities/Products/action.json +151 -0
- package/entities/Products/mockdatafiles/getAllProductPrices-default.json +10 -0
- package/entities/Products/mockdatafiles/getAllProducts-default.json +110 -0
- package/entities/Products/mockdatafiles/getProductAgreement-default.json +5 -0
- package/entities/Products/mockdatafiles/getProductPrice-default.json +50 -0
- package/entities/Products/mockdatafiles/getSslProduct-default.json +29 -0
- package/entities/Products/mockdatafiles/getSslProducts-default.json +325 -0
- package/entities/Products/schema.json +47 -0
- package/entities/Validation/action.json +145 -0
- package/entities/Validation/mockdatafiles/changeDcv-default.json +12 -0
- package/entities/Validation/mockdatafiles/changeDomainsValidationMethod-default.json +4 -0
- package/entities/Validation/mockdatafiles/resend-default.json +5 -0
- package/entities/Validation/mockdatafiles/resendValidationEmail-default.json +5 -0
- package/entities/Validation/mockdatafiles/revalidate-default.json +5 -0
- package/entities/Validation/schema.json +91 -0
- package/entities/Webservers/action.json +25 -0
- package/entities/Webservers/mockdatafiles/getWebServers-default.json +149 -0
- package/entities/Webservers/schema.json +41 -0
- package/error.json +184 -0
- package/package.json +83 -0
- package/pronghorn.json +8799 -0
- package/propertiesSchema.json +840 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/creationReport.json +339 -0
- package/report/gogetssl_apimatic_openapi3.json +21135 -0
- package/sampleProperties.json +106 -0
- package/test/integration/adapterTestBasicGet.js +85 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +1746 -0
- package/test/unit/adapterBaseTestUnit.js +944 -0
- package/test/unit/adapterTestUnit.js +4765 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +146 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +224 -0
- package/utils/findPath.js +74 -0
- package/utils/modify.js +154 -0
- package/utils/packModificationScript.js +35 -0
- package/utils/pre-commit.sh +27 -0
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +33 -0
- package/utils/tbScript.js +169 -0
- package/utils/tbUtils.js +445 -0
- package/utils/testRunner.js +298 -0
- package/utils/troubleshootingAdapter.js +190 -0
- package/workflows/README.md +3 -0
package/.eslintignore
ADDED
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
env: {
|
|
3
|
+
browser: true,
|
|
4
|
+
es6: true,
|
|
5
|
+
node: true
|
|
6
|
+
},
|
|
7
|
+
extends: 'airbnb-base',
|
|
8
|
+
plugins: [
|
|
9
|
+
'json'
|
|
10
|
+
],
|
|
11
|
+
parserOptions: {
|
|
12
|
+
sourceType: 'module'
|
|
13
|
+
},
|
|
14
|
+
rules: {
|
|
15
|
+
'max-len': 'warn',
|
|
16
|
+
'comma-dangle': ['error', 'never']
|
|
17
|
+
}
|
|
18
|
+
};
|
package/.jshintrc
ADDED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
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.
|
|
6
|
+
|
|
7
|
+
## Our Standards
|
|
8
|
+
|
|
9
|
+
Examples of behavior that contributes to creating a positive environment include:
|
|
10
|
+
|
|
11
|
+
* Using welcoming and inclusive language
|
|
12
|
+
* Being respectful of differing viewpoints and experiences
|
|
13
|
+
* Gracefully accepting constructive criticism
|
|
14
|
+
* Focusing on what is best for the community
|
|
15
|
+
* Showing empathy towards other community members
|
|
16
|
+
|
|
17
|
+
Examples of unacceptable behavior by participants include:
|
|
18
|
+
|
|
19
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
|
|
20
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
21
|
+
* Public or private harassment
|
|
22
|
+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
|
|
23
|
+
* Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
24
|
+
|
|
25
|
+
## Our Responsibilities
|
|
26
|
+
|
|
27
|
+
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.
|
|
28
|
+
|
|
29
|
+
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.
|
|
30
|
+
|
|
31
|
+
## Scope
|
|
32
|
+
|
|
33
|
+
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.
|
|
34
|
+
|
|
35
|
+
## Enforcement
|
|
36
|
+
|
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [support@itential.com](mailto:support@itential.com). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and 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.
|
|
38
|
+
|
|
39
|
+
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.
|
|
40
|
+
|
|
41
|
+
## Attribution
|
|
42
|
+
|
|
43
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
|
|
44
|
+
|
|
45
|
+
[homepage]: http://contributor-covenant.org
|
|
46
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
|
47
|
+
|
|
48
|
+
_return to [README](../README.md)_
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
:+1: :tada: First off, thanks for taking the time to contribute! :tada: :+1:
|
|
4
|
+
|
|
5
|
+
The following is a set of rules for contributing.
|
|
6
|
+
|
|
7
|
+
## Table Of Contents
|
|
8
|
+
|
|
9
|
+
[Code of Conduct](#code-of-conduct)
|
|
10
|
+
|
|
11
|
+
[How Can I Contribute?](#how-can-i-contribute)
|
|
12
|
+
|
|
13
|
+
* [Reporting Bugs](#reporting-bugs)
|
|
14
|
+
* [Your First Code Contribution](#your-first-code-contribution)
|
|
15
|
+
* [Merge Requests](#merge-requests)
|
|
16
|
+
|
|
17
|
+
[Styleguides](#styleguides)
|
|
18
|
+
|
|
19
|
+
* [Git Commit Messages](#git-commit-messages)
|
|
20
|
+
* [JavaScript Styleguide](#javascript-styleguide)
|
|
21
|
+
* [Tests Styleguide](#tests-styleguide)
|
|
22
|
+
* [Documentation Styleguide](#documentation-styleguide)
|
|
23
|
+
|
|
24
|
+
## Code of Conduct
|
|
25
|
+
|
|
26
|
+
This project and everyone participating in it is governed by the [Code of Conduct](./CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [support@itential.com](mailto:support@itential.com).
|
|
27
|
+
|
|
28
|
+
## How to Contribute
|
|
29
|
+
|
|
30
|
+
### Reporting Bugs
|
|
31
|
+
|
|
32
|
+
This section guides you through submitting a bug report. Following these guidelines helps maintainers understand your report :pencil:, reproduce the behavior :computer: :left_right_arrow: :computer:, and find related reports :mag_right:.
|
|
33
|
+
|
|
34
|
+
Before creating bug reports, please check [this list](#before-submitting-a-bug-report) as you might find out that you don't need to create one. When you are creating a bug report, please [include as many details as possible](#how-do-i-submit-a-good-bug-report). If you have an Itential support contract, please create an Itential Service Desk ticket. If you don't have an Itential support contract, please send an email of the issue to [support@itential.com](mailto:support@itential.com).
|
|
35
|
+
|
|
36
|
+
#### Before Submitting A Bug Report
|
|
37
|
+
|
|
38
|
+
* **Check the [User Guide](README.md).** You might be able to find the cause of the problem and fix things yourself. Most importantly, check if you can reproduce the problem __in the latest version__.
|
|
39
|
+
* **Work through the troubleshooting process.** Troubleshooting will include changing the log level of Itential Automation Platform (IAP) and adapters and checking the logs to see what the issues are. These logs should be included in any ticket you open for this issue.
|
|
40
|
+
* **Check for resolutions to the issue.** Check the [Itential Knowledge Base](https://itential.atlassian.net/servicedesk/customer/kb/view/286883841?applicationId=605994d2-2cb2-3174-af59-ed5b23ff5fd5&spaceKey=PKB&src=1187380921) to see if there is a known resolution for the issue you are having.
|
|
41
|
+
* **Ask around in chat if you are an Itential employee** to see if others are experiencing the same issue.
|
|
42
|
+
|
|
43
|
+
#### How to Submit a (Good) Bug Report
|
|
44
|
+
|
|
45
|
+
Bugs are tracked through the Itential Service Desk. Explain the problem and include additional details to help maintainers reproduce the problem:
|
|
46
|
+
|
|
47
|
+
* **Use a clear and descriptive title** for the issue to identify the problem.
|
|
48
|
+
* **Describe the exact steps which reproduce the problem** in as much detail as possible. For example, start by explaining how you configured the adapter (e.g., which properties you used and how they were set) or how you are using an artifact.
|
|
49
|
+
* **Provide specific examples to demonstrate the steps**. Include logs, or copy/paste snippets, in your examples.
|
|
50
|
+
* **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior.
|
|
51
|
+
* **Explain which behavior you expected to see instead and why.**
|
|
52
|
+
* **Include screenshots and animated GIFs** which show you following the described steps and clearly demonstrate the problem. You can use [this tool](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows. Use [this tool](https://github.com/colinkeenan/silentcast) or [program](https://github.com/rhcarvalho/byzanz-guiz) on Linux.
|
|
53
|
+
* **If the problem wasn't triggered by a specific action**, describe what you were doing before the problem happened and share more information using the guidelines below.
|
|
54
|
+
|
|
55
|
+
Provide more context by answering these questions:
|
|
56
|
+
|
|
57
|
+
* **Did the problem start happening recently** (e.g. after updating to a new version/tag) or was this always a problem?
|
|
58
|
+
* If the problem started happening recently, **can you reproduce the problem in an older version/tag?** What's the most recent version in which the problem does not happen?
|
|
59
|
+
* **Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens.
|
|
60
|
+
|
|
61
|
+
Include details about your configuration and environment:
|
|
62
|
+
|
|
63
|
+
* **Which version of the adapter/artifact are you using?** You can get the exact version by checking the project version in the package.json file.
|
|
64
|
+
* **What's the name and version of the OS you're using**?
|
|
65
|
+
* **Are you running or using IAP in a virtual machine?** If so, which VM software are you using and which operating systems and versions are used for the host and guest?
|
|
66
|
+
* **Are there firewalls between IAP and any other system you are integrating with?** If so, have you tried running curl from the system IAP is on to the other system to verify you have connectivity between the systems?
|
|
67
|
+
|
|
68
|
+
### Your First Code Contribution
|
|
69
|
+
|
|
70
|
+
#### Local development
|
|
71
|
+
|
|
72
|
+
This project can be developed locally on all operating systems. For instructions on how to do this, follow the steps highlighted in the [User Guide](README.md). The [User Guide](README.md)provides many more details on cloning the repository for local development, how to lint and test your changes.
|
|
73
|
+
|
|
74
|
+
#### Development Process
|
|
75
|
+
|
|
76
|
+
The following provides a local copy of the repository along with dependencies.
|
|
77
|
+
|
|
78
|
+
```json
|
|
79
|
+
go to the repository you are interested in working on
|
|
80
|
+
click on the Clone button to get the link(s) you can use to clone the repository
|
|
81
|
+
git clone <link to clone the project>
|
|
82
|
+
npm install
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Prior to making changes you should create a branch to work in. The branch should be named with the type of change (major, minor or patch) and then a Jira issue number or a description of the issue.
|
|
86
|
+
|
|
87
|
+
```json
|
|
88
|
+
git checkout -b <name_of_your_new_branch>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Make all of the desired changes.
|
|
92
|
+
|
|
93
|
+
> **Note:** All code changes should be accompanied by additional Unit and Integration tests to minimize the likelihood that any changes will negatively impact the adapter/artifact as well as to ensure the desired functionality is achieved.
|
|
94
|
+
|
|
95
|
+
| Files | Changes |
|
|
96
|
+
| ------- | ------- |
|
|
97
|
+
| .codeclimate.yml, .eslintignore, .eslintrc.js, .gitignore, .gitlab-ci.yml, .jshintrc, .npmignore | These are foundational files that are used in linting and building of the adapter. Changes to these files are heavily scrutinized and may be implemented in a different manner so that the changes can be implemented across all adapters.|
|
|
98
|
+
| CODE_OF_CONDUCT.md, CONTRIBUTING.md, LICENSE, README.md | These are license and process files for the repository. Changes to these files may require legal review and may also be implemented in a different manner so that the changes can be implemented across all adapters.|
|
|
99
|
+
| utils/*, adapterBase.js | Changes to these files will rarely be accepted. These are process files that need to be changed through the builder process and migration.|
|
|
100
|
+
| adapter.js | Changes to this file are code changes. They should be accompanied by the appropriate unit and integration tests. If new methods are added, they should also be added to the pronghorn.json file, otherwise integration tests are likely to fail.|
|
|
101
|
+
| error.json, propertiesSchema.json | These files are utilized by the Itential Runtime libraries. You can make changes to these files, but the changes should be appending of new errors or properties. Removal of errors and properties can result in rejection of the changes.|
|
|
102
|
+
| pacakge.json, package-lock.json | The package-lock.json is automatically generated and should only be updated when the dependencies inside of the package.json are modified. You can make changes to the package.json to add additional scripts, add new dependencies, modify names, etc. However, changing the scripts or dependencies that are Itential specific will be overriden during the acceptance process.|
|
|
103
|
+
| pronghorn.json | Changes to this file are made for integration into IAP. The most common change here is adding new methods that shoud be exposed to the IAP Workflow.|
|
|
104
|
+
| entities/* | Changes to these files include adding new capabilities, updating existing capabilities, or removing deprecated capabilities in the adapter. Translation configuration can also be modified here.|
|
|
105
|
+
| test/* | Changes to these files include adding, updating, or removing unit and integration tests in the adapter. Tests should never be removed unless the methods that are being tested are removed also. Both the unit and integration test file should have a marker that identifies where modification can take place. Modifications above that marker are likely to be rejected or implemented in a different manner.|
|
|
106
|
+
|
|
107
|
+
> **Note:** It is a best practice to lint and test your code prior to committing changes into the repository. You can lint your code by running **npm run lint** and test it by running **node utils/testRunner.sh**. However, there are pre-commit hooks that will run these scripts when you commit your changes.
|
|
108
|
+
|
|
109
|
+
Commit the changes to the repository.
|
|
110
|
+
|
|
111
|
+
```json
|
|
112
|
+
git commit -a -m "<descriptive message>"
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
> **Note:** There are pre-commit hooks in place. If the pre-commit hooks fail, you will need to address those issues before moving forward.
|
|
116
|
+
|
|
117
|
+
Push the changes into the repository. This should only be done after the commit has successfully completed.
|
|
118
|
+
|
|
119
|
+
```json
|
|
120
|
+
git push origin <name_of_your_new_branch>
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Create a [Merge Request](#merge-request).
|
|
124
|
+
|
|
125
|
+
### Merge Requests
|
|
126
|
+
|
|
127
|
+
* Fill out the provided merge request template.
|
|
128
|
+
* Reference related issues and merge requests liberally.
|
|
129
|
+
* Include screenshots and animated GIFs in your merge request whenever possible.
|
|
130
|
+
* Follow the project [Styleguide](#styleguides).
|
|
131
|
+
* End all files with a newline.
|
|
132
|
+
|
|
133
|
+
## Styleguide
|
|
134
|
+
|
|
135
|
+
### Git Commit Messages
|
|
136
|
+
|
|
137
|
+
* Use the present tense ("Add feature" not "Added feature")
|
|
138
|
+
* Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
|
|
139
|
+
* Consider starting the commit message with an applicable emoji _(not required)_:
|
|
140
|
+
* :art: `:art:` When improving the format/structure of the code.
|
|
141
|
+
* :racehorse: `:racehorse:` When improving performance
|
|
142
|
+
* :non-potable_water: `:non-potable_water:` When plugging memory leaks.
|
|
143
|
+
* :memo: `:memo:` When writing documentation.
|
|
144
|
+
* :penguin: `:penguin:` When fixing something on Linux.
|
|
145
|
+
* :apple: `:apple:` When fixing something on macOS.
|
|
146
|
+
* :checkered_flag: `:checkered_flag:` When fixing something on Windows.
|
|
147
|
+
* :bug: `:bug:` When fixing a bug.
|
|
148
|
+
* :fire: `:fire:` When removing code or files.
|
|
149
|
+
* :green_heart: `:green_heart:` When fixing the CI build.
|
|
150
|
+
* :white_check_mark: `:white_check_mark:` When adding tests,
|
|
151
|
+
* :lock: `:lock:` When dealing with security.
|
|
152
|
+
* :arrow_up: `:arrow_up:` When upgrading dependencies.
|
|
153
|
+
* :arrow_down: `:arrow_down:` When downgrading dependencies.
|
|
154
|
+
* :shirt: `:shirt:` When removing linter warnings.
|
|
155
|
+
|
|
156
|
+
__Avoid installing unnecessary packages.__ Do not install packages just because they might be "nice to have". Itential Opensource projects are supposed to be minimal, specific, and compact by design.
|
|
157
|
+
|
|
158
|
+
_return to [README](./README.md)_
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2019 Itential, LLC
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|