UNPKG

@k8ts/instruments

Version:

A collection of utilities and core components for k8ts.

33 lines 713 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.User = exports.Group = void 0; class Group { id; name; constructor(id, name) { this.id = id; this.name = name; } } exports.Group = Group; class User { id; name; group; constructor(id, name, group) { this.id = id; this.name = name; this.group = group; } static makeSync(id, name) { return new User(id, name, new Group(id, name)); } toDockerEnv(prefix = "P") { return { [`${prefix}UID`]: this.id, [`${prefix}GID`]: this.group.id }; } } exports.User = User; //# sourceMappingURL=index.js.map