resource-config v0.4.2
config
configuration management for resources
API
properties
methods
create (options, callback)
get (id, callback)
find (options, callback)
all (callback)
update (options, callback)
updateOrCreate (options, callback)
destroy (id, callback)
start (id, callback)
attach (options, callback)
configuration management for resources
id
- type : any
methods
config.create(options, callback)
create a new config
options
type : object
properties
id
- type : any
callback
- type : function
config.get(id, callback)
get config by id
id
type : any
description : the id of the object
required : true
callback
- type : function
config.find(options, callback)
search for instances of config
options
type : object
properties
id
type : any
default :
required : false
callback
- type : function
config.all(callback)
gets all instances of config
callback
- type : function
config.update(options, callback)
updates a config by id
options
type : object
properties
id
- type : any
callback
- type : function
config.updateOrCreate(options, callback)
updates a config by id, and creates if necessary
options
type : object
properties
id
- type : any
callback
- type : function
config.destroy(id, callback)
destroys a config by id
id
type : string
description : the id of the object
required : true
callback
- type : function
config.start(id, callback)
load configuration options
id
- type : any
callback
- type : function
config.attach(options, callback)
Attach configuration options to the config resource
options
- type : object
callback
- type : function
README auto-generated with docs