2023-05-03 02:57:04 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "iptools",
|
|
|
|
srcs = [
|
2023-05-05 07:13:46 +00:00
|
|
|
"hardware_address.go",
|
|
|
|
"lease_info.go",
|
2023-05-03 02:57:04 +00:00
|
|
|
"pool.go",
|
|
|
|
"range.go",
|
2023-05-05 07:13:46 +00:00
|
|
|
"tools.go",
|
2023-05-03 02:57:04 +00:00
|
|
|
],
|
|
|
|
importpath = "git.wntrmute.dev/kyle/kdhcp/iptools",
|
|
|
|
visibility = ["//visibility:public"],
|
2023-05-06 05:25:53 +00:00
|
|
|
deps = ["@dev_wntrmute_git_kyle_goutils//assert"],
|
2023-05-03 02:57:04 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "iptools_test",
|
2023-05-05 07:13:46 +00:00
|
|
|
srcs = [
|
|
|
|
"hardware_address_test.go",
|
|
|
|
"pool_test.go",
|
|
|
|
"range_test.go",
|
|
|
|
],
|
2023-05-03 02:57:04 +00:00
|
|
|
embed = [":iptools"],
|
2023-05-06 05:25:53 +00:00
|
|
|
size = "small",
|
2023-05-03 02:57:04 +00:00
|
|
|
)
|