(pkMode specs.PKMode)
| 73 | } |
| 74 | |
| 75 | func CLIPkModeToPbPKMode(pkMode specs.PKMode) pbSpecs.PKMode { |
| 76 | switch pkMode { |
| 77 | case specs.PKModeCQID: |
| 78 | return pbSpecs.PKModeCQID |
| 79 | case specs.PKModeDefaultKeys: |
| 80 | return pbSpecs.PKModeDefaultKeys |
| 81 | default: |
| 82 | panic(fmt.Sprintf("unknown pk mode %q", pkMode.String())) |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | func CLIDestinationSpecToPbSpec(spec specs.Destination) pbSpecs.Destination { |
| 87 | return pbSpecs.Destination{ |
no test coverage detected