backstage

Форк
0
61 строка · 1.5 Кб
1
/*
2
 * Copyright 2022 The Backstage Authors
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
import { createPermission } from '@backstage/plugin-permission-common';
18

19
/**
20
 * @public
21
 */
22
export const devToolsAdministerPermission = createPermission({
23
  name: 'devtools.administer',
24
  attributes: { action: 'read' },
25
});
26

27
/**
28
 * @public
29
 */
30
export const devToolsInfoReadPermission = createPermission({
31
  name: 'devtools.info',
32
  attributes: { action: 'read' },
33
});
34

35
/**
36
 * @public
37
 */
38
export const devToolsConfigReadPermission = createPermission({
39
  name: 'devtools.config',
40
  attributes: { action: 'read' },
41
});
42

43
/**
44
 * @public
45
 */
46
export const devToolsExternalDependenciesReadPermission = createPermission({
47
  name: 'devtools.external-dependencies',
48
  attributes: { action: 'read' },
49
});
50

51
/**
52
 * List of all Devtools permissions
53
 *
54
 * @public
55
 */
56
export const devToolsPermissions = [
57
  devToolsAdministerPermission,
58
  devToolsInfoReadPermission,
59
  devToolsConfigReadPermission,
60
  devToolsExternalDependenciesReadPermission,
61
];
62

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.