1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package(licenses = ["notice"]) # Apache 2.0
load("//tools/go_stateify:defs.bzl", "go_library", "go_stateify", "go_test")
go_stateify(
name = "port_state",
srcs = ["port.go"],
out = "port_state.go",
package = "port",
)
go_library(
name = "port",
srcs = [
"port.go",
"port_state.go",
],
importpath = "gvisor.googlesource.com/gvisor/pkg/sentry/socket/netlink/port",
visibility = ["//pkg/sentry:internal"],
deps = ["//pkg/state"],
)
go_test(
name = "port_test",
srcs = ["port_test.go"],
embed = [":port"],
)
|