MCPcopy Create free account
hub / github.com/commandoperator/cmdop-sdk / ListMachinesOptions

Interface ListMachinesOptions

node/src/resources/machines.ts:21–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20export class MachinesResource extends BaseResource {
21 async list(): Promise<MachineRosterSnapshot> {
22 const response = await this.unary(
23 this.request({ case: "listMachinesReq", value: {} }),
24 );
25 if (response.payload.case !== "machineRosterSnapshot") {
26 throw new Error("cmdop-core returned the wrong roster response arm");
27 }
28 return response.payload.value;
29 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected