Skip to main content
Home
Works with
This package works with Deno
This package works with Deno
JSR Score52%
Downloads13/wk
Published2 years ago (0.2.1)

Système de gestion des ressources de cohabit.

class Group
extends Resource

Constructors

new
Group(unnamed 0: Pick<Group,
"posix"
| "permissions"
| "groups"
> & Pick<Resource,
"name"
| "avatar"
| "uuid"
| "createdAt"
| "updatedAt"
>
)

Properties

readonly
groups: readonly Ref<Group>[]
readonly
permissions: Readonly<GroupPermissions>
readonly
posix: Posix | undefined
readonly
type: "group"

Methods

toJSON():
ResourceJson<Group, "permissions">
& { posix: Posix | null; }
& ResourceRefJson<Group, Group, "groups">
update(props: Partial<Omit<Group,
"type"
| "uuid"
| "createdAt"
>>
): Group

Static Methods

create(unnamed 0: Pick<Group,
"posix"
| "permissions"
| "name"
| "avatar"
| "groups"
>
): Group
fromJSON(unnamed 0: ToJson<Group>): Group
load(unnamed 0: { name: Group["name"]; permissions?: Group["permissions"]; posix?: Group["posix"]; avatar?: Group["avatar"]; groups?: Group["groups"]; }): Group

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@cohabit/resources-manager

Import symbol

import { Group } from "@cohabit/resources-manager/models";
or

Import directly with a jsr specifier

import { Group } from "jsr:@cohabit/resources-manager/models";