Skip to main content

Types

ContainerPolicy

namespace: privmx::endpoint::core

Contains container and its items policies.

struct privmx::endpoint::core::ContainerPolicy{...} : ContainerPolicyWithoutItem

Fields

NameTypeDescription
itemstd::optional< ItemPolicy >Policy for container's items

ContainerPolicyWithoutItem

namespace: privmx::endpoint::core

Contains container's policies.

struct privmx::endpoint::core::ContainerPolicyWithoutItem{...}

Fields

NameTypeDescription
getstd::optional< std::string >Determine who can get a container
updatestd::optional< std::string >Determine who can update a container
delete_std::optional< std::string >Determine who can delete a container
updatePolicystd::optional< std::string >Determine who can update policy
updaterCanBeRemovedFromManagersstd::optional< std::string >Determine whether the updater can be removed from the list of managers
ownerCanBeRemovedFromManagersstd::optional< std::string >Determine whether the owner can be removed from the list of managers

Context

namespace: privmx::endpoint::core

Contains base [Context](/reference/cpp/endpoint/core/types#context) information.

struct privmx::endpoint::core::Context{...}

Fields

NameTypeDescription
userIdstd::stringID of the user requesting information
contextIdstd::stringID of the Context

ItemPolicy

namespace: privmx::endpoint::core

Contains container items policies.

struct privmx::endpoint::core::ItemPolicy{...}

Fields

NameTypeDescription
getstd::optional< std::string >Determine who can get an item
listMystd::optional< std::string >Determine who can list items created by me
listAllstd::optional< std::string >Determine who can list all items
createstd::optional< std::string >Determine who can create an item
updatestd::optional< std::string >Determine who can update an item
delete_std::optional< std::string >Determine who can delete an item

PagingList

namespace: privmx::endpoint::core

Contains results of listing methods.

struct privmx::endpoint::core::PagingList{...}

Fields

NameTypeDescription
totalAvailableint64_ttotal items available to get
readItemsstd::vector< T >list of items read during single method call

PagingQuery

namespace: privmx::endpoint::core

Contains query parameters for methods returning lists [PagingList](/reference/cpp/endpoint/core/types#paginglist)

struct privmx::endpoint::core::PagingQuery{...}

Fields

NameTypeDescription
skipint64_tnumber of elements to skip from result
limitint64_tlimit of elements to return for query
sortOrderstd::stringorder of elements in result ("asc" for ascending, "desc" for descending)
lastIdstd::optional< std::string >ID of the element from which query results should start

UserWithPubKey

namespace: privmx::endpoint::core

Contains ID of a user and the corresponding public key.

struct privmx::endpoint::core::UserWithPubKey{...}

Fields

NameTypeDescription
userIdstd::stringID of the user
pubKeystd::stringuser's public key