Skip to content

cvedia::rt::iface::RTRegistry

Public Classes

Name
struct Entry

Public Types

Name
enum class int32_t Visibility

Public Functions

Name
virtual ~RTRegistry() =default
virtual expected< pCValue > get(std::string const & key) =0
virtual expected< std::map< std::string, pCValue > > getMany(std::vector< std::string > const & keys) =0
virtual expected< void > set(std::string const & key, pCValue value, Visibility vis, bool encrypt) =0
virtual expected< void > del(std::string const & key) =0
virtual expected< std::vector< std::string > > list(std::string const & prefix, size_t offset, size_t limit) =0
virtual expected< void > setMany(std::vector< Entry > const & batch) =0
virtual bool isDegraded() =0
virtual expected< pCValue > getIfPublic(std::string const & key) =0
virtual expected< void > delIfPublic(std::string const & key) =0
virtual expected< std::vector< std::string > > listPublic(std::string const & prefix, size_t offset, size_t limit) =0
virtual expected< void > setIfPublicOrNew(std::string const & key, pCValue value, bool encrypt) =0

Public Types Documentation

enum Visibility

Enumerator Value Description
PRIVATE 0
PUBLIC 1

Public Functions Documentation

function ~RTRegistry

virtual ~RTRegistry() =default

function get

virtual expected< pCValue > get(
    std::string const & key
) =0

function getMany

virtual expected< std::map< std::string, pCValue > > getMany(
    std::vector< std::string > const & keys
) =0

function set

virtual expected< void > set(
    std::string const & key,
    pCValue value,
    Visibility vis,
    bool encrypt
) =0

function del

virtual expected< void > del(
    std::string const & key
) =0

function list

virtual expected< std::vector< std::string > > list(
    std::string const & prefix,
    size_t offset,
    size_t limit
) =0

function setMany

virtual expected< void > setMany(
    std::vector< Entry > const & batch
) =0

function isDegraded

virtual bool isDegraded() =0

function getIfPublic

virtual expected< pCValue > getIfPublic(
    std::string const & key
) =0

function delIfPublic

virtual expected< void > delIfPublic(
    std::string const & key
) =0

function listPublic

virtual expected< std::vector< std::string > > listPublic(
    std::string const & prefix,
    size_t offset,
    size_t limit
) =0

function setIfPublicOrNew

virtual expected< void > setIfPublicOrNew(
    std::string const & key,
    pCValue value,
    bool encrypt
) =0