Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
5edac92e
Commit
5edac92e
authored
Oct 12, 2017
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add methods to make code more readable
parent
ad703cc7
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
127 additions
and
100 deletions
+127
-100
downloads.html
docs/apidocs/apidocs/downloads.html
+7
-7
json_BenchmarkResult.html
docs/apidocs/apidocs/json_BenchmarkResult.html
+12
-12
json_OwnedObject.html
docs/apidocs/apidocs/json_OwnedObject.html
+1
-1
ns0.xsd
docs/apidocs/apidocs/ns0.xsd
+6
-6
resource_BenchmarkController.html
docs/apidocs/apidocs/resource_BenchmarkController.html
+6
-6
xml_ns0_benchmarkResult.html
docs/apidocs/apidocs/xml_ns0_benchmarkResult.html
+4
-4
downloads.html
docs/apidocs/downloads.html
+7
-7
json_BenchmarkResult.html
docs/apidocs/json_BenchmarkResult.html
+12
-12
json_OwnedObject.html
docs/apidocs/json_OwnedObject.html
+1
-1
ns0.xsd
docs/apidocs/ns0.xsd
+5
-5
resource_BenchmarkController.html
docs/apidocs/resource_BenchmarkController.html
+4
-4
xml_ns0_benchmarkResult.html
docs/apidocs/xml_ns0_benchmarkResult.html
+3
-3
MOG_cardif.yml
docs/input_tosca_files/MOG_cardif.yml
+5
-2
docker_compose_transformer.py
drip_parser/src/transformer/docker_compose_transformer.py
+54
-30
docker_compose_transformer.pyc
drip_parser/src/transformer/docker_compose_transformer.pyc
+0
-0
No files found.
docs/apidocs/apidocs/downloads.html
View file @
5edac92e
...
...
@@ -72,7 +72,7 @@
<h1
class=
"page-header"
>
Files and Libraries
</h1>
<h3
id=
"artifact_gwt_json_overlay"
>
GWT JSON Overlay
</h3>
<p
class=
"lead"
>
Created October 1
0
, 2017
</p>
<p
class=
"lead"
>
Created October 1
1
, 2017
</p>
<p>
<p>
The
<a
href=
"http://code.google.com/webtoolkit/"
>
Google Web Toolkit
</a>
JSON Overlay library provides the JSON Overlays that
can be used to access the Web service API for this application.
...
...
@@ -97,7 +97,7 @@
</tbody>
</table>
<h3
id=
"artifact_java_json_client_library"
>
Java JSON Client Library
</h3>
<p
class=
"lead"
>
Created October 1
0
, 2017
</p>
<p
class=
"lead"
>
Created October 1
1
, 2017
</p>
<p><p>
The Java client-side library is used to provide the set of Java objects that can be serialized
to/from JSON using
<a
href=
"http://jackson.codehaus.org/"
>
Jackson
</a>
. This is useful for accessing the
...
...
@@ -127,7 +127,7 @@
</tbody>
</table>
<h3
id=
"artifact_java_xml_client_library"
>
Java XML Client Library
</h3>
<p
class=
"lead"
>
Created October 1
0
, 2017
</p>
<p
class=
"lead"
>
Created October 1
1
, 2017
</p>
<p><p>
The Java client-side library is used to access the Web service API for this application using Java.
</p>
...
...
@@ -155,7 +155,7 @@
</tbody>
</table>
<h3
id=
"artifact_js_client_library"
>
JavaScript Client Library
</h3>
<p
class=
"lead"
>
Created October 1
0
, 2017
</p>
<p
class=
"lead"
>
Created October 1
1
, 2017
</p>
<p><p>
The JavaScript client-side library defines classes that can be (de)serialized to/from JSON.
This is useful for accessing the resources that are published by this application, but only
...
...
@@ -190,7 +190,7 @@
</tbody>
</table>
<h3
id=
"artifact_php_json_client_library"
>
PHP JSON Client Library
</h3>
<p
class=
"lead"
>
Created October 1
0
, 2017
</p>
<p
class=
"lead"
>
Created October 1
1
, 2017
</p>
<p><p>
The PHP JSON client-side library defines the PHP classes that can be (de)serialized to/from JSON.
This is useful for accessing the resources that are published by this application, but only
...
...
@@ -219,7 +219,7 @@
</tbody>
</table>
<h3
id=
"artifact_php_xml_client_library"
>
PHP XML Client Library
</h3>
<p
class=
"lead"
>
Created October 1
0
, 2017
</p>
<p
class=
"lead"
>
Created October 1
1
, 2017
</p>
<p><p>
The PHP client-side library defines the PHP classes that can be (de)serialized to/from XML.
This is useful for accessing the resources that are published by this application, but only
...
...
@@ -251,7 +251,7 @@
</tbody>
</table>
<h3
id=
"artifact_ruby_json_client_library"
>
Ruby JSON Client Library
</h3>
<p
class=
"lead"
>
Created October 1
0
, 2017
</p>
<p
class=
"lead"
>
Created October 1
1
, 2017
</p>
<p><p>
The Ruby JSON client-side library defines the Ruby classes that can be (de)serialized to/from JSON.
This is useful for accessing the REST endpoints that are published by this application, but only
...
...
docs/apidocs/apidocs/json_BenchmarkResult.html
View file @
5edac92e
...
...
@@ -81,36 +81,36 @@ class</p>
</thead>
<tbody>
<tr>
<td>
<span
class=
"property-name"
>
hos
t
</span>
<td>
<span
class=
"property-name"
>
star
t
</span>
</td>
<td>
<span
class=
"datatype-reference"
>
string
<td>
<span
class=
"datatype-reference"
>
number
</span>
</td>
<td>
<span
class=
"property-description"
></span>
</td>
</tr>
<tr>
<td>
<span
class=
"property-name"
>
start
</span>
<td>
<span
class=
"property-name"
>
vmType
</span>
</td>
<td>
<span
class=
"datatype-reference"
>
number
<td>
<span
class=
"datatype-reference"
>
string
</span>
</td>
<td>
<span
class=
"property-description"
></span>
</td>
</tr>
<tr>
<td>
<span
class=
"property-name"
>
cloudDeploymentDomain
</span>
<td>
<span
class=
"property-name"
>
delta
</span>
</td>
<td>
<span
class=
"datatype-reference"
>
string
<td>
<span
class=
"datatype-reference"
>
number
</span>
</td>
<td>
<span
class=
"property-description"
></span>
</td>
</tr>
<tr>
<td>
<span
class=
"property-name"
>
delta
</span>
<td>
<span
class=
"property-name"
>
host
</span>
</td>
<td>
<span
class=
"datatype-reference"
>
number
<td>
<span
class=
"datatype-reference"
>
string
</span>
</td>
<td>
<span
class=
"property-description"
></span>
...
...
@@ -126,7 +126,7 @@ class</p>
</td>
</tr>
<tr>
<td>
<span
class=
"property-name"
>
vmType
</span>
<td>
<span
class=
"property-name"
>
cloudDeploymentDomain
</span>
</td>
<td>
<span
class=
"datatype-reference"
>
string
</span>
...
...
@@ -165,12 +165,12 @@ object is saved.</span></td>
<p
class=
"lead"
>
Example
</p>
<pre
class=
"prettyprint language-js example"
>
{
"
host
"
:
"
147.228.242.58
"
,
"
start
"
: 12345,
"
cloudDeploymentDomain
"
:
"
us-east-1
"
,
"
vmType
"
:
"
...
"
,
"
delta
"
: 12345,
"
host
"
:
"
147.228.242.58
"
,
"
end
"
: 12345,
"
vmType
"
:
"
...
"
,
"
cloudDeploymentDomain
"
:
"
us-east-1
"
,
"
owner
"
:
"
user1
"
,
"
id
"
:
"
58e3946e0fb4f562d84ba1ad
"
,
"
timestamp
"
: 1499793079011
...
...
docs/apidocs/apidocs/json_OwnedObject.html
View file @
5edac92e
...
...
@@ -69,7 +69,7 @@ class</p>
<dl
class=
"dl-horizontal"
>
<dt>
Subtypes
</dt>
<dd><a
href=
"json_KeyPair.html"
>
KeyPair
</a>
,
<a
href=
"json_
ScaleRequest.html"
>
ScaleRequest
</a>
,
<a
href=
"json_AnsibleOutput.html"
>
AnsibleOutput
</a>
,
<a
href=
"json_CloudCredentials.html"
>
CloudCredentials
</a>
,
<a
href=
"json_BenchmarkResult.html"
>
BenchmarkResult
</a>
,
<a
href=
"json_DeployResponse.html"
>
DeployResponse
</a>
,
<a
href=
"json_ProvisionRequest.html"
>
ProvisionRequest
</a>
,
<a
href=
"json_Script.html"
>
Script
</a>
,
<a
href=
"json_KeyValueHolder.html"
>
KeyValueHolder
</a>
,
<a
href=
"json_DeployRequest.html"
>
DeployRequest
</a>
,
<a
href=
"json_ProvisionResponse.html"
>
ProvisionResponse
</a></dd>
<dd><a
href=
"json_KeyPair.html"
>
KeyPair
</a>
,
<a
href=
"json_
AnsibleOutput.html"
>
AnsibleOutput
</a>
,
<a
href=
"json_ScaleRequest.html"
>
ScaleRequest
</a>
,
<a
href=
"json_BenchmarkResult.html"
>
BenchmarkResult
</a>
,
<a
href=
"json_CloudCredentials.html"
>
CloudCredentials
</a>
,
<a
href=
"json_DeployResponse.html"
>
DeployResponse
</a>
,
<a
href=
"json_ProvisionRequest.html"
>
ProvisionRequest
</a>
,
<a
href=
"json_Script.html"
>
Script
</a>
,
<a
href=
"json_KeyValueHolder.html"
>
KeyValueHolder
</a>
,
<a
href=
"json_DeployRequest.html"
>
DeployRequest
</a>
,
<a
href=
"json_ProvisionResponse.html"
>
ProvisionResponse
</a></dd>
</dl>
<table
class=
"table datatype-properties"
>
...
...
docs/apidocs/apidocs/ns0.xsd
View file @
5edac92e
...
...
@@ -823,17 +823,17 @@ class]]>
<xs:complexContent>
<xs:extension
base=
"ownedObject"
>
<xs:sequence>
<xs:element
name=
"cloudDeploymentDomain"
type=
"xs:string"
minOccurs=
"0"
>
</xs:element>
<xs:element
name=
"delta"
type=
"xs:dateTime"
minOccurs=
"0"
>
<xs:element
name=
"vmType"
type=
"xs:string"
minOccurs=
"0"
>
</xs:element>
<xs:element
name=
"
start"
type=
"xs:dateTime
"
minOccurs=
"0"
>
<xs:element
name=
"
host"
type=
"xs:string
"
minOccurs=
"0"
>
</xs:element>
<xs:element
name=
"end"
type=
"xs:dateTime"
minOccurs=
"0"
>
</xs:element>
<xs:element
name=
"
vmType"
type=
"xs:string
"
minOccurs=
"0"
>
<xs:element
name=
"
start"
type=
"xs:dateTime
"
minOccurs=
"0"
>
</xs:element>
<xs:element
name=
"host"
type=
"xs:string"
minOccurs=
"0"
>
<xs:element
name=
"cloudDeploymentDomain"
type=
"xs:string"
minOccurs=
"0"
>
</xs:element>
<xs:element
name=
"delta"
type=
"xs:dateTime"
minOccurs=
"0"
>
</xs:element>
</xs:sequence>
</xs:extension>
...
...
docs/apidocs/apidocs/resource_BenchmarkController.html
View file @
5edac92e
...
...
@@ -144,12 +144,12 @@ Content-Type: application/json
<code
class=
"prettyprint language-js"
>
[ {
"
host
"
:
"
147.228.242.58
"
,
"
start
"
: 12345,
"
cloudDeploymentDomain
"
:
"
us-east-1
"
,
"
vmType
"
:
"
...
"
,
"
delta
"
: 12345,
"
host
"
:
"
147.228.242.58
"
,
"
end
"
: 12345,
"
vmType
"
:
"
...
"
,
"
cloudDeploymentDomain
"
:
"
us-east-1
"
,
"
owner
"
:
"
user1
"
,
"
id
"
:
"
58e3946e0fb4f562d84ba1ad
"
,
"
timestamp
"
: 1499793079011
...
...
@@ -514,12 +514,12 @@ Content-Type: application/json
<code
class=
"prettyprint language-js"
>
{
"
host
"
:
"
147.228.242.58
"
,
"
start
"
: 12345,
"
cloudDeploymentDomain
"
:
"
us-east-1
"
,
"
vmType
"
:
"
...
"
,
"
delta
"
: 12345,
"
host
"
:
"
147.228.242.58
"
,
"
end
"
: 12345,
"
vmType
"
:
"
...
"
,
"
cloudDeploymentDomain
"
:
"
us-east-1
"
,
"
owner
"
:
"
user1
"
,
"
id
"
:
"
58e3946e0fb4f562d84ba1ad
"
,
"
timestamp
"
: 1499793079011
...
...
docs/apidocs/apidocs/xml_ns0_benchmarkResult.html
View file @
5edac92e
...
...
@@ -231,12 +231,12 @@ the DAO saves the object based on the principal how made the call</span></td>
<p
class=
"lead"
>
Example
</p>
<pre
class=
"prettyprint language-xml example"
>
<
b-----
>
<
cloudDeploymentDomain
>
us-east-1
<
/cloudDeploymentDomain
>
<
delta
>
...
<
/delta
>
<
start
>
...
<
/start
>
<
end
>
...
<
/end
>
<
vmType
>
...
<
/vmType
>
<
host
>
147.228.242.58
<
/host
>
<
end
>
...
<
/end
>
<
start
>
...
<
/start
>
<
cloudDeploymentDomain
>
us-east-1
<
/cloudDeploymentDomain
>
<
delta
>
...
<
/delta
>
<
owner
>
user1
<
/owner
>
<
timestamp
>
1499793079011
<
/timestamp
>
<
/b-----
>
...
...
docs/apidocs/downloads.html
View file @
5edac92e
...
...
@@ -72,7 +72,7 @@
<h1
class=
"page-header"
>
Files and Libraries
</h1>
<h3
id=
"artifact_gwt_json_overlay"
>
GWT JSON Overlay
</h3>
<p
class=
"lead"
>
Created October 1
0
, 2017
</p>
<p
class=
"lead"
>
Created October 1
1
, 2017
</p>
<p>
<p>
The
<a
href=
"http://code.google.com/webtoolkit/"
>
Google Web Toolkit
</a>
JSON Overlay library provides the JSON Overlays that
can be used to access the Web service API for this application.
...
...
@@ -97,7 +97,7 @@
</tbody>
</table>
<h3
id=
"artifact_java_json_client_library"
>
Java JSON Client Library
</h3>
<p
class=
"lead"
>
Created October 1
0
, 2017
</p>
<p
class=
"lead"
>
Created October 1
1
, 2017
</p>
<p><p>
The Java client-side library is used to provide the set of Java objects that can be serialized
to/from JSON using
<a
href=
"http://jackson.codehaus.org/"
>
Jackson
</a>
. This is useful for accessing the
...
...
@@ -127,7 +127,7 @@
</tbody>
</table>
<h3
id=
"artifact_java_xml_client_library"
>
Java XML Client Library
</h3>
<p
class=
"lead"
>
Created October 1
0
, 2017
</p>
<p
class=
"lead"
>
Created October 1
1
, 2017
</p>
<p><p>
The Java client-side library is used to access the Web service API for this application using Java.
</p>
...
...
@@ -155,7 +155,7 @@
</tbody>
</table>
<h3
id=
"artifact_js_client_library"
>
JavaScript Client Library
</h3>
<p
class=
"lead"
>
Created October 1
0
, 2017
</p>
<p
class=
"lead"
>
Created October 1
1
, 2017
</p>
<p><p>
The JavaScript client-side library defines classes that can be (de)serialized to/from JSON.
This is useful for accessing the resources that are published by this application, but only
...
...
@@ -190,7 +190,7 @@
</tbody>
</table>
<h3
id=
"artifact_php_json_client_library"
>
PHP JSON Client Library
</h3>
<p
class=
"lead"
>
Created October 1
0
, 2017
</p>
<p
class=
"lead"
>
Created October 1
1
, 2017
</p>
<p><p>
The PHP JSON client-side library defines the PHP classes that can be (de)serialized to/from JSON.
This is useful for accessing the resources that are published by this application, but only
...
...
@@ -219,7 +219,7 @@
</tbody>
</table>
<h3
id=
"artifact_php_xml_client_library"
>
PHP XML Client Library
</h3>
<p
class=
"lead"
>
Created October 1
0
, 2017
</p>
<p
class=
"lead"
>
Created October 1
1
, 2017
</p>
<p><p>
The PHP client-side library defines the PHP classes that can be (de)serialized to/from XML.
This is useful for accessing the resources that are published by this application, but only
...
...
@@ -251,7 +251,7 @@
</tbody>
</table>
<h3
id=
"artifact_ruby_json_client_library"
>
Ruby JSON Client Library
</h3>
<p
class=
"lead"
>
Created October 1
0
, 2017
</p>
<p
class=
"lead"
>
Created October 1
1
, 2017
</p>
<p><p>
The Ruby JSON client-side library defines the Ruby classes that can be (de)serialized to/from JSON.
This is useful for accessing the REST endpoints that are published by this application, but only
...
...
docs/apidocs/json_BenchmarkResult.html
View file @
5edac92e
...
...
@@ -81,25 +81,25 @@ class</p>
</thead>
<tbody>
<tr>
<td>
<span
class=
"property-name"
>
delta
</span>
<td>
<span
class=
"property-name"
>
vmType
</span>
</td>
<td>
<span
class=
"datatype-reference"
>
number
<td>
<span
class=
"datatype-reference"
>
string
</span>
</td>
<td>
<span
class=
"property-description"
></span>
</td>
</tr>
<tr>
<td>
<span
class=
"property-name"
>
cloudDeploymentDomain
</span>
<td>
<span
class=
"property-name"
>
delta
</span>
</td>
<td>
<span
class=
"datatype-reference"
>
string
<td>
<span
class=
"datatype-reference"
>
number
</span>
</td>
<td>
<span
class=
"property-description"
></span>
</td>
</tr>
<tr>
<td>
<span
class=
"property-name"
>
host
</span>
<td>
<span
class=
"property-name"
>
cloudDeploymentDomain
</span>
</td>
<td>
<span
class=
"datatype-reference"
>
string
</span>
...
...
@@ -108,7 +108,7 @@ class</p>
</td>
</tr>
<tr>
<td>
<span
class=
"property-name"
>
start
</span>
<td>
<span
class=
"property-name"
>
end
</span>
</td>
<td>
<span
class=
"datatype-reference"
>
number
</span>
...
...
@@ -117,18 +117,18 @@ class</p>
</td>
</tr>
<tr>
<td>
<span
class=
"property-name"
>
end
</span>
<td>
<span
class=
"property-name"
>
host
</span>
</td>
<td>
<span
class=
"datatype-reference"
>
number
<td>
<span
class=
"datatype-reference"
>
string
</span>
</td>
<td>
<span
class=
"property-description"
></span>
</td>
</tr>
<tr>
<td>
<span
class=
"property-name"
>
vmType
</span>
<td>
<span
class=
"property-name"
>
start
</span>
</td>
<td>
<span
class=
"datatype-reference"
>
string
<td>
<span
class=
"datatype-reference"
>
number
</span>
</td>
<td>
<span
class=
"property-description"
></span>
...
...
@@ -165,12 +165,12 @@ object is saved.</span></td>
<p
class=
"lead"
>
Example
</p>
<pre
class=
"prettyprint language-js example"
>
{
"
vmType
"
:
"
...
"
,
"
delta
"
: 12345,
"
cloudDeploymentDomain
"
:
"
us-east-1
"
,
"
end
"
: 12345,
"
host
"
:
"
147.228.242.58
"
,
"
start
"
: 12345,
"
end
"
: 12345,
"
vmType
"
:
"
...
"
,
"
owner
"
:
"
user1
"
,
"
id
"
:
"
58e3946e0fb4f562d84ba1ad
"
,
"
timestamp
"
: 1499793079011
...
...
docs/apidocs/json_OwnedObject.html
View file @
5edac92e
...
...
@@ -69,7 +69,7 @@ class</p>
<dl
class=
"dl-horizontal"
>
<dt>
Subtypes
</dt>
<dd><a
href=
"json_KeyPair.html"
>
KeyPair
</a>
,
<a
href=
"json_
AnsibleOutput.html"
>
AnsibleOutput
</a>
,
<a
href=
"json_ScaleRequest.html"
>
ScaleReques
t
</a>
,
<a
href=
"json_CloudCredentials.html"
>
CloudCredentials
</a>
,
<a
href=
"json_BenchmarkResult.html"
>
BenchmarkResult
</a>
,
<a
href=
"json_DeployResponse.html"
>
DeployResponse
</a>
,
<a
href=
"json_ProvisionRequest.html"
>
ProvisionRequest
</a>
,
<a
href=
"json_Script.html"
>
Script
</a>
,
<a
href=
"json_KeyValueHolder.html"
>
KeyValueHolder
</a>
,
<a
href=
"json_DeployRequest.html"
>
DeployRequest
</a>
,
<a
href=
"json_ProvisionResponse.html"
>
ProvisionResponse
</a></dd>
<dd><a
href=
"json_KeyPair.html"
>
KeyPair
</a>
,
<a
href=
"json_
ScaleRequest.html"
>
ScaleRequest
</a>
,
<a
href=
"json_AnsibleOutput.html"
>
AnsibleOutpu
t
</a>
,
<a
href=
"json_CloudCredentials.html"
>
CloudCredentials
</a>
,
<a
href=
"json_BenchmarkResult.html"
>
BenchmarkResult
</a>
,
<a
href=
"json_DeployResponse.html"
>
DeployResponse
</a>
,
<a
href=
"json_ProvisionRequest.html"
>
ProvisionRequest
</a>
,
<a
href=
"json_Script.html"
>
Script
</a>
,
<a
href=
"json_KeyValueHolder.html"
>
KeyValueHolder
</a>
,
<a
href=
"json_DeployRequest.html"
>
DeployRequest
</a>
,
<a
href=
"json_ProvisionResponse.html"
>
ProvisionResponse
</a></dd>
</dl>
<table
class=
"table datatype-properties"
>
...
...
docs/apidocs/ns0.xsd
View file @
5edac92e
...
...
@@ -823,18 +823,18 @@ class]]>
<xs:complexContent>
<xs:extension
base=
"ownedObject"
>
<xs:sequence>
<xs:element
name=
"
cloudDeploymentDomain"
type=
"xs:string
"
minOccurs=
"0"
>
<xs:element
name=
"
delta"
type=
"xs:dateTime
"
minOccurs=
"0"
>
</xs:element>
<xs:element
name=
"
host"
type=
"xs:string
"
minOccurs=
"0"
>
<xs:element
name=
"
start"
type=
"xs:dateTime
"
minOccurs=
"0"
>
</xs:element>
<xs:element
name=
"vmType"
type=
"xs:string"
minOccurs=
"0"
>
</xs:element>
<xs:element
name=
"delta"
type=
"xs:dateTime"
minOccurs=
"0"
>
</xs:element>
<xs:element
name=
"start"
type=
"xs:dateTime"
minOccurs=
"0"
>
<xs:element
name=
"cloudDeploymentDomain"
type=
"xs:string"
minOccurs=
"0"
>
</xs:element>
<xs:element
name=
"end"
type=
"xs:dateTime"
minOccurs=
"0"
>
</xs:element>
<xs:element
name=
"host"
type=
"xs:string"
minOccurs=
"0"
>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
...
...
docs/apidocs/resource_BenchmarkController.html
View file @
5edac92e
...
...
@@ -144,12 +144,12 @@ Content-Type: application/json
<code
class=
"prettyprint language-js"
>
[ {
"
vmType
"
:
"
...
"
,
"
delta
"
: 12345,
"
cloudDeploymentDomain
"
:
"
us-east-1
"
,
"
end
"
: 12345,
"
host
"
:
"
147.228.242.58
"
,
"
start
"
: 12345,
"
end
"
: 12345,
"
vmType
"
:
"
...
"
,
"
owner
"
:
"
user1
"
,
"
id
"
:
"
58e3946e0fb4f562d84ba1ad
"
,
"
timestamp
"
: 1499793079011
...
...
@@ -514,12 +514,12 @@ Content-Type: application/json
<code
class=
"prettyprint language-js"
>
{
"
vmType
"
:
"
...
"
,
"
delta
"
: 12345,
"
cloudDeploymentDomain
"
:
"
us-east-1
"
,
"
end
"
: 12345,
"
host
"
:
"
147.228.242.58
"
,
"
start
"
: 12345,
"
end
"
: 12345,
"
vmType
"
:
"
...
"
,
"
owner
"
:
"
user1
"
,
"
id
"
:
"
58e3946e0fb4f562d84ba1ad
"
,
"
timestamp
"
: 1499793079011
...
...
docs/apidocs/xml_ns0_benchmarkResult.html
View file @
5edac92e
...
...
@@ -231,12 +231,12 @@ the DAO saves the object based on the principal how made the call</span></td>
<p
class=
"lead"
>
Example
</p>
<pre
class=
"prettyprint language-xml example"
>
<
b-----
>
<
cloudDeploymentDomain
>
us-east-1
<
/cloudDeploymentDomain
>
<
host
>
147.228.242.58
<
/host
>
<
vmType
>
...
<
/vmType
>
<
delta
>
...
<
/delta
>
<
start
>
...
<
/start
>
<
vmType
>
...
<
/vmType
>
<
cloudDeploymentDomain
>
us-east-1
<
/cloudDeploymentDomain
>
<
end
>
...
<
/end
>
<
host
>
147.228.242.58
<
/host
>
<
owner
>
user1
<
/owner
>
<
timestamp
>
1499793079011
<
/timestamp
>
<
/b-----
>
...
...
docs/input_tosca_files/MOG_cardif.yml
View file @
5edac92e
...
...
@@ -4,7 +4,7 @@ topology_template:
artifacts
:
"
inputdistributor.cardiff_image"
:
type
:
"
tosca.artifacts.Deployment.Image.Container.Docker"
file
:
null
file
:
"
mogswitch/InputDistributor:1.0"
repository
:
SWITCH_docker_hub
requirements
:
-
host
:
...
...
@@ -46,7 +46,7 @@ topology_template:
artifacts
:
"
inputdistributor.cardiff_image"
:
type
:
"
tosca.artifacts.Deployment.Image.Container.Docker"
file
:
null
file
:
"
mogswitch/InputDistributor:1.0"
repository
:
SWITCH_docker_hub
requirements
:
-
host
:
...
...
@@ -243,6 +243,9 @@ topology_template:
port_mapping_0
:
host_port
:
8085
container_port
:
80
port_mapping_1
:
host_port
:
8086
container_port
:
81
"
849ea5ba-9938-46aa-8d3d-d525f5d87102"
:
type
:
"
Switch.nodes.Application.Connection"
properties
:
...
...
drip_parser/src/transformer/docker_compose_transformer.py
View file @
5edac92e
...
...
@@ -27,54 +27,78 @@ class DockerComposeTransformer:
return
self
.
yaml_dict_tpl
[
'node_types'
]
def
get_docker_types
(
self
):
docker_types
=
[]
docker_types
=
set
([])
node_types
=
self
.
get_node_types
()
for
node_type_key
in
node_types
:
if
node_types
[
node_type_key
]
and
'derived_from'
in
node_types
[
node_type_key
]
.
keys
():
if
node_types
[
node_type_key
][
'derived_from'
]
==
self
.
DOCKER_TYPE
:
docker_types
.
a
ppen
d
(
node_type_key
)
docker_types
.
a
d
d
(
node_type_key
)
return
docker_types
def
get_node_templates
(
self
):
return
self
.
yaml_dict_tpl
[
'topology_template'
][
'node_templates'
]
def
analyze_yaml
(
self
):
docker_types
=
self
.
get_docker_types
()
node_templates
=
self
.
get_node_templates
()
def
get_artifacts
(
self
,
node
):
if
'artifacts'
in
node
:
return
node
[
'artifacts'
]
services
=
{}
for
node_template_key
in
node_templates
:
for
docker_type
in
docker_types
:
if
docker_type
in
node_templates
[
node_template_key
][
'type'
]:
if
'artifacts'
in
node_templates
[
node_template_key
]:
artifacts
=
node_templates
[
node_template_key
][
'artifacts'
]
key
=
next
(
iter
(
artifacts
))
docker_file
=
artifacts
[
key
][
'file'
]
services
[
'name'
]
=
docker_file
services
[
'image'
]
=
docker_file
services
[
'id'
]
=
node_template_key
if
'properties'
in
node_templates
[
node_template_key
]:
properties
=
node_templates
[
node_template_key
][
'properties'
]
def
get_properties
(
self
,
node
):
if
'properties'
in
node
:
return
node
[
'properties'
]
def
get_enviroment_vars
(
self
,
properties
):
environment
=
[]
for
prop
in
properties
:
if
not
isinstance
(
properties
[
prop
],
dict
):
if
properties
[
prop
]
and
not
isinstance
(
properties
[
prop
],
dict
):
environment
.
append
(
prop
+
"="
+
str
(
properties
[
prop
]))
services
[
'environment'
]
=
environment
return
environment
def
get_port_map
(
self
,
properties
):
if
'ports_mapping'
in
properties
:
ports_mappings
=
properties
[
'ports_mapping'
]
key
=
next
(
iter
(
ports_mappings
))
host_port
=
ports_mappings
[
key
][
'host_port'
]
port_maps
=
[]
for
port_map_key
in
ports_mappings
:
host_port
=
ports_mappings
[
port_map_key
][
'host_port'
]
if
not
isinstance
(
host_port
,
(
int
,
long
,
float
,
complex
)):
host_port_var
=
host_port
.
replace
(
'${'
,
''
)
.
replace
(
'}'
,
''
)
host_port
=
properties
[
host_port_var
]
container_port
=
ports_mappings
[
key
][
'container_port'
]
container_port
=
ports_mappings
[
port_map_key
][
'container_port'
]
if
not
isinstance
(
container_port
,
(
int
,
long
,
float
,
complex
)):
container_port_var
=
container_port
.
replace
(
'${'
,
''
)
.
replace
(
'}'
,
''
)
container_port
=
properties
[
container_port_var
]
ports
=
[]
ports
.
append
(
str
(
host_port
)
+
':'
+
str
(
container_port
))
services
[
'ports'
]
=
ports
print
services
port_maps
.
append
(
str
(
host_port
)
+
':'
+
str
(
container_port
))
return
port_maps
def
analyze_yaml
(
self
):
docker_types
=
self
.
get_docker_types
()
node_templates
=
self
.
get_node_templates
()
services
=
[]
for
node_template_key
in
node_templates
:
for
docker_type
in
docker_types
:
if
docker_type
in
node_templates
[
node_template_key
][
'type'
]:
service
=
{}
service
[
'id'
]
=
node_template_key
artifacts
=
self
.
get_artifacts
(
node_templates
[
node_template_key
])
if
artifacts
:
key
=
next
(
iter
(
artifacts
))
docker_file
=
artifacts
[
key
][
'file'
]
service
[
'name'
]
=
docker_file
service
[
'image'
]
=
docker_file
properties
=
self
.
get_properties
(
node_templates
[
node_template_key
])
environment
=
self
.
get_enviroment_vars
(
properties
)
service
[
'environment'
]
=
environment
port_maps
=
self
.
get_port_map
(
properties
)
service
[
'ports'
]
=
port_maps
services
.
append
(
service
)
# print service
break
return
services
def
analize_tosca
():
dockers
=
[]
...
...
drip_parser/src/transformer/docker_compose_transformer.pyc
View file @
5edac92e
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment