1.26.0 • Published 10 months ago
@cbjsdev/deploy v1.26.0
!IMPORTANT This package is part of the Cbjs project.
Getting started
npm install @cbjsdev/deployCreate a cluster config file that will hold your keyspaces, indexes and users definitions :
import { CouchbaseClusterConfig } from '@cbjsdev/deploy';
const config: CouchbaseClusterConfig = {
keyspaces: {
myBucket: {
ramQuotaMB: 1024,
scopes: {
scopeOne: {
collections: {
collectionOne: {
maxExpiry: 120,
history: true,
indexes: {
group: {
keys: ['groupId'],
where: 'groupId != "groupSystem"'
}
}
},
}
}
}
}
},
users: [
{
username: 'lee_koss',
password: 'password',
roles: [{ name: 'fts_admin', bucket: 'myBucket'}]
}
]
}Applying changes
You can apply changes by executing those two lines of codes.
const changes = getCouchbaseClusterChanges(currentConfig, nextConfig);
await applyCouchbaseClusterChanges(changes);1.25.0
11 months ago
1.24.1
11 months ago
1.26.0
10 months ago
1.23.0
12 months ago
1.24.0
11 months ago
1.21.0
1 year ago
1.22.0
12 months ago
1.21.1
1 year ago
1.20.1
1 year ago
1.20.0
1 year ago
1.19.0
1 year ago
1.18.0
1 year ago
1.17.1
1 year ago
1.17.0
1 year ago
1.16.0
1 year ago
1.15.0
1 year ago
1.14.0
1 year ago
1.13.2
1 year ago
1.13.1
1 year ago
1.13.0
1 year ago