(
state: RemoteConnectionState,
options: {
flags: CliFlags;
session: string;
remoteConfigPath: string;
remoteConfigHash: string;
desiredLeaseBackend?: LeaseBackend;
connection?: RemoteConnectionRequestMetadata;
daemon: RemoteConnectionState['daemon'];
},
)
| 476 | } |
| 477 | |
| 478 | function isCompatibleConnection( |
| 479 | state: RemoteConnectionState, |
| 480 | options: { |
| 481 | flags: CliFlags; |
| 482 | session: string; |
| 483 | remoteConfigPath: string; |
| 484 | remoteConfigHash: string; |
| 485 | desiredLeaseBackend?: LeaseBackend; |
| 486 | connection?: RemoteConnectionRequestMetadata; |
| 487 | daemon: RemoteConnectionState['daemon']; |
| 488 | }, |
| 489 | ): boolean { |
| 490 | return ( |
| 491 | requiredConnectionFieldsMatch(state, options) && |
| 492 | optionalConnectionFieldsMatch(state, options) && |
| 493 | isSameDaemonState(state.daemon, options.daemon) |
| 494 | ); |
| 495 | } |
| 496 | |
| 497 | function requiredConnectionFieldsMatch( |
| 498 | state: RemoteConnectionState, |
no test coverage detected