MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / CLIPkModeToPbPKMode

Function CLIPkModeToPbPKMode

cli/cmd/specs.go:75–84  ·  view source on GitHub ↗
(pkMode specs.PKMode)

Source from the content-addressed store, hash-verified

73}
74
75func 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
86func CLIDestinationSpecToPbSpec(spec specs.Destination) pbSpecs.Destination {
87 return pbSpecs.Destination{

Callers 1

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected