Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove DB schema v1 & v2 processors #438

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions pkg/process/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,12 @@ import (

"github.com/anchore/grype-db/internal/log"
"github.com/anchore/grype-db/pkg/data"
v1 "github.com/anchore/grype-db/pkg/process/v1"
v2 "github.com/anchore/grype-db/pkg/process/v2"
v3 "github.com/anchore/grype-db/pkg/process/v3"
v4 "github.com/anchore/grype-db/pkg/process/v4"
v5 "github.com/anchore/grype-db/pkg/process/v5"
"github.com/anchore/grype-db/pkg/provider"
"github.com/anchore/grype-db/pkg/provider/entry"
"github.com/anchore/grype-db/pkg/provider/unmarshal"
grypeDBv1 "github.com/anchore/grype/grype/db/v1"
grypeDBv2 "github.com/anchore/grype/grype/db/v2"
grypeDBv3 "github.com/anchore/grype/grype/db/v3"
grypeDBv4 "github.com/anchore/grype/grype/db/v4"
grypeDBv5 "github.com/anchore/grype/grype/db/v5"
Expand Down Expand Up @@ -93,10 +89,6 @@ func mergeOpeners(entries []openerEntry) <-chan entry.Opener {

func getProcessors(cfg BuildConfig) ([]data.Processor, error) {
switch cfg.SchemaVersion {
case grypeDBv1.SchemaVersion:
return v1.Processors(), nil
case grypeDBv2.SchemaVersion:
return v2.Processors(), nil
case grypeDBv3.SchemaVersion:
return v3.Processors(), nil
case grypeDBv4.SchemaVersion:
Expand All @@ -110,10 +102,6 @@ func getProcessors(cfg BuildConfig) ([]data.Processor, error) {

func getWriter(schemaVersion int, dataAge time.Time, directory string, states provider.States) (data.Writer, error) {
switch schemaVersion {
case grypeDBv1.SchemaVersion:
return v1.NewWriter(directory, dataAge)
case grypeDBv2.SchemaVersion:
return v2.NewWriter(directory, dataAge)
case grypeDBv3.SchemaVersion:
return v3.NewWriter(directory, dataAge)
case grypeDBv4.SchemaVersion:
Expand Down
17 changes: 0 additions & 17 deletions pkg/process/v1/processors.go

This file was deleted.

22 changes: 0 additions & 22 deletions pkg/process/v1/transformers/entry.go

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

65 changes: 0 additions & 65 deletions pkg/process/v1/transformers/github/transform.go

This file was deleted.

Loading
Loading