2020-06-25 03:21:47 -05:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
2020-06-24 14:38:42 -05:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
|
|
|
"cve.go",
|
|
|
|
"models.go",
|
|
|
|
],
|
|
|
|
importpath = "github.com/anuvu/zot/pkg/extensions/search/cve",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
2020-08-19 01:03:16 -05:00
|
|
|
"//errors:go_default_library",
|
2020-06-24 14:38:42 -05:00
|
|
|
"//pkg/log:go_default_library",
|
|
|
|
"@com_github_aquasecurity_trivy//integration:go_default_library",
|
|
|
|
"@com_github_aquasecurity_trivy//integration/config:go_default_library",
|
2020-06-26 14:09:10 -05:00
|
|
|
"@com_github_aquasecurity_trivy//pkg/report:go_default_library",
|
2020-08-19 01:03:16 -05:00
|
|
|
"@com_github_google_go_containerregistry//pkg/v1:go_default_library",
|
|
|
|
"@com_github_google_go_containerregistry//pkg/v1/types:go_default_library",
|
|
|
|
"@com_github_opencontainers_go_digest//:go_default_library",
|
|
|
|
"@com_github_opencontainers_image_spec//specs-go/v1:go_default_library",
|
2020-06-24 14:38:42 -05:00
|
|
|
],
|
|
|
|
)
|
2020-06-25 03:21:47 -05:00
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = ["cve_test.go"],
|
2020-08-19 02:10:49 -05:00
|
|
|
data = [
|
|
|
|
"//:exported_testdata",
|
|
|
|
],
|
2020-06-25 03:21:47 -05:00
|
|
|
embed = [":go_default_library"],
|
|
|
|
deps = [
|
2020-08-19 02:10:49 -05:00
|
|
|
"//pkg/api:go_default_library",
|
2020-10-14 16:47:20 -05:00
|
|
|
"//pkg/extensions:go_default_library",
|
2020-06-25 03:21:47 -05:00
|
|
|
"//pkg/log:go_default_library",
|
2020-09-04 15:16:15 -05:00
|
|
|
"@com_github_opencontainers_image_spec//specs-go/v1:go_default_library",
|
2020-06-25 03:21:47 -05:00
|
|
|
"@com_github_smartystreets_goconvey//convey:go_default_library",
|
2020-08-19 02:10:49 -05:00
|
|
|
"@in_gopkg_resty_v1//:go_default_library",
|
2020-06-25 03:21:47 -05:00
|
|
|
],
|
|
|
|
)
|