Function
publishPluginAssets
(ctx context.Context, c *cloudquery_api.ClientWithResponses, token, distDir string, pkgJSON publish.PackageJSONV1)
Source from the content-addressed store, hash-verified
| 175 | } |
| 176 | |
| 177 | func publishPluginAssets(ctx context.Context, c *cloudquery_api.ClientWithResponses, token, distDir string, pkgJSON publish.PackageJSONV1) error { |
| 178 | if pkgJSON.PackageType == string(cloudquery_api.PluginPackageTypeDocker) { |
| 179 | return publish.PublishToDockerRegistry(ctx, token, distDir, pkgJSON, publish.Opts{ |
| 180 | NoProgress: logConsole, |
| 181 | }) |
| 182 | } |
| 183 | |
| 184 | return publish.PublishNativeBinaries(ctx, c, distDir, pkgJSON) |
| 185 | } |
Tested by
no test coverage detected