cadrumo.application.auth.apoderado_repository module

Application-owned capability for persisted apoderado configuration.

The application service owns the configuration model and its policy. This module declares only the bucket-bound persistence surface that policy needs; the encrypted envelope, storage namespace, object-key derivation, and backend errors remain implementation details of an outward adapter.

class ApoderadoConfigurationRepository(*args, **kwargs)[source]

Bases: Protocol

Bucket-bound persistence capability for one apoderado configuration.

load()[source]

Return this bucket’s configuration, or None when absent.

Return type:

ApoderadoConfiguration | None

save(configuration)[source]

Persist this bucket’s configuration.

Return type:

None

Parameters:

configuration (ApoderadoConfiguration)

delete()[source]

Retire this bucket’s configuration, returning whether it existed.

Return type:

bool

class ApoderadoConfigurationRepositoryFactory(*args, **kwargs)[source]

Bases: Protocol

Construct one bucket-bound apoderado configuration capability.