File: application.coffee
Defined in: | lib/resin/models |
Method Summary
-
~
(void)
getAll(callback)
Get all applications
resin.models.application.getAll (error, applications) -> throw error if error? console.log(applications)
-
~
(void)
get(id, callback)
Get a single application
resin.models.application.get 51, (error, application) -> throw error if error? console.log(application)
-
~
(void)
create(name, deviceType, callback)
Create an application
resin.models.application.create 'My App', 'raspberry-pi', (error, id) -> throw error if error? console.log(id)
-
~
(void)
remove(id, callback)
Remove application
resin.models.application.remove 51, (error) -> throw error if error?
-
~
(void)
restart(id, callback)
Restart application
resin.models.application.restart 51, (error) -> throw error if error?
Method Details
~
(void)
getAll(callback)
Get all applications
resin.models.application.getAll (error, applications) -> throw error if error? console.log(applications)
~
(void)
get(id, callback)
Get a single application
resin.models.application.get 51, (error, application) -> throw error if error? console.log(application)
~
(void)
create(name, deviceType, callback)
Create an application
resin.models.application.create 'My App', 'raspberry-pi', (error, id) -> throw error if error? console.log(id)
~
(void)
remove(id, callback)
Remove application
resin.models.application.remove 51, (error) -> throw error if error?
~
(void)
restart(id, callback)
Restart application
resin.models.application.restart 51, (error) -> throw error if error?