Socket
Book a DemoInstallSign in
Socket

@rollinginfra/state-store-namespace

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rollinginfra/state-store-namespace

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

latest
npmnpm
Version
1.0.0
Version published
Maintainers
2
Created
Source

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,
});

FAQs

Package last updated on 05 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts