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

Function publishPluginAssets

cli/cmd/plugin_publish.go:177–185  ·  view source on GitHub ↗
(ctx context.Context, c *cloudquery_api.ClientWithResponses, token, distDir string, pkgJSON publish.PackageJSONV1)

Source from the content-addressed store, hash-verified

175}
176
177func 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}

Callers 1

runPluginPublishFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected