BUILD 979 B

123456789101112131415161718192021222324252627282930313233343536
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "constants.go",
  6. "ipvs.go",
  7. "netlink.go",
  8. ],
  9. importmap = "k8s.io/kubernetes/vendor/github.com/docker/libnetwork/ipvs",
  10. importpath = "github.com/docker/libnetwork/ipvs",
  11. visibility = ["//visibility:public"],
  12. deps = select({
  13. "@io_bazel_rules_go//go/platform:linux": [
  14. "//vendor/github.com/sirupsen/logrus:go_default_library",
  15. "//vendor/github.com/vishvananda/netlink/nl:go_default_library",
  16. "//vendor/github.com/vishvananda/netns:go_default_library",
  17. ],
  18. "//conditions:default": [],
  19. }),
  20. )
  21. filegroup(
  22. name = "package-srcs",
  23. srcs = glob(["**"]),
  24. tags = ["automanaged"],
  25. visibility = ["//visibility:private"],
  26. )
  27. filegroup(
  28. name = "all-srcs",
  29. srcs = [":package-srcs"],
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:public"],
  32. )