1.8.0 • Published 2 years ago

scgrid v1.8.0

Weekly downloads
1
License
MIT
Repository
-
Last release
2 years ago

ScGrid SDK

Usage

  • load const scgrid=require('scgrid');
  • create mongoDB store: await scgrid.createStore('mongodb://localhost:27017/db');
  • create instance const instance = new scgrid.ScGrid(username);
  • method available on instance, e.g. await instance.login(password)
  • all methods except download return a Promise

please create mongoDB store at entry file and there is no need to create again in other files

If not store with mongoDB, data will be stored in memory and will lost after program restart

API List

  • login(password, remember = true, validtime = 10)
  • loginOAuth(openid, token)
  • logout()
  • refresh()
  • calcList(appname)
  • jobList()
  • changeJobStatue (gid, statue)
  • jobStatue (gid, callback)
  • deleteJob(gid)
  • jobInfo(gid)
  • submitTask(dataOption)
  • fileList(gid)
  • upload(gid,file)
  • download(gid, file) -> return file stream
1.8.0

2 years ago

1.7.0

5 years ago

1.6.0

6 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.6

7 years ago

1.3.5

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago