import * as plugins from '../plugins.js'; /* * cluster defines a swarmkit cluster */ @plugins.smartdata.managed() export class Cluster extends plugins.smartdata.SmartDataDbDoc< Cluster, plugins.servezoneInterfaces.data.ICluster > { // STATIC public static async fromConfigObject(configObjectArg: plugins.servezoneInterfaces.data.ICluster) { const newCluster = new Cluster(); Object.assign(newCluster, configObjectArg); return newCluster; } // INSTANCE @plugins.smartdata.unI() public id: string; @plugins.smartdata.svDb() public data: plugins.servezoneInterfaces.data.ICluster['data']; constructor() { super(); } public async getServices(): Promise { return []; } }