@goofmint/dok-sdk
v0.0.3
Published
Dok SDK
Readme
DOK SDK
SDK for DOK that is container GPU cloud service.
Usage
npm install @goofmint/dok-sdkTest
npm testSupported API
- Tasks
- [x] Get tasks
- [x] Get task
- [ ] Create task
- [ ] Delete task
- [ ] Cancel task
- [ ] Get download URL
- [ ] Get log stream websocket URL
- Container Registry
- [ ] Get container registries
- [ ] Get container registry
- [ ] Create container registry
- [ ] Delete container registry
- [ ] Update container registry
- Artifacts
- [x] Get artifacts
- [ ] Get artifact
- [ ] Get artifact download URL
- Plan
- [ ] Get plans
- Cost
- [ ] Get costs
- [ ] Get cost by plan
Sample Code
Initialize DOK client
import DOK from '@goofmint/dok-sdk';
const dok = new DOK({
accessToken: process.env.ACCESS_TOKEN,
accessTokenSecret: process.env.ACCESS_TOKEN_SECRET,
});Get tasks
const { tasks, meta } = await dok.tasks();Get task
const task = await dok.task(taskId);Get artifacts
const { artifacts, meta } = await dok.artifacts();License
MIT
