Constructor
new CloudController(endPoint)
Parameters:
Name | Type | Description |
---|---|---|
endPoint |
String | [CC endpoint] |
Methods
getFeaturedFlag(flag) → {JSON}
Get information about a determinated featured flag.
http://apidocs.cloudfoundry.org/214/feature_flags/get_the_diego_docker_feature_flag.html
Parameters:
Name | Type | Description |
---|---|---|
flag |
String | [flag] |
Returns:
[Response]
- Type
- JSON
getFeaturedFlags() → {JSON}
Get information about all featured flags.
http://apidocs.cloudfoundry.org/214/feature_flags/get_all_feature_flags.html
Returns:
[Response]
- Type
- JSON
getInfo() → {JSON}
Get information from Cloud Controller
http://apidocs.cloudfoundry.org/214/info/get_info.html
Returns:
[Return all enabled services to use]
- Type
- JSON
setFeaturedFlag(flag) → {JSON}
Enable a feature flag
http://apidocs.cloudfoundry.org/214/feature_flags/set_a_feature_flag.html
Parameters:
Name | Type | Description |
---|---|---|
flag |
String | [flag to make the request] |
Returns:
[Response]
- Type
- JSON