ceph-csi/vendor/k8s.io/kubernetes/pkg/util/mount/BUILD

106 lines
3.3 KiB
Python
Raw Normal View History

2018-07-18 14:47:22 +00:00
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2018-01-09 18:57:14 +00:00
go_library(
name = "go_default_library",
srcs = [
"doc.go",
"exec.go",
2018-11-26 18:23:56 +00:00
"exec_mount.go",
"exec_mount_unsupported.go",
2018-01-09 18:57:14 +00:00
"fake.go",
"mount.go",
2018-11-26 18:23:56 +00:00
"mount_linux.go",
"mount_unsupported.go",
"mount_windows.go",
"nsenter_mount.go",
"nsenter_mount_unsupported.go",
],
2018-01-09 18:57:14 +00:00
importpath = "k8s.io/kubernetes/pkg/util/mount",
2018-07-18 14:47:22 +00:00
visibility = ["//visibility:public"],
2018-01-09 18:57:14 +00:00
deps = [
2018-11-26 18:23:56 +00:00
"//vendor/k8s.io/klog:go_default_library",
2018-01-09 18:57:14 +00:00
"//vendor/k8s.io/utils/exec:go_default_library",
] + select({
2018-07-18 14:47:22 +00:00
"@io_bazel_rules_go//go/platform:android": [
"//pkg/util/nsenter:go_default_library",
],
"@io_bazel_rules_go//go/platform:darwin": [
"//pkg/util/nsenter:go_default_library",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"//pkg/util/nsenter:go_default_library",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"//pkg/util/nsenter:go_default_library",
],
2018-03-06 22:33:18 +00:00
"@io_bazel_rules_go//go/platform:linux": [
2018-07-18 14:47:22 +00:00
"//pkg/util/file:go_default_library",
2018-01-09 18:57:14 +00:00
"//pkg/util/io:go_default_library",
"//pkg/util/nsenter:go_default_library",
2018-11-26 18:23:56 +00:00
"//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
2018-01-09 18:57:14 +00:00
"//vendor/golang.org/x/sys/unix:go_default_library",
],
2018-07-18 14:47:22 +00:00
"@io_bazel_rules_go//go/platform:nacl": [
"//pkg/util/nsenter:go_default_library",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"//pkg/util/nsenter:go_default_library",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"//pkg/util/nsenter:go_default_library",
],
"@io_bazel_rules_go//go/platform:plan9": [
"//pkg/util/nsenter:go_default_library",
],
"@io_bazel_rules_go//go/platform:solaris": [
"//pkg/util/nsenter:go_default_library",
],
"@io_bazel_rules_go//go/platform:windows": [
"//pkg/util/file:go_default_library",
"//pkg/util/nsenter:go_default_library",
],
2018-01-09 18:57:14 +00:00
"//conditions:default": [],
}),
)
go_test(
name = "go_default_test",
srcs = [
2018-11-26 18:23:56 +00:00
"exec_mount_test.go",
"mount_linux_test.go",
"mount_test.go",
"mount_windows_test.go",
"nsenter_mount_test.go",
2018-01-09 18:57:14 +00:00
"safe_format_and_mount_test.go",
2018-11-26 18:23:56 +00:00
],
2018-03-06 22:33:18 +00:00
embed = [":go_default_library"],
deps = [
"//vendor/k8s.io/utils/exec/testing:go_default_library",
2018-07-18 14:47:22 +00:00
] + select({
"@io_bazel_rules_go//go/platform:linux": [
"//pkg/util/nsenter:go_default_library",
"//vendor/golang.org/x/sys/unix:go_default_library",
2018-11-26 18:23:56 +00:00
"//vendor/k8s.io/klog:go_default_library",
2018-07-18 14:47:22 +00:00
"//vendor/k8s.io/utils/exec:go_default_library",
],
"@io_bazel_rules_go//go/platform:windows": [
"//vendor/github.com/stretchr/testify/assert:go_default_library",
],
"//conditions:default": [],
}),
2018-01-09 18:57:14 +00:00
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
2018-07-18 14:47:22 +00:00
visibility = ["//visibility:public"],
2018-01-09 18:57:14 +00:00
)