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

Function getManifestService

cli/internal/publish/plugins.go:503–513  ·  view source on GitHub ↗
(ctx context.Context, imageName reference.Named, repository string, registryAuth string, insecureSkipVerify bool)

Source from the content-addressed store, hash-verified

501}
502
503func getManifestService(ctx context.Context, imageName reference.Named, repository string, registryAuth string, insecureSkipVerify bool) (distribution.ManifestService, error) {
504 repo, err := distributionclient.NewRepository(imageName, "https://"+repository, newTransportWithRegistryAuth(insecureSkipVerify, registryAuth))
505 if err != nil {
506 return nil, fmt.Errorf("failed to create Docker repository: %v", err)
507 }
508 manifestService, err := repo.Manifests(ctx)
509 if err != nil {
510 return nil, fmt.Errorf("failed to create Docker manifest: %v", err)
511 }
512 return manifestService, nil
513}
514
515func getTagsFromTargets(targets []TargetBuild) ([]reference.NamedTagged, error) {
516 namedTags := make([]reference.NamedTagged, len(targets))

Callers 1

pushManifestFunction · 0.85

Calls 2

ErrorfMethod · 0.80

Tested by

no test coverage detected