2019-06-20 18:36:40 -05:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = ["storage.go"],
|
|
|
|
importpath = "github.com/anuvu/zot/pkg/storage",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"//errors:go_default_library",
|
2019-11-25 17:33:58 -05:00
|
|
|
"//pkg/log:go_default_library",
|
2019-06-20 18:36:40 -05:00
|
|
|
"@com_github_gofrs_uuid//:go_default_library",
|
|
|
|
"@com_github_opencontainers_go_digest//:go_default_library",
|
|
|
|
"@com_github_opencontainers_image_spec//specs-go/v1:go_default_library",
|
|
|
|
"@com_github_rs_zerolog//:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
timeout = "short",
|
|
|
|
srcs = ["storage_test.go"],
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
race = "on",
|
|
|
|
deps = [
|
2019-11-25 17:33:58 -05:00
|
|
|
"//pkg/log:go_default_library",
|
2019-08-15 11:34:54 -05:00
|
|
|
"@com_github_opencontainers_go_digest//:go_default_library",
|
|
|
|
"@com_github_opencontainers_image_spec//specs-go/v1:go_default_library",
|
2019-06-20 18:36:40 -05:00
|
|
|
"@com_github_rs_zerolog//:go_default_library",
|
|
|
|
"@com_github_smartystreets_goconvey//convey:go_default_library",
|
|
|
|
],
|
|
|
|
)
|