npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

@rollinginfra/state-store-namespace

1.0.0

@rollinginfrabot

npmSnykSocket
Downloads:0
$ npm install @rollinginfra/state-store-namespace
DailyWeeklyMonthlyYearly

State Store - Namespace

Split one physical store into multiple logical store by specifying prefixes for stores.

Usage

import StateStoreGoogleObjects from '@rollinginfra/state-store-google-objects';
import StateStoreNamespace from '@rollinginfra/state-store-local-file-system';

const state = new StateStoreGoogleObjects({
  googleProjectID: `YOUR_GOOGLE_PROJECT_NAME`,
  bucketName: `YOUR_BUCKET_NAME`,
});

const resourcesState = new StateStoreNamespace({
  prefix: `resources/`,
  state,
});
const secretsState = new StateStoreNamespace({
  prefix: `secrets/`,
  state,
});