Entity and methods
Secret
Bases: VersionedEntity
A class representing a secret.
Source code in digitalhub_core/entities/secret/entity.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
|
read_secret_value()
Read the secret value from backend.
Returns:
Type | Description |
---|---|
str
|
Value of the secret. |
Source code in digitalhub_core/entities/secret/entity.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
|
set_secret_value(value)
Update the secret value with a new one.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value |
str
|
Value of the secret. |
required |
Returns:
Type | Description |
---|---|
None
|
|
Source code in digitalhub_core/entities/secret/entity.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
|