certwrangler.state_managers.dummy module#

pydantic model certwrangler.state_managers.dummy.DummyStateManager[source]#

Bases: StateManager

Dummy state manager driver. Mostly used for testing.

Show Entity Relationship Diagram

digraph "Entity Relationship Diagram created by erdantic" { graph [fontcolor=gray66, fontname="Times New Roman,Times,Liberation Serif,serif", fontsize=9, nodesep=0.5, rankdir=LR, ranksep=1.5 ]; node [fontname="Times New Roman,Times,Liberation Serif,serif", fontsize=14, label="\N", shape=plain ]; edge [dir=both]; "certwrangler.state_managers.dummy.DummyStateManager" [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>DummyStateManager</b></td></tr><tr><td>driver</td><td port="driver">Literal['dummy']</td></tr><tr><td>encryption_keys</td><td port="encryption_keys">list[Fernet]</td></tr></table>>, tooltip="certwrangler.state_managers.dummy.DummyStateManager&#xA;&#xA;Dummy state manager driver. Mostly used for testing.&#xA;"]; }

Show JSON schema
{
   "title": "DummyStateManager",
   "description": "Dummy state manager driver. Mostly used for testing.",
   "type": "object",
   "properties": {
      "driver": {
         "const": "dummy",
         "title": "Driver",
         "type": "string"
      },
      "encryption_keys": {
         "description": "An optional list of encryption keys to use to encrypt the state. Only the top-most key will be used for encryption operations, the additional keys are only used to decrypt the state in the case that a new key was added. New keys can be generated using the ``certwrangler state generate-key`` command.",
         "items": {
            "type": "string"
         },
         "title": "Encryption Keys",
         "type": "array"
      }
   },
   "required": [
      "driver"
   ]
}

Fields:
field driver: Literal['dummy'] [Required]#
initialize() None[source]#

No-op initialization, just log we were here.

list() Dict[str, Dict[str, Any]][source]#

No-op list, just log we were here and return an empty dict.

save(entity: Account | Cert, encrypt: bool = True) None[source]#

No-op save, just log we were here.

load(entity: Account | Cert) None[source]#

No-op load, just log we were here.

delete(entity_class: Literal['account', 'cert'], entity_name: str) None[source]#

No-op delete, just log we were here.