UNPKG

@k8ts/instruments

Version:

A collection of utilities and core components for k8ts.

25 lines (22 loc) 505 B
export class Group { constructor( readonly id: number, readonly name: string ) {} } export class User { constructor( readonly id: number, readonly name: string, readonly group: Group ) {} static makeSync(id: number, name: string) { return new User(id, name, new Group(id, name)) } toDockerEnv(prefix = "P") { return { [`${prefix}UID`]: this.id, [`${prefix}GID`]: this.group.id } } }