cortx-js-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

npm version

Cortx-js-sdk

a typescript sdk for seagate's CORTX engine


Install

$ npm install --save cortx-js-sdk

Typescript

cortx-js-sdk comes with its own type definitions, and can be imported in typescript.

Connectors

Amazon S3

cortx-js-sdk exposes a fully wrapped AWS.S3 class to communicate with CORTX

const cortx = new CORTX(S3_ENDPOINT, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY);
const s3 = cortx.createS3Connector();

in example above s3 is a proxy object to Cortx.

const res = await s3
  .putObject({
    Bucket: 'testbucket/',
    Key: 'file.txt',
    Body: Buffer.from(file),
    ACL: 'public-read',
  })
  .promise();

MOTR

TBD , once Cortx release motr apis.

Google Cloud Storage

TBD , once Cortx integrates with GCS.

Examples

See a more examples example under ./example/src/ folder

License

Copyright © Pavel 'PK' Kaminsy, released under an MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i cortx-js-sdk

Weekly Downloads

12

Version

1.0.0

License

ISC

Unpacked Size

962 kB

Total Files

20

Last publish

Collaborators

  • kaminskypavel