fiftyone.plugins.secrets¶
Plugin secrets resolver.
Classes:
Injects secrets from environmental variables into the execution context. |
|
|
A more secure dictionary for accessing plugin secrets in operators that will attempt to resolve missing plugin secrets upon access. |
-
class
fiftyone.plugins.secrets.
PluginSecretsResolver
¶ Bases:
object
Injects secrets from environmental variables into the execution context.
Methods:
register_operator
(operator_uri, required_secrets)client
()get_secret
(key, operator_uri, **kwargs)Get the value of a secret.
get_secret_sync
(key, operator_uri, **kwargs)Get the value of a secret.
-
register_operator
(operator_uri: str, required_secrets: List[str]) → None¶
-
async
get_secret
(key: str, operator_uri: str, **kwargs) → Optional[fiftyone.internal.secrets.secret.ISecret]¶ Get the value of a secret.
- Parameters
key (str) – unique secret identifier
kwargs – additional keyword arguments to pass to the secrets
for authentication if required (client) –
-
get_secret_sync
(key: str, operator_uri: str, **kwargs) → Optional[fiftyone.internal.secrets.secret.ISecret]¶ Get the value of a secret.
- Parameters
key (str) – unique secret identifier
kwargs – additional keyword arguments to pass to the secrets
for authentication if required (client) –
-
-
class
fiftyone.plugins.secrets.
SecretsDictionary
(secrets_dict: Dict[str, str], operator_uri: Optional[str] = None, resolver_fn: Optional[Callable] = None, required_keys: Optional[List[str]] = None)¶ Bases:
object
A more secure dictionary for accessing plugin secrets in operators that will attempt to resolve missing plugin secrets upon access.
Methods:
copy
()keys
()values
()items
()get
(key[, default])-
copy
()¶
-
keys
()¶
-
values
()¶
-
items
()¶
-
get
(key, default=None)¶
-