Kết quả
No results found.
Phương pháp:
modify: (key: string, env: string, data: { value: string; environmentName?: string; description?: string }) => Promise<Secret>
Ví dụ:
// Update the secret "key" of env "ALL"
const secret = await locker.modify('key', '', {
value: 'value 2',
description: 'desc'
})
// Update the secret "key" of env "prod"
const secret = await locker.modify('key', 'prod', {
value: 'value 2',
environmentName: 'prod'
})
// This will update the env from "prod" to "ALL"
const secret = await locker.modify('key', 'prod', {
value: 'value 2'
})
// This will update the env from "ALL" to "prod"
const secret = await locker.modify('key', '', {
value: 'value 2',
environmentName: 'prod'
})