CCF
Loading...
Searching...
No Matches
include
ccf
js
namespace_restrictions.h
Go to the documentation of this file.
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
// Licensed under the Apache 2.0 License.
3
#pragma once
4
5
#include "
ccf/js/kv_access_permissions.h
"
6
7
#include <functional>
8
#include <string>
9
10
namespace
ccf::js
11
{
12
// A function which calculates some access permission based on the given map
13
// name. Should also populate an explanation, which can be included in error
14
// messages if disallowed methods are accessed.
15
using
NamespaceRestriction
= std::function<
KVAccessPermissions
(
16
const
std::string& map_name, std::string& explanation)>;
17
}
kv_access_permissions.h
ccf::js
Definition
bundle.h:12
ccf::js::NamespaceRestriction
std::function< KVAccessPermissions(const std::string &map_name, std::string &explanation)> NamespaceRestriction
Definition
namespace_restrictions.h:16
ccf::js::KVAccessPermissions
KVAccessPermissions
Definition
kv_access_permissions.h:10
Generated by
1.9.8