docker secret
SecretCLI
create
create(name, file, driver=None, labels={}, template_driver=None)
Creates a python_on_whales.Secret
.
Returns
A `python_on_whales.Secret` object.
inspect
inspect(x)
Returns one or more python_on_whales.Secret
based on an ID or name.
PARAMETER | DESCRIPTION |
---|---|
x |
One or more IDs/names.
TYPE:
|
list
list(filters={})
Returns all secrets as a List[python_on_whales.Secret]
.
remove
remove(x)
Removes one or more secrets
PARAMETER | DESCRIPTION |
---|---|
x |
One or more secrets.
Name, ids or
TYPE:
|