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 = [
|
|
|
|
"auth.go",
|
|
|
|
"config.go",
|
|
|
|
"controller.go",
|
|
|
|
"errors.go",
|
2019-08-15 11:34:54 -05:00
|
|
|
"ldap.go",
|
2019-06-20 18:36:40 -05:00
|
|
|
"log.go",
|
2019-07-10 00:23:59 -05:00
|
|
|
"regexp.go",
|
2019-06-20 18:36:40 -05:00
|
|
|
"routes.go",
|
|
|
|
],
|
|
|
|
importpath = "github.com/anuvu/zot/pkg/api",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"//docs:go_default_library",
|
|
|
|
"//errors:go_default_library",
|
|
|
|
"//pkg/storage:go_default_library",
|
2019-08-15 11:34:54 -05:00
|
|
|
"@com_github_getlantern_deepcopy//:go_default_library",
|
2019-07-10 00:23:59 -05:00
|
|
|
"@com_github_gorilla_mux//:go_default_library",
|
|
|
|
"@com_github_json_iterator_go//:go_default_library",
|
2019-08-15 11:34:54 -05:00
|
|
|
"@com_github_jtblin_go_ldap_client//:go_default_library",
|
2019-06-20 18:36:40 -05:00
|
|
|
"@com_github_opencontainers_distribution_spec//:go_default_library",
|
|
|
|
"@com_github_opencontainers_image_spec//specs-go/v1:go_default_library",
|
|
|
|
"@com_github_rs_zerolog//:go_default_library",
|
2019-07-10 00:23:59 -05:00
|
|
|
"@com_github_swaggo_http_swagger//:go_default_library",
|
2019-08-15 11:34:54 -05:00
|
|
|
"@in_gopkg_ldap_v2//:go_default_library",
|
2019-06-20 18:36:40 -05:00
|
|
|
"@org_golang_x_crypto//bcrypt:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
timeout = "short",
|
|
|
|
srcs = [
|
|
|
|
"controller_test.go",
|
|
|
|
"routes_test.go",
|
|
|
|
],
|
|
|
|
data = [
|
|
|
|
"//:exported_testdata",
|
|
|
|
],
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
race = "on",
|
|
|
|
deps = [
|
2019-08-15 11:34:54 -05:00
|
|
|
"@com_github_nmcclain_ldap//:go_default_library",
|
2019-06-20 18:36:40 -05:00
|
|
|
"@com_github_opencontainers_go_digest//:go_default_library",
|
|
|
|
"@com_github_opencontainers_image_spec//specs-go/v1:go_default_library",
|
|
|
|
"@com_github_smartystreets_goconvey//convey:go_default_library",
|
|
|
|
"@in_gopkg_resty_v1//:go_default_library",
|
|
|
|
],
|
|
|
|
)
|