(ctx context.Context, info pkg.PackageArtifactInfo)
| 456 | } |
| 457 | |
| 458 | func (l *localBase) CheckIfVersionExists(ctx context.Context, info pkg.PackageArtifactInfo) (bool, error) { |
| 459 | _, err := l.artifactDao.GetByRegistryImageAndVersion(ctx, |
| 460 | info.BaseArtifactInfo().RegistryID, info.BaseArtifactInfo().Image, info.GetVersion()) |
| 461 | if err != nil { |
| 462 | return false, err |
| 463 | } |
| 464 | return true, nil |
| 465 | } |
| 466 | |
| 467 | func (l *localBase) GetSHA256(ctx context.Context, info pkg.ArtifactInfo, path string) ( |
| 468 | exists bool, |
nothing calls this directly
no test coverage detected