Results
No results found.
The package name of the SDK is locker
Example:
import locker
const locker = require('locker')
The entity's names are singular nouns.
Set base API, access key for the locker
Example:
import locker
locker.base_api = "https://secrets-core.locker.io"
locker.access_key = "your_access_key"
The CRUD methods of the object are:
- list() / list_environments()
- get() / get_environment()
- create() / create_environment()
- modify() / modify_environment()
The Secret items are identified by key
name
# List secrets object
secrets = locker.list()
# Get secret value by key name
secret_value = locker.get("YOUR_API_KEY")
# Create new secret object
secret = locker.create(key="YOUR_NEW_SECRET_KEY", value="YOUR_NEW_SECRET_VALUE")
# Update secret object
secret = locker.modify(key="YOUR_NEW_SECRET_KEY", value="UPDATED_SECRET_VALUE")
The Environment items are identified by environment name