@iswesolutions/plugin-proxmox-common
v0.1.2
Published
Code shared by [`@iswesolutions/plugin-proxmox`](../proxmox) and [`@iswesolutions/plugin-proxmox-backend`](../proxmox-backend):
Downloads
119
Readme
@iswesolutions/plugin-proxmox-common
Code shared by @iswesolutions/plugin-proxmox and
@iswesolutions/plugin-proxmox-backend:
- Types for the cluster model:
ProxmoxResources,ProxmoxNode,ProxmoxGuest,ProxmoxStorage,ProxmoxDisk,ProxmoxCluster, … - Permissions:
proxmoxClusterManagePermission(proxmox.cluster.manage),proxmoxGuestPowerPermission(proxmox.guest.power) and theproxmoxPermissionslist. - Attention checks:
findAttentionItems(resources, thresholds), which flags offline nodes, stopped guests, near-full or inactive storage and memory pressure.
You only need it directly to reference the permissions, for example in a permission policy:
import { proxmoxClusterManagePermission } from '@iswesolutions/plugin-proxmox-common';