github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/shim/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 package(licenses = ["notice"]) 4 5 go_library( 6 name = "shim", 7 srcs = [ 8 "api.go", 9 "debug.go", 10 "epoll.go", 11 "options.go", 12 "service.go", 13 "service_linux.go", 14 "state.go", 15 ], 16 visibility = ["//shim:__subpackages__"], 17 deps = [ 18 "//pkg/cleanup", 19 "//pkg/shim/proc", 20 "//pkg/shim/runsc", 21 "//pkg/shim/runtimeoptions", 22 "//pkg/shim/utils", 23 "//runsc/specutils", 24 "@com_github_burntsushi_toml//:go_default_library", 25 "@com_github_containerd_cgroups//:go_default_library", 26 "@com_github_containerd_cgroups//stats/v1:go_default_library", 27 "@com_github_containerd_console//:go_default_library", 28 "@com_github_containerd_containerd//api/events:go_default_library", 29 "@com_github_containerd_containerd//api/types/task:go_default_library", 30 "@com_github_containerd_containerd//errdefs:go_default_library", 31 "@com_github_containerd_containerd//events:go_default_library", 32 "@com_github_containerd_containerd//log:go_default_library", 33 "@com_github_containerd_containerd//mount:go_default_library", 34 "@com_github_containerd_containerd//namespaces:go_default_library", 35 "@com_github_containerd_containerd//pkg/process:go_default_library", 36 "@com_github_containerd_containerd//pkg/stdio:go_default_library", 37 "@com_github_containerd_containerd//runtime:go_default_library", 38 "@com_github_containerd_containerd//runtime/linux/runctypes:go_default_library", 39 "@com_github_containerd_containerd//runtime/v2/shim:go_default_library", 40 "@com_github_containerd_containerd//runtime/v2/task:go_default_library", 41 "@com_github_containerd_containerd//sys/reaper:go_default_library", 42 "@com_github_containerd_fifo//:go_default_library", 43 "@com_github_containerd_typeurl//:go_default_library", 44 "@com_github_gogo_protobuf//types:go_default_library", 45 "@com_github_opencontainers_runtime_spec//specs-go:go_default_library", 46 "@com_github_sirupsen_logrus//:go_default_library", 47 "@org_golang_x_sys//unix:go_default_library", 48 ], 49 ) 50 51 go_test( 52 name = "shim_test", 53 size = "small", 54 srcs = ["service_test.go"], 55 library = ":shim", 56 deps = [ 57 "//pkg/shim/utils", 58 "@com_github_opencontainers_runtime_spec//specs-go:go_default_library", 59 ], 60 )