minos.common.storage.abc module

class minos.common.storage.abc.MinosStorage[source]

Bases: abc.ABC

Minos Storage interface.

abstract add(**kwargs)[source]

Store a value.

Parameters

kwargs – Additional named arguments.

Return type

None

Returns

This method does not return anything.

abstract classmethod build(**kwargs)[source]

Build a new instance.

Parameters

kwargs – Additional named arguments.

Return type

minos.common.storage.abc.MinosStorage

Returns

A new MinosStorage instance.

abstract delete(**kwargs)[source]

Delete the stored value.

Parameters

kwargs

Return type

None

Returns

This method does not return anything.

abstract get(**kwargs)[source]

Get the stored value..

Parameters

kwargs – Additional named arguments.

Return type

typing.Optional[typing.Any]

Returns

The stored value.

abstract update(**kwargs)[source]

Update the stored value.

Parameters

kwargs – Additional named arguments.

Return type

None

Returns

This method does not return anything.