]> git.proxmox.com Git - mirror_ovs.git/blob - ovsdb/rbac.h
ovn-nbctl: Fix the ovn-nbctl test "LBs - daemon" which fails during rpm build
[mirror_ovs.git] / ovsdb / rbac.h
1 /*
2 * Copyright (c) 2017 Red Hat, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #ifndef OVSDB_RBAC_H
18 #define OVSDB_RBAC_H 1
19
20 #include <stdbool.h>
21
22 struct ovsdb;
23 struct ovsdb_column_set;
24 struct ovsdb_condition;
25 struct ovsdb_mutation_set;
26 struct ovsdb_row;
27 struct ovsdb_table;
28
29 bool ovsdb_rbac_insert(const struct ovsdb *,
30 const struct ovsdb_table *,
31 const struct ovsdb_row *,
32 const char *role, const char *id);
33 bool ovsdb_rbac_delete(const struct ovsdb *,
34 struct ovsdb_table *,
35 struct ovsdb_condition *,
36 const char *role, const char *id);
37 bool ovsdb_rbac_update(const struct ovsdb *,
38 struct ovsdb_table *,
39 struct ovsdb_column_set *,
40 struct ovsdb_condition *condition,
41 const char *role, const char *id);
42 bool ovsdb_rbac_mutate(const struct ovsdb *,
43 struct ovsdb_table *,
44 struct ovsdb_mutation_set *,
45 struct ovsdb_condition *,
46 const char *role, const char *id);
47
48 #endif /* ovsdb/rbac.h */