(spec specs.Destination)
| 84 | } |
| 85 | |
| 86 | func CLIDestinationSpecToPbSpec(spec specs.Destination) pbSpecs.Destination { |
| 87 | return pbSpecs.Destination{ |
| 88 | Name: spec.Name, |
| 89 | Version: spec.Version, |
| 90 | Path: spec.Path, |
| 91 | Registry: CLIRegistryToPbRegistry(spec.Registry), |
| 92 | WriteMode: CLIWriteModeToPbWriteMode(spec.WriteMode), |
| 93 | MigrateMode: CLIMigrateModeToPbMigrateMode(spec.MigrateMode), |
| 94 | PKMode: CLIPkModeToPbPKMode(spec.PKMode), |
| 95 | Spec: spec.Spec, |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | // initPlugin is a simple wrapper that will try to validate the spec before actually passing it to Init. |
| 100 | func initPlugin(ctx context.Context, client plugin.PluginClient, spec map[string]any, noConnection bool, syncID string) error { |
no test coverage detected