1.0.2-beta.21 • Published 5 years ago

@openstfoundation/openst-storage v1.0.2-beta.21

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
5 years ago

OpenST Storage

OpenST Storage contains DB storage libraries and respective services. It also contains data sharding libraries and services. While OpenST Storage is available as-is for anyone to use, we caution that this is early stage software and under heavy ongoing development and improvement. Please report bugs and suggested improvements.

DynamoDB Services

For all below methods parameters description please refer AWS DynamoDB Docs

const OSTStorage = require('@openstfoundation/openst-storage')
    , ddbServiceObj  = new OSTStorage.Dynamodb(dynamodbConnectionParams)
   ;
    
    //Create DynamoDB Table
    ddbServiceObj.createTable(createTableParams);
    
    // Create Table Migration
    // 1. Creates table
    // 2. Enables read/write auto scaling
    // 3. Returns describe table response 
    ddbServiceObj.createTableMigration(createTableMigrationParams);
    
    // Update DynamoDB Table
    ddbServiceObj.updateTable(updateTableParams);
    
    // Describe DynamoDB Table 
    ddbServiceObj.describeTable(describeTableParams);
    
    // List DynamoDB Tables
    ddbServiceObj.listTables(listTableParams);
    
    // Point in time recovery for DynamoDB Table
    ddbServiceObj.updateContinuousBackups(updateConitnousParams);
    
    // Delete DynamoDB table
    ddbServiceObj.deleteTable(deleteTableParams);
    
    // Batch Get Items
    ddbServiceObj.batchGetItem(batchGetParams);
    
    // Batch Write Items
    ddbServiceObj.batchWriteItem(batchWriteParams);
    
    // Query Items
    ddbServiceObj.query(queryParams);
    
    // Scan Items
    ddbServiceObj.scan(queryParams);
    
    // Put Items
    ddbServiceObj.putItem(putItemParams);
    
    // Update an Item
    ddbServiceObj.updateItem(updateItemParams);
    
    // Delete Items
    ddbServiceObj.deleteItem(deleteItemParams);
    
    // Check if table exists and is in ACTIVE state using wait for method
    ddbServiceObj.tableExistsUsingWaitFor(tableExistsParams);
    
    // Check if table doesn't exists using wait for method
    ddbServiceObj.tableNotExistsUsingWaitFor(tableNotExistsParams);
    
    // Check if table exist in ACTIVE state using describe table method
    // If table is being created, then response will be false
    ddbServiceObj.checkTableExist(tableExistParams);
    

Shard Management Services

const OSTStorage = require('@openstfoundation/openst-storage')
    , ddbServiceObj  = new OSTStorage.Dynamodb(dynamodbConnectionParams)
    , autoScalingObj  = new OSTStorage.AutoScaling(autoScalingConnectionParams)
    , shardMgmtObj = ddbServiceObj.shardManagement()
   ;
    
    // Run Shard Migration
    // Created available_shards and managed_shards table
    shardMgmtObj.runShardMigration(ddbServiceObj, autoScalingObj);
    
    // Add Shard
    // Creates item in available_shards table
    shardMgmtObj.addShard(addShardParams);
    
    // Configure Shard
    // Configure Enable/Disable allocation type
    shardMgmtObj.configureShard(configureShardParams);
    
    // Get Shards By Different Types
    // Type Values : all/enabled/disabled
    shardMgmtObj.getShardsByType(getShardsByTypeParams);
    
    // Does this shard exist in available_shards table
    shardMgmtObj.hasShard(hasShardParams);
    
    // Assign Shard to an identifier
    // Creates entry in managed_shards table
    shardMgmtObj.assignShard(assignShardParams);
    
    // Get Managed shards
    shardMgmtObj.getManagedShard(managedShardParams);
    

Auto Scaling Services

For Parameters description please refer AWS DynamoDB Docs

const OSTStorage = require('@openstfoundation/openst-storage')
    , autoScalingObj  = new OSTStorage.AutoScaling(autoScalingConnectionParams)
   ;
    
    // Registers or updates a scalable target. Scalable target is a resource that Application Auto Scaling can scale out or scale in. After you have registered a scalable target, you can use this operation to update the minimum and maximum values for its scalable dimension.
    autoScalingObj.registerScalableTarget(registerScalableTargetParams);
    
    // Creates or updates a policy for an Application Auto Scaling scalable target
    autoScalingObj.putScalingPolicy(putScalingPolicyParams);
    
    // Deletes the specified Application Auto Scaling scaling policy
    autoScalingObj.deleteScalingPolicy(deletecalingPolicyParams);
    
    // Deregistering a scalable target deletes the scaling policies that are associated with it.
    autoScalingObj.deregisterScalableTarget(deregisterScalableTargetParams);
      
    // Gets information about the scalable targets in the specified namespace. 
    autoScalingObj.describeScalableTargets(describeScalableTargetsParams); 
   
    // Describes the scaling policies for the specified service namespace.
    autoScalingObj.describeScalingPolicies(describeScalingPoliciesParams);   
    
1.0.2-beta.29

5 years ago

1.0.2-beta.28

5 years ago

1.0.2-beta.27

5 years ago

1.0.2-beta.26

5 years ago

1.0.2-beta.25

5 years ago

1.0.2-beta.24

5 years ago

1.0.2-beta.23

5 years ago

1.0.2-beta.22

5 years ago

1.0.2-beta.21

5 years ago

1.0.2-beta.20

5 years ago

1.0.2-beta.19

5 years ago

1.0.2-beta.18

5 years ago

1.0.2-beta.17

6 years ago

1.0.2-beta.16

6 years ago

1.0.2-beta.15

6 years ago

1.0.2-beta.14

6 years ago

1.0.2-beta.13

6 years ago

1.0.2-beta.12

6 years ago

1.0.2-beta.11

6 years ago

1.0.2-beta.10

6 years ago

1.0.2-beta.9

6 years ago

1.0.2-beta.8

6 years ago

1.0.2-beta.7

6 years ago

1.0.2-beta.6

6 years ago

1.0.2-beta.5

6 years ago

1.0.2-beta.4

6 years ago

1.0.1

6 years ago

1.0.2-beta.3

6 years ago

1.0.2-beta.2

6 years ago

1.0.2-beta.1

6 years ago

1.0.1-beta.15

6 years ago

1.0.1-beta.14

6 years ago

1.0.1-beta.13

6 years ago

1.0.1-beta.12

6 years ago

1.0.1-beta.11

6 years ago

1.0.1-beta.10

6 years ago

1.0.1-beta.9

6 years ago

1.0.1-beta.8

6 years ago

1.0.1-beta.7

6 years ago

1.0.1-beta.6

6 years ago

1.0.1-beta.4

6 years ago

1.0.1-beta.3

6 years ago

1.0.1-beta.2

6 years ago

1.0.1-beta.1

6 years ago

1.0.0

6 years ago

1.0.0-beta.33

6 years ago

1.0.0-beta.32

6 years ago

1.0.0-beta.31

6 years ago

1.0.0-beta.29

6 years ago

1.0.0-beta.28

6 years ago

1.0.0-beta.27

6 years ago

1.0.0-beta.26

6 years ago

1.0.0-beta.25

6 years ago

1.0.0-beta.23

6 years ago

1.0.0-beta.22

6 years ago

1.0.0-beta.21

6 years ago

1.0.0-beta.20

6 years ago

1.0.0-beta.19

6 years ago

1.0.0-beta.18

6 years ago

1.0.0-beta.17

6 years ago

1.0.0-beta.16

6 years ago

1.0.0-beta.15

6 years ago

1.0.0-beta.14

6 years ago

1.0.0-beta.12

6 years ago

1.0.0-beta.11

6 years ago

1.0.0-beta.10

6 years ago

1.0.0-beta.9

6 years ago

1.0.0-beta.8

6 years ago

1.0.0-beta.7

6 years ago

1.0.0-beta.6

6 years ago

1.0.0-beta.5

6 years ago

1.0.0-beta.4

6 years ago

1.0.0-beta.3

6 years ago

1.0.0-beta.2

6 years ago

1.0.0-beta.1

6 years ago