Kết quả
No results found.
Phương pháp:
create: (data: { key: string; value: string; environmentName?: string; description?: string }) => Promise<Secret>
Ví dụ
// 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'
})