(command: LeaseRpcCommand)
| 126 | } |
| 127 | |
| 128 | function leaseRpcMethodForCommand(command: LeaseRpcCommand): string { |
| 129 | switch (command) { |
| 130 | case 'lease_allocate': |
| 131 | return 'agent_device.lease.allocate'; |
| 132 | case 'lease_heartbeat': |
| 133 | return 'agent_device.lease.heartbeat'; |
| 134 | case 'lease_release': |
| 135 | return 'agent_device.lease.release'; |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | function buildLeaseRpcParams( |
| 140 | req: DaemonRequest, |
no outgoing calls
no test coverage detected