(ctx context.Context, imageName reference.Named, repository string, registryAuth string, insecureSkipVerify bool)
| 501 | } |
| 502 | |
| 503 | func 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 | |
| 515 | func getTagsFromTargets(targets []TargetBuild) ([]reference.NamedTagged, error) { |
| 516 | namedTags := make([]reference.NamedTagged, len(targets)) |
no test coverage detected