fiftyone.internal.secrets.providers¶
Module contents¶
FiftyOne secrets providers.
Classes:
Exposes secrets from environment variables. |
-
class
fiftyone.internal.secrets.providers.
ISecretProvider
¶ Bases:
abc.ABC
Methods:
get
(key, **kwargs)Get a secret by key.
get_sync
(key, **kwargs)Get a secret by key in a synchronous context.
get_multiple
(keys, **kwargs)Get multiple secrets by key.
search
(regex, **kwargs)Get secrets with keys matching regex
-
abstract async
get
(key: str, **kwargs) → Optional[fiftyone.internal.secrets.secret.ISecret]¶ Get a secret by key.
-
abstract
get_sync
(key: str, **kwargs) → Optional[fiftyone.internal.secrets.secret.ISecret]¶ Get a secret by key in a synchronous context.
-
abstract async
get_multiple
(keys: List[str], **kwargs) → Dict[str, Optional[fiftyone.internal.secrets.secret.ISecret]]¶ Get multiple secrets by key.
-
abstract async
search
(regex: str, **kwargs) → Dict[str, Optional[fiftyone.internal.secrets.secret.ISecret]]¶ Get secrets with keys matching regex
-
abstract async
-
class
fiftyone.internal.secrets.providers.
EnvSecretProvider
¶ Bases:
fiftyone.internal.secrets.providers.iprovider.ISecretProvider
Exposes secrets from environment variables.
Methods:
get
(key, **kwargs)Get a secret by key.
get_sync
(key, **kwargs)Get a secret by key in a synchronous context.
get_multiple
(keys, **kwargs)Get multiple secrets by key.
search
(regex, **kwargs)Get secrets with keys matching regex
-
async
get
(key, **kwargs) → Optional[fiftyone.internal.secrets.secret.ISecret]¶ Get a secret by key.
-
get_sync
(key, **kwargs) → Optional[fiftyone.internal.secrets.secret.ISecret]¶ Get a secret by key in a synchronous context.
-
async
get_multiple
(keys: List[str], **kwargs) → Dict[str, Optional[fiftyone.internal.secrets.secret.ISecret]]¶ Get multiple secrets by key.
-
async
search
(regex: str, **kwargs) → Dict[str, Optional[fiftyone.internal.secrets.secret.ISecret]]¶ Get secrets with keys matching regex
-
async