...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "memory",
5 srcs = ["memory.go"],
6 importpath = "edge-infra.dev/pkg/f8n/warehouse/oci/cache/providers/memory",
7 visibility = ["//visibility:public"],
8 deps = [
9 "@com_github_google_go_containerregistry//pkg/v1:pkg",
10 "@com_github_hashicorp_golang_lru//:golang-lru",
11 ],
12)
13
14go_test(
15 name = "memory_test",
16 srcs = ["memory_test.go"],
17 embed = [":memory"],
18 deps = [
19 "//pkg/f8n/warehouse/oci",
20 "//test/fixtures",
21 "@com_github_google_go_containerregistry//pkg/name",
22 "@com_github_google_go_containerregistry//pkg/v1:pkg",
23 "@com_github_google_go_containerregistry//pkg/v1/random",
24 "@com_github_stretchr_testify//assert",
25 "@com_github_stretchr_testify//require",
26 ],
27)
View as plain text