This repository has been archived by the owner on Feb 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from ibm-developer/development
copy dev to master
- Loading branch information
Showing
14 changed files
with
469 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
'use strict'; | ||
let alertnotification = {} | ||
exports.alertnotification = alertnotification; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
let auth = { | ||
"clientId": "auth-client-id", | ||
"oauthServerUrl": "https://appid-oauth.ng.bluemix.net/oauth/v3/auth-client-id", | ||
"profilesUrl": "https://appid-profiles.ng.bluemix.net", | ||
"secret": "auth-secret", | ||
"tenantId": "auth-tenantId", | ||
"version": "3", | ||
"serviceInfo": { | ||
"label": "auth-label", | ||
"name": "auth-name", | ||
"plan": "auth-plan" | ||
} | ||
} | ||
exports.auth = auth; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
'use strict'; | ||
let cloudant = [ | ||
{ | ||
"url": "https://account.cloudant.com", | ||
"username": "cloudant-username", | ||
"password": "cloudant-password", | ||
"serviceInfo": { | ||
"label": "cloudant-label", | ||
"name": "cloudant-name", | ||
"plan": "cloudant-plan" | ||
} | ||
} | ||
] | ||
exports.cloudant = cloudant; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
'use strict'; | ||
let conversation = { | ||
"url": "https://gateway.watsonplatform.net/conversation/api", | ||
"username": "conversation-username", | ||
"password": "conversation-password", | ||
"serviceInfo": { | ||
"label": "conversation-label", | ||
"name": "conversation-name", | ||
"plan": "conversation-plan" | ||
} | ||
} | ||
exports.conversation = conversation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
'use strict'; | ||
let mongodb = { | ||
"ca_certificate_base64": "BASE64-CERT", | ||
"db_type": "mongodb", | ||
"maps": [], | ||
"name": "bmix-dal-yp-11111111-1111-1111-1111-87d2894a1111", | ||
"uri": "mongodb://admin:PASSCODE@hostname1.dblayer.com:11111,hostname2.dblayer.com:22222/compose?ssl=true&authSource=admin", | ||
"uri_cli": "mongo --ssl --sslAllowInvalidCertificates hostname1.7.dblayer.com:11111/compose --authenticationDatabase admin -u admin -p PASSCODE", | ||
"deployment_id": "1234123412346f001800558a", | ||
"serviceInfo": { | ||
"label": "compose-for-mongodb", | ||
"name": "my-mongodb", | ||
"plan": "Standard" | ||
} | ||
} | ||
exports.mongodb = mongodb; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
'use strict'; | ||
let objectStorage = [ | ||
{ | ||
"auth_url": "https://identity.open.softlayer.com", | ||
"domainId": "object-storage-domainid", | ||
"domainName": "object-storage-domain-name", | ||
"password": "object-storage-password", | ||
"project": "object-storage-project", | ||
"projectId": "object-storage-projectid", | ||
"region": "dallas", | ||
"role": "admin", | ||
"userId": "object-storage-userid", | ||
"username": "object-storage-username", | ||
"serviceInfo": { | ||
"label": "object-storage-label", | ||
"name": "object-storage-name", | ||
"plan": "object-storage-plan" | ||
} | ||
} | ||
] | ||
exports.objectStorage = objectStorage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'use strict'; | ||
let postgresql = { | ||
"db_type": "postgresql", | ||
"uri_cli": "psql \"sslmode=require hostname1.dblayer.com port=11111 dbname=compose user=admin\"", | ||
"uri_cli_1": "psql \"sslmode=require host=hostname2.dblayer.com port=22222 dbname=compose user=admin\"", | ||
"uri_direct_1": "postgres://admin:PASSCODE@hostname.dblayer.com:11111/compose", | ||
"maps": [], | ||
"name": "bmix-dal-yp-11111111-1111-1111-1111-87d2894a1111", | ||
"ca_certificate_base64": "BASE64-CERT", | ||
"uri": "postgres://admin:PASSCODE@sl-us-south-1-portal.7.dblayer.com:22107/compose", | ||
"deployment_id": "1234123412346f001800558a", | ||
"serviceInfo": { | ||
"label": "compose-for-postgresql", | ||
"name": "my-postgresql", | ||
"plan": "Standard" | ||
} | ||
} | ||
exports.postgresql = postgresql; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
'use strict'; | ||
let push = { | ||
"appGuid": "push-app-guid", | ||
"appSecret": "push-app-secret", | ||
"clientSecret": "push-client-secret", | ||
"url":"http://imfpush.BLUEMIX_REGION.bluemix.net/imfpush/v1/apps/APP_GUID", | ||
"serviceInfo": { | ||
"label": "push-label", | ||
"name": "push-name", | ||
"plan": "push-plan" | ||
} | ||
} | ||
exports.push = push; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
let redis= { | ||
"db_type": "redis", | ||
"maps": [], | ||
"name": "bmix-dal-yp-11111111-1111-1111-1111-87d2894a1111", | ||
"uri": "redis://admin:PASSCODE@hostname.dblayer.com:11111", | ||
"uri_cli": "redis-cli -h hostname.dblayer.com -p 11111 -a PASSCODE", | ||
"deployment_id": "1234123412346f001800558a", | ||
"serviceInfo": { | ||
"label": "compose-for-redis", | ||
"name": "my-redis", | ||
"plan": "Standard" | ||
} | ||
} | ||
exports.redis = redis; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
'use strict'; | ||
|
||
// labels for prompt checkbox | ||
const CHECKBOX_ALERT = "alert"; | ||
const CHECKBOX_APPID = "appid"; | ||
const CHECKBOX_CLOUDANT = "cloudant"; | ||
const CHECKBOX_MONGO = "mongo"; | ||
const CHECKBOX_OBJECT_STORAGE = "object storage"; | ||
const CHECKBOX_POSTGRE = "postgre"; | ||
const CHECKBOX_PUSH = "push"; | ||
const CHECKBOX_REDIS = "redis"; | ||
const CHECKBOX_WATSON_CONVERSATION = "watson conversation"; | ||
|
||
// array of labels for easy index lookup | ||
const SERVICE_LABELS= [ | ||
CHECKBOX_ALERT, | ||
CHECKBOX_APPID, | ||
CHECKBOX_CLOUDANT, | ||
CHECKBOX_MONGO, | ||
CHECKBOX_OBJECT_STORAGE, | ||
CHECKBOX_POSTGRE, | ||
CHECKBOX_PUSH, | ||
CHECKBOX_REDIS, | ||
CHECKBOX_WATSON_CONVERSATION | ||
]; | ||
|
||
// checkbox array for prompt | ||
const SERVICE_CHOICES= [ | ||
{"name":CHECKBOX_ALERT}, | ||
{"name":CHECKBOX_APPID}, | ||
{"name":CHECKBOX_CLOUDANT}, | ||
{"name":CHECKBOX_MONGO}, | ||
{"name":CHECKBOX_OBJECT_STORAGE}, | ||
{"name":CHECKBOX_POSTGRE}, | ||
{"name":CHECKBOX_PUSH}, | ||
{"name":CHECKBOX_REDIS}, | ||
{"name":CHECKBOX_WATSON_CONVERSATION} | ||
]; | ||
|
||
/* | ||
keys to select services via generator-ibm-service-enablement. | ||
must match SCAFFOLDER_PROJECT_PROPERTY_NAME value in corresponding | ||
service sub-generator (e.g. service-alert-notification) | ||
*/ | ||
|
||
const SERVICES= [ | ||
"alertnotification", | ||
"auth", | ||
"cloudant", | ||
"mongodb", | ||
"objectStorage", | ||
"postgresql", | ||
"push", | ||
"redis", | ||
"conversation" | ||
]; | ||
|
||
module.exports = { | ||
SERVICE_LABELS, | ||
SERVICE_CHOICES, | ||
SERVICES | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.