0.4.2 • Published 11 years ago

resource-config v0.4.2

Weekly downloads
10
License
-
Repository
-
Last release
11 years ago

config

configuration management for resources

API

properties

methods

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