summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/socket/netlink/port/BUILD
blob: 7340b95c9c2b8306efc20a3dc750e39787b6ba4a (plain)
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
28
package(licenses = ["notice"])  # Apache 2.0

load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
load("//tools/go_stateify:defs.bzl", "go_stateify")

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"],
)