外观
secrets API
模块说明
text
Private installation secret references; trusted plugins are not a sandbox.SecretError
python
class SecretError(ValueError)SDK 说明:
text
Intentionally contains no secret value or filesystem details.另继承外部类型 ValueError;其通用方法不在本 SDK 目录中重复展开。
Secrets
python
class SecretsSecrets.__init__
python
def __init__(self, data_dir: Path)Secrets.get
python
def get(self, reference: str) -> strSDK 说明:
text
Read a UTF-8 secret on demand. Never log the returned value.
Rotations affect subsequent reads; callers caching credentials must reload.
The private directory is not isolation from other code under the same UID.