load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "memory", srcs = ["memory.go"], importpath = "edge-infra.dev/pkg/f8n/warehouse/oci/cache/providers/memory", visibility = ["//visibility:public"], deps = [ "@com_github_google_go_containerregistry//pkg/v1:pkg", "@com_github_hashicorp_golang_lru//:golang-lru", ], ) go_test( name = "memory_test", srcs = ["memory_test.go"], embed = [":memory"], deps = [ "//pkg/f8n/warehouse/oci", "//test/fixtures", "@com_github_google_go_containerregistry//pkg/name", "@com_github_google_go_containerregistry//pkg/v1:pkg", "@com_github_google_go_containerregistry//pkg/v1/random", "@com_github_stretchr_testify//assert", "@com_github_stretchr_testify//require", ], )