fiftyone.internal.secrets¶
Module contents¶
FiftyOne secrets.
Classes:
Exposes secrets from environment variables. |
|
|
Secret interface. |
|
Abstract secret. |
|
Fiftyone secret with plaintext value. |
-
class
fiftyone.internal.secrets.
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.
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
-
class
fiftyone.internal.secrets.
ISecret
¶ Bases:
abc.ABC
Secret interface.
Attributes:
The secret’s string identifier.
The secret’s value.
-
abstract property
key
¶ The secret’s string identifier.
-
abstract property
value
¶ The secret’s value.
-
abstract property
-
class
fiftyone.internal.secrets.
AbstractSecret
(key: str, value: str)¶ Bases:
fiftyone.internal.secrets.secret.ISecret
,abc.ABC
Abstract secret.
Attributes:
The secret’s string identifier.
The secret’s value.
Whether the secret is encrypted.
-
abstract property
key
¶ The secret’s string identifier.
-
abstract property
value
¶ The secret’s value.
-
abstract property
is_encrypted
¶ Whether the secret is encrypted.
-
abstract property
-
class
fiftyone.internal.secrets.
UnencryptedSecret
(key: str, value: str)¶ Bases:
fiftyone.internal.secrets.secret.AbstractSecret
Fiftyone secret with plaintext value.
Attributes:
The secret’s string identifier.
The secret’s value.
Whether the secret is encrypted.
-
property
key
¶ The secret’s string identifier.
-
property
value
¶ The secret’s value.
-
property
is_encrypted
¶ Whether the secret is encrypted.
-
property