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