Results
No results found.
Methods:
create: (data: { key: string; value: string; environmentName?: string; description?: string }) => Promise<Secret>
Example
// Create new secret
const secret1 = await locker.create({
key: 'key',
value: 'value',
description: 'a new secret'
})
// This will throw an Error
const secret2 = await locker.create({
key: 'key',
value: 'value 2',
})
// Use another env, this will not throw an Error
const secret3 = await locker.create({
key: 'key',
value: 'value',
environmentName: 'prod'
})
// This will throw an Error
const secret4 = await locker.create({
key: 'key',
value: 'value 2',
environmentName: 'prod'
})