cloudfoundry-services

0.0.3 • Public • Published

cloudfoundry-services

Is a helper library to parse the VCAP_SERVICES env variables

to facilitate easy interaction with bound services in Cloud Foundry

Constructor:

cfServices(serviceName, instanceName/*optional (string or regex)*/, vcap/*optional*/)

Available method calls:

getServiceVariables() - returns the vcap object

findAllInstances() - returns ALL service instances matching 'serviceName'

findMatchingInstances() - returns ALL service instance matching 'serviceName' & 'instanceName'

findFirstInstance() - returns FIRST service instance matching 'serviceName' & 'instanceName'

findFirstCredential() - returns the FIRST service instance credentials object matching 'serviceName' & 'instanceName'

findAllCredentials() - returns ALL service instance credentials objects matching 'serviceName'

findMatchingCredentials() - returns ALL service instance credentials objects matching 'serviceName' & 'instanceName'

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    1
    • 9d5019f1a220860d6e7fb95ca1a599887bf8de20
  • 0.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    1
  • 0.0.3
    1
  • 0.0.2
    1

Package Sidebar

Install

npm i cloudfoundry-services

Weekly Downloads

3

Version

0.0.3

License

none

Last publish

Collaborators

  • xchapter7x